Skip to content
Snippets Groups Projects
Commit 07023137 authored by Nicolas Lempereur's avatar Nicolas Lempereur Committed by nle-odoo
Browse files

[FIX] models.py: onchange creating m2m => no NewId

Since 2054b592 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 2054b592.

This commit also adds a test for this fix, and a test for the regression
corrected with cd2ccc41 reported in #25969

fix for https://github.com/odoo/odoo/commit/2054b5928#commitcomment-29837226
closes #25984
parent 82da221b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment