Skip to content

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

Merged
OCA-git-bot merged 7 commits into
OCA:19.0from
Tecnativa:19.0-mig-survey_next_survey_update_partner
Sep 14, 2026
Merged

OCA-git-bot merged 7 commits into
OCA:19.0from
Tecnativa:19.0-mig-survey_next_survey_update_partner

Conversation

@adasatorres-tecnativa

Copy link
Copy Markdown
Contributor

@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
Contributor

@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
Contributor 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
Contributor

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
Contributor Author

ping @pilarvargas-tecnativa

@pilarvargas-tecnativa pilarvargas-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review 👍

@pedrobaeza

Copy link
Copy Markdown
Member

ping @eduezerouali-tecnativa

@eduezerouali-tecnativa eduezerouali-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM, but it still not working. Maybe it was not rebase.

Image Image

@adasatorres-tecnativa
adasatorres-tecnativa force-pushed the 19.0-mig-survey_next_survey_update_partner branch from ae9308a to 8d980d2 Compare September 14, 2026 09:57
@adasatorres-tecnativa

Copy link
Copy Markdown
Contributor Author

@eduezerouali-tecnativa now.

@eduezerouali-tecnativa eduezerouali-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested and work fine.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-254-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 6914eea into OCA:19.0 Sep 14, 2026
6 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 851c774. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-mig-survey_next_survey_update_partner branch September 14, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants