Merge lp:~openerp-dev/openobject-client-web/6.0-opw-583495-xal into lp:openobject-client-web
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-client-web/6.0-opw-583495-xal |
Merge into: | lp:openobject-client-web |
Diff against target: |
68 lines (+51/-0) 1 file modified
addons/openerp/static/javascript/form.js (+51/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client-web/6.0-opw-583495-xal |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+142311@code.launchpad.net |
Description of the change
Hi,
This fix some onchange problems with nested one2many popup which was not able to get the "parent" data.
Steps:
0) Edit sale.shop form view, and put sale.order object as o2m.
1) Sale > Configuration > Sales > Shop
2) Create a new shop.
3) Fill the required fields and click on new button in "Sale Order" o2m.
4) Add customer and click on new button in "Sale Order Line" o2m.
Current: we get a popup with warning "You have to select a customer in the sales form ! Please set one customer before choosing a product."
Reason: no "sale_ids" value are passed to server call - resulting in no partner_id when evaluating on_change call.
Regards,
Xavier
Unmerged revisions
- 4899. By Xavier ALT
-
[FIX] form onchange: correctly get data from parent window when on_change() happens within a one2many popup