Review: Disapprove This method is ok in cases when we have no deferred to rely on. But in this case, do_save returns a deferred (at least in trunk)
For this case, what should be done is a jquery plugin $.fn.click_deferred that would take one or more deferred as arguments. The plugin would disable and/or set a disabled state on the element according to the element type, then would undo this state when deferred are resolved or fail. This should be available for all views. Eg: delete buttons, kanban buttons, listview buttons, ... I have a precise idea about how to do that so I won't mind if I'm assigned to the concerned bug. -- https://code.launchpad.net/~openerp-dev/openerp-web/6.1bug-817396-vda/+merge/74215 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openerp-web/6.1bug-817396-vda. _______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp

