Commit Graph

164 Commits

Author SHA1 Message Date
Xavier Morel 6acbb08aa7 [ADD] method forcing the saving of a listview if it's being edited (and not doing anything if it's not)
bzr revid: xmo@openerp.com-20111027082436-46zcjurzxtg5n9zt
2011-10-27 10:24:36 +02:00
Fabien Meghazi 4065bc83b3 [FIX] Problem with action buttons in form views opened from a m2o in an editable list
bzr revid: fme@openerp.com-20111013134606-8n8i1djtg0dvcar6
2011-10-13 15:46:06 +02:00
Xavier Morel 28b0daeaff [FIX] correctly update pager when adding a new record in an editable list
bzr revid: xmo@openerp.com-20111007072019-l59qcgikjeu71v26
2011-10-07 09:20:19 +02:00
Xavier Morel 318ec9998b [IMP] use .children(selector) rather than .find('> ' + selector)
bzr revid: xmo@openerp.com-20111004155918-c2vy0rwkesvdkmli
2011-10-04 17:59:18 +02:00
Xavier Morel 49de0f4640 [FIX] stupidity: if insert a line in a list with more than 5 records (no padding), since the new line does not have a @data-id yet it's going to remove it immediately.
select line to remove before inserting new one

bzr revid: xmo@openerp.com-20111004155746-q13ieg0q6lsy1uf7
2011-10-04 17:57:46 +02:00
Xavier Morel 74db7dd027 [FIX] correctly handle insertion in empty editable list
bzr revid: xmo@openerp.com-20111004154650-hx56g1lmefhzgf21
2011-10-04 17:46:50 +02:00
Xavier Morel 72b852c2c6 [FIX] insertion position of new lines (in editable lists) in case of lists padded to 5 (empty) lines
bzr revid: xmo@openerp.com-20111004154246-7o1cw016cf9ygem3
2011-10-04 17:42:46 +02:00
Xavier Morel f164496dc4 [FIX] correctly call form field's update_dom in all cases in editable listview
Form fields are extended/replaced in editable list view in order to
handle @invisible and @tree_invisible correctly in editable-list-form
context (base semantics of @invisible are different between listview
and formview, formview's @invisible is listview's @tree_invisible, and
instead of removing element from visible DOM listview's @invisible
only hides the element but it keeps the space it's taking).

As a result, listview editable needs to override Widget.update_dom for
pretty much all form widgets, in order to manage this difference in
behavior.

In case of @tree_invisible, it did so correctly setting and unsetting
its stuff and calling this.super() to execute the widget's actual
update_dom triggers **but it did not do so when the element was really
visible**.

As a result, in editable listview elements would never appear required
(blue background), invalid (red background) or disabled (gray),
although they were correctly set up, because the display layer was
never updated.

bzr revid: xmo@openerp.com-20111004151031-65o0q8e86op7kdks
2011-10-04 17:10:31 +02:00
Fabien Meghazi 38ef100ec8 [FIX] Introduced a bug in last commit
bzr revid: fme@openerp.com-20110929104000-vnahwe0w09p03cqx
2011-09-29 12:40:00 +02:00
Fabien Meghazi e34b07e1e3 [IMP] Fixed list view in order to support new do_search
bzr revid: fme@openerp.com-20110929103229-l9pfjqbezj28ihd9
2011-09-29 12:32:29 +02:00
Xavier Morel 8cda63a6e8 [FIX] cancelling a row creation: more ugly hacking of the formview in editable search view
bzr revid: xmo@openerp.com-20110920145823-ecvnotgcu6xltrrv
2011-09-20 16:58:23 +02:00
Xavier Morel bf48d88979 [FIX] one more horrible listview hack, to strip out intermediate dom breaking the listview table
lp bug: https://launchpad.net/bugs/851683 fixed

bzr revid: xmo@openerp.com-20110920141334-k95x10gv9tkneeev
2011-09-20 16:13:34 +02:00
niv-openerp eb45de7805 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110915093144-0ix1tdc8mcmx6l9p
2011-09-15 11:31:44 +02:00
Antony Lesuisse 3ef575744d [IMP] prefix view (obsessive–compulsive rename disorder)
bzr revid: al@openerp.com-20110914204057-cg8y5yy3py70ge62
2011-09-14 22:40:57 +02:00