Merge lp:~openerp-dev/openerp-web/6.1-opw-579519-msh into lp:openerp-web/6.1
Proposed by
Mohammed Shekha(Open ERP)
Status: | Merged |
---|---|
Approved by: | Xavier ALT |
Approved revision: | 2462 |
Merged at revision: | 2491 |
Proposed branch: | lp:~openerp-dev/openerp-web/6.1-opw-579519-msh |
Merge into: | lp:openerp-web/6.1 |
Diff against target: |
79 lines (+28/-6) 1 file modified
addons/web/static/src/js/view_form.js (+28/-6) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/6.1-opw-579519-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+126388@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of blur and focus event binded on many2one menu button, here when you open context menu in editable one2many and click any option of the context will call save for current row.
Reason :- We bind the focus and blur of menu button of context menu, so when we click inside context menu will call blur for the menu button, and focus is not set to other widget of current row hence it will call form-blur and form-blur in turn call save for current row.
Hence manually bind the focus and blur for menu button of context menu instead of setupFocus, and ignore the blur when context menu clicked.
Thanks.
To post a comment you must log in.
Hi Mohammed,
I've rework thing a little here to better handle the blur flag, as pn r2461 the flag was never resetted to "false".
I have also improved handling of that blur thing when both "contextmneu" and "autocomplete" is visible (that why we need to distinct flag) and when clicking on "menu_btn" from different many2one consecutively.
Cheers,
Xavier