Commit Graph

33 Commits

Author SHA1 Message Date
niv-openerp 75d39c7f6a [imp] renammed stop()
bzr revid: nicolas.vanhoren@openerp.com-20120221162912-zheko30qoh84hcoq
2012-02-21 17:29:12 +01:00
niv-openerp efb48237bb [imp] improved html generation in editable lists
bzr revid: nicolas.vanhoren@openerp.com-20120221105229-h7609f8boalmvl6q
2012-02-21 11:52:29 +01:00
niv-openerp 4f09c66c3b [imp] removed useless class
bzr revid: nicolas.vanhoren@openerp.com-20120221101522-c9hkpg381cz6j5l4
2012-02-21 11:15:22 +01:00
niv-openerp 383f1750c5 [imp] wip
bzr revid: nicolas.vanhoren@openerp.com-20120221095856-656l1so4ejc06gih
2012-02-21 10:58:56 +01:00
Xavier Morel 2d08b98ea4 [FIX] bug introduced during xmo@openerp.com-20120208130738-pr92lh9qotki71o4
Change made registry inheritance "lazy", keeping a permanent relation
between child and parent and walking the tree to find matches.

But editable listviews relied on an implementation detail (that an
extension eagerly created keys in the children registry) and iterated
over the internal map of the child registry they'd just created to
replace the form keys with overridden versions of the form widgets.

Just iterate over form's registry, but really the editable list should
have its own Registry subclass doing that stuff more solidly.

bzr revid: xmo@openerp.com-20120209154844-zk2xuxdhhi57eqhp
2012-02-09 16:48:44 +01:00
Xavier Morel f5ee468ca5 [REF] rename Registry#clone to Registry#extend
bzr revid: xmo@openerp.com-20120208124634-qucyuwlangw15nqh
2012-02-08 13:46:34 +01:00
Xavier Morel ac8532f801 [FIX] pressing [ESC] while in an editable listview in a dialog should not close the dialog
bzr revid: xmo@openerp.com-20120123143614-c2cw93asd6n5qfqs
2012-01-23 15:36:14 +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 683aeeb2c5 [FIX] Fix some editable list styling bugs due to last styling merge
There is still one missing problem: once editing an existing row,
the font size is buggy.

bzr revid: fme@openerp.com-20111220201434-5gwo37br7qil1qp5
2011-12-20 21:14: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 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 e59a573534 [REM] revert arrow navigation in editable list (postponed)
bzr revid: al@openerp.com-20111211153010-mrydgknz0tg2tbqq
2011-12-11 16:30:10 +01:00
Xavier Morel 9268a1c680 [ADD] editable list navigation via KEY_UP and KEY_DOWN
Both start by saving the row being edited, then (if the save is successful) going to the record above or below them

bzr revid: xmo@openerp.com-20111208141923-1p1rm4mu0hikls6m
2011-12-08 15:19:23 +01:00
Xavier Morel 54f3f38957 [IMP] ListView#save_row internals by taking advantage of Deferred#pipe
and FormView#do_save returning a deferred of course.

bzr revid: xmo@openerp.com-20111208123846-dp3cgbsljl41q82k
2011-12-08 13:38:46 +01:00
Xavier Morel 37dee90724 [IMP] API for ListView#save_row (better use returned deferred)
* Deferred now provides creation flag and which record was edited on resolution
* Moved logic for editing next record (or creating a new one) to keyboard event handler
* Extracted keyboard even handler to prepare for new edition keys

bzr revid: xmo@openerp.com-20111208122946-221yve4amubqo1be
2011-12-08 13:29:46 +01:00
Xavier Morel f3d4219164 [IMP] editable list UI
* removed cancel edition button
* used an icon for save edition button

bzr revid: xmo@openerp.com-20111208091055-j80gi36s0j5c3mpi
2011-12-08 10:10:55 +01:00
Xavier Morel d00008c994 [FIX] if necessary, add padding when rendering a given row in an editable list.
otherwise there are columns missing, and the list looks broken

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

bzr revid: xmo@openerp.com-20111123093313-8qair3pai8ms4ch7
2011-11-23 10:33:13 +01:00
Xavier Morel 8290deff05 [ADD] handle failure to save in ListView#ensure_saved: reject the deferred
bzr revid: xmo@openerp.com-20111027083617-medipetfasqvfacq
2011-10-27 10:36:17 +02:00
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