Quentin Mondot 4d03cc6cb1
Some checks are pending
pre-commit / pre-commit (pull_request) Waiting to run
[FIX] survey_record_generation: partner_id/email on survey.user_input could be wrong
New version : 16.0.1.0.3

_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.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 15:52:15 +02:00
2026-02-17 15:51:07 +01:00
2024-01-09 11:55:20 +01:00
2024-04-17 15:42:37 +02:00
2023-11-21 11:55:37 +01:00
Description
Survey addons for Odoo
AGPL-3.0 948 KiB
Languages
Python 78.3%
HTML 13.9%
JavaScript 7.8%