Commit Graph

106 Commits

Author SHA1 Message Date
Xavier Morel a7354829cd [CNG] make forms worse but pagination not break in case of manyrecords
bzr revid: xmo@openerp.com-20120209170748-l70q7grxgsumha2i
2012-02-09 18:07:48 +01:00
Xavier Morel b21eb64306 [FIX] selection state does not survive list content reload, so global checkbox should not either
global checkbox should be deselected after e.g. sidebar actions, or sorting the list

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

bzr revid: xmo@openerp.com-20120206091143-gpljqsldg6xx508r
2012-02-06 10:11:43 +01:00
Fabien Meghazi 5e7b30e996 [FIX] Do not FormView#do_show() twice on cold do_load_state()
bzr revid: fme@openerp.com-20120201154442-gwbdm99wy8qahwie
2012-02-01 16:44:42 +01:00
Xavier Morel 309dccbc1f [FIX] if no list limit is specified anywhere, default to 80 on listview initialization
lp bug: https://launchpad.net/bugs/923805 fixed

bzr revid: xmo@openerp.com-20120201131848-b0a0ity490s548c3
2012-02-01 14:18:48 +01:00
Xavier Morel b50afe59fb [FIX] don't forget to set py.bool in context of py.eval/py.evaluate
py.eval really needs to automatically have builtins in its evaluation context...

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

bzr revid: xmo@openerp.com-20120130085557-oqmjs0owgdrwshu0
2012-01-30 09:55:57 +01:00
Xavier Morel eaa1fbca72 [FIX] strange draggable behavior in Chrome 15/Linux
dragging any other row than the first one in a sortable table (table with sequences)
has the row going way to the right of the table, in both editable list views (e.g.
tasks) and relational fields (e.g. Accounting > Configuration > Financial Accounting
> Taxes > Taxes[form] > Child Tax Accounts

bzr revid: xmo@openerp.com-20120127091938-z79e7aj6wjcmfmmz
2012-01-27 10:19:38 +01:00
Xavier Morel 7f1c184bb4 [IMP] invert sorting arrows
http://notes.ericjiang.com/posts/456

bzr revid: xmo@openerp.com-20120125150201-82vkms4pxyn2qbsu
2012-01-25 16:02:01 +01:00
Vaibhav (OpenERP) a93daf3b98 [FIX] helper clone for dragged element.
lp bug: https://launchpad.net/bugs/920349 fixed

bzr revid: vda@tinyerp.com-20120125131528-twjtq49lhzr214vr
2012-01-25 18:45:28 +05:30
Xavier Morel 4a16a74de0 [IMP] only display group paginator if there are more than 80 records in the group
bzr revid: xmo@openerp.com-20120117124312-n4h9r1g9ovk09xli
2012-01-17 13:43:12 +01:00
Xavier Morel 8f4a0277ac [FIX] unbind handlers on records from a collection when the record is removed from the collection or the collection is reset
bzr revid: xmo@openerp.com-20120112170917-n6xadpzkbflk9s2c
2012-01-12 18:09:17 +01:00
Xavier Morel f4efb938e2 [FIX] forgot to forward arguments correctly in xmo@openerp.com-20120112084910-6fxbzbgmv51utyko
bzr revid: xmo@openerp.com-20120112102941-qa596ufk5nlc2nqp
2012-01-12 11:29:41 +01:00
Xavier Morel 12e3ef7fbf [IMP] add lazier proxy method on CallbackEnabled, use it in WebClient and ListView
bzr revid: xmo@openerp.com-20120112084910-6fxbzbgmv51utyko
2012-01-12 09:49:10 +01:00
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