diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-05-29 15:14:49 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-05-29 20:53:40 +0200 |
| commit | 27463eadabb40747c53c51817cf853fdd91d192f (patch) | |
| tree | 85c6d03cd8bc74e8884a90252f897281e4584d33 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 45bce324f34eeb8ee69e028e0d20b08d998c0eef (diff) | |
[FIX] web: FieldMany2Many: don't save if nothing changed
Suppose that there is a many2many list (non editable) in a form
view. When one of the many2many subrecords is edited (from the
form view in a dialog), it is saved directly when the user clicks
on 'Save' in the dialog.
Before this rev., if the user clicked on 'Save' in the main form
view after editing a m2m subrecord, a 'write' RPC was done, whereas
there were nothing left to save (as the subrecord had already been
saved).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
