Merge lp:~akretion-team/server-env-tools/web-context-tunnel into lp:~server-env-tools-core-editors/server-env-tools/7.0
Proposed by
Raphaël Valyi - http://www.akretion.com
Status: | Merged |
---|---|
Approved by: | Alexandre Fayolle - camptocamp |
Approved revision: | 57 |
Merged at revision: | 56 |
Proposed branch: | lp:~akretion-team/server-env-tools/web-context-tunnel |
Merge into: | lp:~server-env-tools-core-editors/server-env-tools/7.0 |
Diff against target: |
153 lines (+132/-0) 3 files modified
web_context_tunnel/__openerp__.py (+92/-0) web_context_tunnel/static/src/js/context_tunnel.js (+26/-0) web_context_tunnel/static/test/context_tunnel.js (+14/-0) |
To merge this branch: | bzr merge lp:~akretion-team/server-env-tools/web-context-tunnel |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | code review | Approve | |
Alexandre Fayolle - camptocamp | code review, no test | Approve | |
Mario Arias (community) | code review, no test | Approve | |
Alexis de Lattre (community) | Approve | ||
Review via email: mp+198599@code.launchpad.net |
Description of the change
please see the module description in the __openerp__.py file.
I would like to see if OCA could not use that to avoid changing on_change signatures in incompatible ways for the OCA modules.
Eager to look after your comments.
To post a comment you must log in.
To help for the review, it's probably helpful to mention that the original build_context method is defined this way: /github. com/akretion/ openerp- web/blob/ ocb-7.0/ addons/ web/static/ src/js/ view_form. js#L1866
https:/
Also, I'm redefining build_context on the prototype directly (instead of using .extend), because we want to alter the build_context of all widget built upon the instance. web.form. FormWidget prototype.
Notice that my module totally preserves the original behavior if a widget simply has a context attribute with no extra context* extensions.