Commit Graph

94 Commits

Author SHA1 Message Date
Fabien Meghazi fe4526b2d8 [MERGE] Merge last trunk
bzr revid: fme@openerp.com-20120111085337-u65f0pyr1n60mkaw
2012-01-11 09:53:37 +01:00
Xavier Morel 2e1c8cceb9 [FIX] broken grouping in list views
bzr revid: xmo@openerp.com-20120111084602-in9dlvig8283g2o7
2012-01-11 09:46:02 +01:00
Fabien Meghazi e9ca86dd63 [IMP] More dataset refactoring
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2012-01-10 17:54:51 +01:00
Fabien Meghazi 652e845321 [IMP] Refactored Dataset#read_ids usage
bzr revid: fme@openerp.com-20120110154500-466y26mkyb947nze
2012-01-10 16:45:00 +01:00
Xavier Morel d98b8b8be0 [ADD] handling of binary fields to the listview
bzr revid: xmo@openerp.com-20120110153905-zxqkze9c4zrkmv2a
2012-01-10 16:39:05 +01:00
Xavier Morel 4cc9cb83ce [IMP] add bin_size flag to listview reads in order not to fetch binary file contents
bzr revid: xmo@openerp.com-20120110143556-ijsmmhvenw93vzfb
2012-01-10 15:35:56 +01:00
Serpent Consulting Services 6f4fc625cf [FIX] List view :- Column should be added for edit icon in group by record.
lp bug: https://launchpad.net/bugs/913485 fixed

bzr revid: support@serpentcs.com-20120109065022-rcdng1w3c6xobxc8
2012-01-09 12:20:22 +05:30
Xavier Morel 01fdd9420f [FIX] reload form (and list) views after sidebar actions
bzr revid: xmo@openerp.com-20111221141953-zovj4tpwse9tfvm9
2011-12-21 15:19:53 +01:00
Xavier Morel 3c11f25e73 [FIX] don't display group paginators in analysis views
bzr revid: xmo@openerp.com-20111221092921-jiluuxyd2cfebxgt
2011-12-21 10:29:21 +01:00
Xavier Morel d206ee9124 [ADD] guide to translations in OpenERP Web
bzr revid: xmo@openerp.com-20111220183521-oo4dvofca1uqmzuy
2011-12-20 19:35:21 +01:00
Xavier Morel 4cb4ac397b [FIX] view node attributes should have precedence over field attributes for a field when they collide
lp bug: https://launchpad.net/bugs/906893 fixed

bzr revid: xmo@openerp.com-20111220152223-vz7ibc1hjydohwk5
2011-12-20 16:22:23 +01:00
niv-openerp f295808ff1 [imp] replaced many usages of setTimeout by async_when
bzr revid: nicolas.vanhoren@openerp.com-20111219162805-0ibqw4hn23imkfuj
2011-12-19 17:28:05 +01:00
Xavier Morel a8286263ff [ADD] lazy translation function, to correctly translate strings in contexts evaluated before the translation db has been loaded
bzr revid: xmo@openerp.com-20111216130000-56qd717d79529opy
2011-12-16 14:00:00 +01:00
Xavier Morel 265d9e1ef4 [ADD] translatable name to views
lp bug: https://launchpad.net/bugs/904989 fixed

bzr revid: xmo@openerp.com-20111216112054-xys9q3ap6dcatppr
2011-12-16 12:20:54 +01:00
Christophe Simonis 160801b0e6 [IMP] handle url for list views
bzr revid: chs@openerp.com-20111215153134-tdwy5y8j7ktm1dzv
2011-12-15 16:31:34 +01:00
Xavier Morel 5e0cf3080d [ADD] form links into list views
bzr revid: xmo@openerp.com-20111215152934-ujciaxk6o1iyorng
2011-12-15 16:29:34 +01:00
Fabien Meghazi 188615a35f [IMP] Use proper name for edit_link option
bzr revid: fme@openerp.com-20111215133800-q8cypwxu7hps21ty
2011-12-15 14:38:00 +01:00
Fabien Meghazi 30373a1307 [FIX] Use event.target instead of event.toElement
bzr revid: fme@openerp.com-20111215123536-wnsbnqakjhflle7x
2011-12-15 13:35:36 +01:00
Xavier Morel fd96386cd4 [FIX] translatability of addition button label in listview
* Original label is evaluated very early (before translation database is loaded), defer its execution
* Replacement 'add' label in m2m list views wasn't marked for translation
* Also mark a few strings in form view

lp bug: https://launchpad.net/bugs/903963 fixed

bzr revid: xmo@openerp.com-20111215100652-8iujastl6bvi7feu
2011-12-15 11:06:52 +01:00
Fabien Meghazi ef954a8a95 [ADD] ListView: Added pencil icon linking to form view
bzr revid: fme@openerp.com-20111214172952-xp4c6h6fccbyzt8r
2011-12-14 18:29:52 +01:00
Antony Lesuisse d1ddc1ee78 [IMP] factorise View.do_show do_hide
bzr revid: al@openerp.com-20111214171811-c4bka4nwylp3wn21
2011-12-14 18:18:11 +01:00
Xavier Morel e557a4b4c0 [FIX] don't display add/remove buttons in group_by_no_leaf views
bzr revid: xmo@openerp.com-20111214144317-7k0u4s2xg9ochpte
2011-12-14 15:43:17 +01:00
Xavier Morel 51ffcdd7e8 [FIX] Ignore @invisible field spec on group titles, it's bothersome to have group titles don't display
bzr revid: xmo@openerp.com-20111213154722-vrpbl41hjgu66v1u
2011-12-13 16:47:22 +01:00
Xavier Morel b6a0a7b886 [FIX] indentation of terminal groups in group_by_no_leaf
bzr revid: xmo@openerp.com-20111213153931-vdm0lo1murvz3hjr
2011-12-13 16:39:31 +01:00
Xavier Morel 987a9cc07b [IMP] merge title of o2m list view into list header
bzr revid: xmo@openerp.com-20111213144955-o4menzpyak0c1ugx
2011-12-13 15:49:55 +01:00
Xavier Morel 8cd2acd27f [FIX] progress values in group headers
bzr revid: xmo@openerp.com-20111213115452-hnxjfgehq49cv6ye
2011-12-13 12:54:52 +01:00
Xavier Morel 65f92d7208 [FIX] columns filtering in group headers
bzr revid: xmo@openerp.com-20111213115001-r0lhumhiqtdxcdrv
2011-12-13 12:50:01 +01:00
Xavier Morel fb4db0666f [FIX] missing confirmation message handling on listview buttons
lp bug: https://launchpad.net/bugs/903209 fixed

bzr revid: xmo@openerp.com-20111213081038-sq5p1a2lsodieito
2011-12-13 09:10:38 +01:00
Xavier Morel 5882ba65e3 [FIX] correctly format group header values
lp bug: https://launchpad.net/bugs/902302 fixed

bzr revid: xmo@openerp.com-20111212131534-z1a7c35c43u85c5g
2011-12-12 14:15:34 +01:00
Vaibhav (OpenERP) 15e9b073c6 [FIX] ListView drag&drop within parent bound.
bzr revid: vda@tinyerp.com-20111208131633-b7c3bd5hs3deuobd
2011-12-08 18:46:33 +05:30
Xavier Morel bbf46ca288 [FIX] creation button in list view
bzr revid: xmo@openerp.com-20111207133229-m47jhi2kr01247k4
2011-12-07 14:32:29 +01:00
Xavier Morel f3c671cbd8 [ADD] push/pop API for views
lp bug: https://launchpad.net/bugs/900225 fixed

bzr revid: xmo@openerp.com-20111207104503-gcy0gbin36s4uudh
2011-12-07 11:45:03 +01:00
Xavier Morel c58ebcfaed [FIX] records disappearing from sequenceable list views when dropped onto their original position
In the listview's backing Records, a noop set (setting a property to
the value it already has) has no visible effect (no even is triggered,
it is simply ignored).

The listview relies on setting the sequence number to refresh records
and re-display them correctly in their table rows, but dropping an
already sequenced row onto itself would set its sequence to its
current value (barring record removals), yielding to no refresh and
the row simply poofing out of view as it gets removed from the
collection (and the table), then added back to the collection in its
new (and old) position and displayed in a bare-bones empty states
waiting for a render_record call.

Added a check to sorting management to bail out immediately if a sort
is a noop (the row is dropped at the same position it was taken from)

lp bug: https://launchpad.net/bugs/900207 fixed

bzr revid: xmo@openerp.com-20111206123735-4bfnqh1zl7u4ozm9
2011-12-06 13:37:35 +01:00
Xavier Morel 0fbdaab88f [FIX] defer actually writing the resequencing of a list view to the backing dataset ~/projects/tiny/web/current
There seems to be an issue with synchronous o2m writes doing weird
things (records disappear after being drag & dropped)

lp bug: https://launchpad.net/bugs/900207 fixed

bzr revid: xmo@openerp.com-20111206082713-efq1w88sv0htl39c
2011-12-06 09:27:13 +01:00
Xavier Morel 34b8c8f4a6 [FIX] right-align number columns in group headers
lp bug: https://launchpad.net/bugs/900204 fixed

bzr revid: xmo@openerp.com-20111205110647-jnzk2hppavgbhpa0
2011-12-05 12:06:47 +01:00
Xavier Morel 19d9cc0481 [FIX] list should go back to first page on new search
lp bug: https://launchpad.net/bugs/898546 fixed

bzr revid: xmo@openerp.com-20111201104233-kpkywab12mqbkzmu
2011-12-01 11:42:33 +01:00
Xavier Morel 7f7f00a52f [FIX] docstring
bzr revid: xmo@openerp.com-20111123122957-416z2p458wpw7nic
2011-11-23 13:29:57 +01:00
Fabien Meghazi db2c85635b [IMP] Upgraded unserscore version from 1.1.7 to 1.2.2 and underscore.string from 1.1.6 to 1.2.0
WARNING: underscore string does not mixin to underscore by default. Use _.str.*

bzr revid: fme@openerp.com-20111115123059-k31lhp0db2d8h22k
2011-11-15 13:30:59 +01:00
Xavier Morel e536b4ace8 [FIX] handling of groups with length 0 in ContainerDataGroup's group descriptor munger
For a group with a ${field}_count of 0, code would fallback on __count
which does not exist -> would try to set group.length to `undefined`
which leads to the property being removed from the result, blowing up
the call to `$('<td>').text(group.length)` in the listview (jQuery's
.text() apparently does not like getting `undefined` as its
parameter... who knew?)

Also make `openable` clearer, and improve style of listview in case of
an empty group (openable but length 0): remove the arrow on the left
(but leave the indent, otherwise it's ugly).

lp bug: https://launchpad.net/bugs/889807 fixed

bzr revid: xmo@openerp.com-20111115112906-e87sf40tgr8goqps
2011-11-15 12:29:06 +01:00
Xavier Morel c6d6027f64 [FIX] cell borders in padding rows of list views
bzr revid: xmo@openerp.com-20111114092721-n9gqprm31hhcfr5w
2011-11-14 10:27:21 +01:00
Xavier Morel 194cc51b22 [FIX] only aggregate columns explicitly asking for aggregation ~/projects/tiny/web/current
Instead of relying only on the column's group_operator, ensure the
view itself asks for the aggregation function (by checking if the
corresponding field attribute is set).

If the @group_operator function is not set on the field (even without
a label, it just has to be *there* so `<field sum=""/>` would work),
do not aggregate the column at all.

bzr revid: xmo@openerp.com-20111114081853-a9ja0zdaxk2261nd
2011-11-14 09:18:53 +01:00
Xavier Morel 48499f2e0a [FIX] list view: display group titles straight from read_group if we fail to format them
read_group plays fast and loose with formats, and apparently has no
problem returning arbitrary strings for date columns, arbitrary
strings which may very well be completely unparseable.

lp bug: https://launchpad.net/bugs/885289 fixed

bzr revid: xmo@openerp.com-20111110152850-o31j3r4u5gdugznw
2011-11-10 16:28:50 +01:00
Xavier Morel 90972f5e27 [IMP] add confirmation message when deleting a record in form view
bzr revid: xmo@openerp.com-20111110103650-pqss9bfejudyqkp2
2011-11-10 11:36:50 +01:00
Xavier Morel 125ce4ec85 [FIX] on a button action, ListView should send the content of the corresponding record as (evaluation) context
also needs to set active_id, and let's throw active_ids and active_model in for the same price

lp bug: https://launchpad.net/bugs/881301 fixed

bzr revid: xmo@openerp.com-20111028085051-p49564vmrozkr1fr
2011-10-28 10:50:51 +02:00
Xavier Morel 69f909a9a1 [REN] 'New' button of ListView to 'Create'
bzr revid: xmo@openerp.com-20111025132412-4vx57uf1vipcyfkq
2011-10-25 15:24:12 +02:00
Xavier Morel e35686ca93 [ADD] global select/unselect toggle on lists
bzr revid: xmo@openerp.com-20111025105925-7ghxlljq6ugupxx5
2011-10-25 12:59:25 +02:00
Xavier Morel b6a0874f4c [FIX] disgusting hack to skip around race condition
When clicking on an action button, form view first saves then executes
the action. In doing so, it causes the o2m field to call
ListView#reload_content twice without waiting for the reloading to
end, generating a race condition in ListView.List#render_dataset.

As a result, the read_slice callback fills the list twice (once for
each #reload_content call), resulting in everything being duplicated.

Clear the content of the records collection before adding stuff.

note: collections should dedup on ids.

lp bug: https://launchpad.net/bugs/877965 fixed

bzr revid: xmo@openerp.com-20111025085112-q38q8m0k2mopwadg
2011-10-25 10:51:12 +02:00
Xavier Morel ba2f06a2ac [ADD] missing deferred propagation in ListView.reload_content
bzr revid: xmo@openerp.com-20111025070626-pxxp6virhhomb7kl
2011-10-25 09:06:26 +02:00
kbh fa94cf7578 [IMP] Remove unnecessary code in checkbutton select all/none in list view.
bzr revid: kbh@bde-desktop-20111025062429-dvx4x0h1caqwg21i
2011-10-25 11:54:29 +05:30
kbh 276cff1807 [IMP] Remove unnecessary code in checkbutton select all/none in list view.
bzr revid: kbh@bde-desktop-20111025060142-47y025oqteocdgj3
2011-10-25 11:31:42 +05:30