summaryrefslogtreecommitdiff
path: root/addons/base_import/static/src/xml/base_import.xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-04-12 09:02:59 +0200
committerAaron Bohy <aab@odoo.com>2018-04-12 14:37:35 +0200
commit9c1c2c55c23655c56dcd04c3d80da59b5bcab177 (patch)
treeb6abe762819608afa887196f755292cb6f48c8d1 /addons/base_import/static/src/xml/base_import.xml
parent9353fa1edea5a140587cea873b1ab9ae1ed5228d (diff)
[FIX] web: one2many: add new record with 'Save & New'
Consider the following scenario involving a one2many list (non editable) inside a form view: - click on 'Add an item', a model opens, - fill the fields and click on 'Save & Close', - reopen the freshly created record, - maybe make some changes (this is optional, but makes sense), - click on 'Save & New', - fill the fields and click on 'Save & Close', -> the second created record isn't added to the list. The problem comes from the fact that when the dialog is opened for the second time (in this case by clicking on a record), the 'save' handler registers an 'UPDATE' command. While this is correct for the 'Save & New' click (as we update an existing record), this isn't for the second record which doesn't exist yet, and thus requires an 'ADD' command. This rev. ensures that the two cases are handled in the 'save' handler given to the dialog. OPW 1829723
Diffstat (limited to 'addons/base_import/static/src/xml/base_import.xml')
0 files changed, 0 insertions, 0 deletions