diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-03-31 16:26:50 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 21324ded09883d08ec951b0e3cc80ff5ed270aed (patch) | |
| tree | cddd8f60c4ccd79e5072ae722d4896a531c9f66c /addons/web/static/src/js/views/pivot/pivot_controller.js | |
| parent | 28e1620731604410216239fee70a7b1cbfd3b7ae (diff) | |
[FIX] web: do not create new line if onchange has warning in o2m
In a one2many field, when the user clicks on the 'Add a line' button, we
need to create a new record. This means that we call the default_get
route, then call the onchanges. The onchange can return a 'warning'
key, which is displayed to the user. But in the specific case of a
one2many, we don't want to actually create the record. So, we reject the
deferred to prevent that from happening.
Diffstat (limited to 'addons/web/static/src/js/views/pivot/pivot_controller.js')
0 files changed, 0 insertions, 0 deletions
