diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2018-07-26 11:44:02 +0200 |
|---|---|---|
| committer | nle-odoo <nle@odoo.com> | 2018-07-26 15:26:27 +0200 |
| commit | 07023137cd17d8917673fd6ba7809b2870bd8cc0 (patch) | |
| tree | 2cf4a5b5bd49cf66310d3d8611e689180a981a91 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 82da221b1fb761bdab84c4ffd3924809df2bec39 (diff) | |
[FIX] models.py: onchange creating m2m => no NewId
Since 2054b59 if we created a record in a many2many relationship of an
onchange, we would also possibly erreneously return the NewId.
The logic of convert_to_onchange of _RelationalMulti doesn't send back
the ID field (if the ID is needed, it is part of the command, not the
update/create dictionary values of a command) and this commit does the
same for the code changed in 2054b59.
This commit also adds a test for this fix, and a test for the regression
corrected with cd2ccc4110 reported in #25969
fix for https://github.com/odoo/odoo/commit/2054b5928#commitcomment-29837226
closes #25984
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
