18.0-fwd-survey_record_generation-fixes #27

Merged
mondot merged 2 commits from 18.0-fwd-survey_record_generation-fixes into 18.0 2026-10-10 15:25:46 +00:00
Owner

Backport de 2 commits FIX faits sur la branche 16.0

Backport de 2 commits FIX faits sur la branche 16.0
mondot added 2 commits 2026-10-10 15:25:00 +00:00
(cherry picked from commit 7a1eacc16c from the branch 16.0)
[FIX] survey_record_generation: partner_id/email on survey.user_input could be wrong
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m48s
tests / test (pull_request) Successful in 1m8s
2835e2d2be
New version : 18.0.1.0.1

_mark_done() only set partner_id/email when it created a *new* res.partner.
If the answer already had a partner_id/email (e.g. inherited from the Odoo
user logged in when the /survey/start link was opened), that value was kept
even though the record creation matched or created a different, correct
contact from the participant's own answers.

Now we always sync partner_id/email to the res.partner actually matched or created
from the participant's answers.

Add a migration to relink partner_id/email on existing done submissions.

(cherry picked from commit 0d521278c7 from the branch 16.0)

Assisted-By: Claude Sonnet 5 <noreply@anthropic.com>
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
mondot merged commit 2835e2d2be into 18.0 2026-10-10 15:25:46 +00:00
mondot deleted branch 18.0-fwd-survey_record_generation-fixes 2026-10-10 15:25:46 +00:00
Sign in to join this conversation.
No description provided.