diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-04-04 10:09:33 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-04-05 17:14:57 +0200 |
| commit | 9a9da5763b38a3bce54e9c4870af0032e38cacc3 (patch) | |
| tree | 4743e82dc1c9c3ec545ee213a66b8eeaa90153b6 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | f8ade1c96d00c5350a10dead129a36d713e2b9a0 (diff) | |
[FIX] web: no record abandon on discard from default_get/onchange
Before this commit, when some records were created from an `onchange`,
we have the following weird behaviour:
Suppose that this record has some required fields that are empty.
When we click on this record, then somewhere else, the record
disappears from the list.
This is because the records contains invalid fields, and it is wrongfully
assuming that the record to be discarded comes from "Add an item".
A previous commit [1] fixed a bit this issue with `default_get`, but since
it relied on a fragile heuristic, we decide to apply the correct fix with
this commit.
[1] https://github.com/odoo/odoo/commit/b09f0c99be2b13d33986414485556d87da186d65
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
