bfe59096dbb45b7a41fbde7b8be8cf73953ead12
A NOT required "other_record" field was always set after the loop with a write(), even when the linked record was already created. This late write triggers the recomputation of stored computed fields depending on the relation, overriding the values answered by the user. E.g. with subscription_oca, sale.subscription.line price_unit depends on sale_subscription_id.partner_id/pricelist_id: a free amount typed in a numerical_box question (33) was replaced by the product price (20) when the line was linked to its subscription. Now the relation is given to create() when the linked record already exists, so that the user's values are protected from recomputation. The deferred write is kept for records created later. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Description
Languages
Python
76.8%
JavaScript
11.7%
HTML
10.3%
Shell
0.8%
SCSS
0.4%