diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-06-08 14:57:09 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-06-13 08:24:59 +0200 |
| commit | 5c4485d182b6ab68c7d5c97161f25e67a2fa60d2 (patch) | |
| tree | 941d407b94acba6d32c2bcd39caeea841c87ed56 /addons/web/static/tests/views/basic_model_tests.js | |
| parent | 76262f2043db1afd6d67a386796107dce91100e4 (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/tests/views/basic_model_tests.js')
0 files changed, 0 insertions, 0 deletions
