-
- Downloads
[FIX] web: don't discard x2many rows coming from default_get
Problem occured in the MRP Production wizard (with a consumed product tracked by serial number). The opened record is a new record, and its one2many has 2 default rows that are prefilled. If the user edited one of the quantities in those rows, and set an invalid value instead (e.g. a letter), the row was removed without notice when it was focused out. This was because the model wasn't aware that a change has been done on the record, and as the record was flagged as new, it was simply abandonned.
Showing
- addons/web/static/src/js/fields/abstract_field.js 1 addition, 0 deletionsaddons/web/static/src/js/fields/abstract_field.js
- addons/web/static/src/js/views/basic/basic_controller.js 9 additions, 0 deletionsaddons/web/static/src/js/views/basic/basic_controller.js
- addons/web/static/src/js/views/basic/basic_model.js 11 additions, 0 deletionsaddons/web/static/src/js/views/basic/basic_model.js
- addons/web/static/tests/fields/relational_fields_tests.js 36 additions, 0 deletionsaddons/web/static/tests/fields/relational_fields_tests.js
Loading
Please register or sign in to comment