summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-06-08 14:57:09 +0200
committerAaron Bohy <aab@odoo.com>2017-06-13 08:24:59 +0200
commit5c4485d182b6ab68c7d5c97161f25e67a2fa60d2 (patch)
tree941d407b94acba6d32c2bcd39caeea841c87ed56 /addons/web/static/src/js/views/basic/basic_controller.js
parent76262f2043db1afd6d67a386796107dce91100e4 (diff)
[FIX] web: Many2one in X2Manys: quick create then save line
A problem occured with a required Many2One inside an X2Many (e.g. order_line field in sale.order form view). If the user clicked on 'Add an item' to add a row, then typed some text in the Many2One, then clicked on 'Create ...' to quick create a new product, and then directly clicked on 'Add an item' to add another row (before the name_create returned), the first row was discarded. This was because before the name_create returns, the Many2one still has no value, and as it is required, the row was considered invalid and then discarded. This rev. ensures to wait for the name_create to return before trying to save the row and to create a new one.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions