diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-05-19 14:22:28 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-05-22 09:31:15 +0200 |
| commit | af021f223b2ef3801fa012e82775054c48054b98 (patch) | |
| tree | b2444c2ec872c8af810f30c6fbf60e28db4fe7b8 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | da152cfdbf003ea8eb7140486cf83c5ba60795ab (diff) | |
[FIX] web: apply onchange when m2o or m2m is edited
Before this commit, when editing a many2one (with an onchange) by
clicking on the small form button on the right, then changing something,
then saving the modal dialog, no onchange was triggered, because,
technically, the value of the many2one was not changed, only the values
from the record pointed by the many2one were.
The same remarks applies to many2manys.
To see this issue in odoo, you can open a product (technically, a
product.template) from the 'Catalog' menu in sales, then edit it, then
click on the small form view icon next to Internal Category. This is a
many2one (categ_id) with an onchange. In the form view dialog, change
something, for example costing method, then save. The res_id of the
internal category was not changed, but an onchange should still be
triggered.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
