summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-10-17 16:29:35 +0200
committerGéry Debongnie <ged@odoo.com>2017-10-17 18:21:47 +0200
commitd365a289d4ed3f557fa46155419f5f517860fe9c (patch)
treea8d14194533d813abcdc2328e423b95c025143a7 /addons/web_editor/static/src/js
parenta1e15b9fced014e58185b161b80eb34692b1474a (diff)
[FIX] web: generate proper x2many commands in some cases
When creating a new record with a non empty default value for a one2many field, we did send the command 0 (for each one2many line) instead of the command 1 (update). This was a pretty big problem, because then the server would try to create a line with possibly incomplete data. For example, it was not possible to create expense sheets: go to expense menu, select one expense in the list view, click on the action menu 'submit to manager', this opens a form view with a one2many with the selected expense, then save. Before this commit, this would lead to a server error.
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions