Skip to content

[19.0][MIG] survey_next_survey_update_partner: Migration to version 19.0 - #254

Open
adasatorres-tecnativa wants to merge 7 commits into
OCA:19.0from
Tecnativa:19.0-mig-survey_next_survey_update_partner
Open

[19.0][MIG] survey_next_survey_update_partner: Migration to version 19.0#254
adasatorres-tecnativa wants to merge 7 commits into
OCA:19.0from
Tecnativa:19.0-mig-survey_next_survey_update_partner

Conversation

@adasatorres-tecnativa

Copy link
Copy Markdown

@OCA-git-bot OCA-git-bot added series:19.0 mod:survey_next_survey_update_partner Module survey_next_survey_update_partner labels Aug 25, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration survey_next_survey_update_partner

@eduezerouali-tecnativa

Copy link
Copy Markdown

@adasatorres-tecnativa can you rebase please

@adasatorres-tecnativa
adasatorres-tecnativa force-pushed the 19.0-mig-survey_next_survey_update_partner branch from d2ccd23 to 2f2a086 Compare September 8, 2026 12:13
@adasatorres-tecnativa

Copy link
Copy Markdown
Author

@eduezerouali-tecnativa ready

Comment thread survey_next_survey_update_partner/static/tests/survey_contact_update_tour.esm.js Outdated
Comment thread survey_next_survey_update_partner/demo/survey_update_generated_partner_demo.xml Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and code-reviewed.

Migration looks fine and the test suite is green, but the module doesn't work end-to-end on 19.0 — and it's a survey_answer_generation bug, not this PR's.

Chain two surveys, map a single/multiple choice question between them (Country, Tags…), and answer them anonymously (private window / no login — otherwise the answer already has a partner_id and no contact is generated). Submitting the second survey crashes:

Image

_compute_diff_with_origin doesn't str()-coerce the values in the else branch, so a linked choice line with no suggested_answer_id yet (prefilled question, not answered while navigating between pages) gives current_value = False and get_diff() blows up on False.splitlines(). Since diff_with_origin is a batched stored compute, that one line kills the recompute for all of them → they stay False_mark_done never propagates any changed prefilled answer to the partner (only brand-new questions get through).

IMO, it should be fixed first (or in the same series). Worth extending the test here to modify a prefilled choice answer too — the current tour only covers forward char_box edits.

Comment thread survey_next_survey_update_partner/tests/test_next_survey_update_partner.py Outdated
Comment thread survey_next_survey_update_partner/tests/test_next_survey_update_partner.py Outdated
@adasatorres-tecnativa
adasatorres-tecnativa force-pushed the 19.0-mig-survey_next_survey_update_partner branch from 6ce3a43 to ae9308a Compare September 10, 2026 07:04
@adasatorres-tecnativa

Copy link
Copy Markdown
Author

ping @pilarvargas-tecnativa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:survey_next_survey_update_partner Module survey_next_survey_update_partner series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants