Skip to content

[OU-FIX] loyalty: rewrite removed _get_mail_partner in stored templates#78

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-loyalty-pre-migration
Open

[OU-FIX] loyalty: rewrite removed _get_mail_partner in stored templates#78
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-loyalty-pre-migration

Conversation

@dnplkndll

@dnplkndll dnplkndll commented May 29, 2026

Copy link
Copy Markdown

Slimmed to the genuine delta on top of upstream's now-landed loyalty/19.0.1.0 migration (reconciliation vs OCA/19.0).

19.0 removed loyalty.card's _get_mail_partner() helper. Customized mail.templates still referencing it abort the noupdate data-load render, and _get_mail_author would substitute the wrong partner. This rewrites the stored references (lang/partner_to/email_to/body_html, jsonb-aware) to their 18.0 equivalent object.partner_id.

Dropped from the earlier version (covered upstream): the lang reset — upstream's fix_template_lang (pre) + load_data (post) already handle it.

@dnplkndll
dnplkndll force-pushed the 19.0-mig-loyalty-pre-migration branch 4 times, most recently from 46ce1c3 to 3ff9c2e Compare May 30, 2026 03:16
@dnplkndll
dnplkndll force-pushed the 19.0-mig-loyalty-pre-migration branch 2 times, most recently from 443d4fb to 49d0b1e Compare June 5, 2026 19:53
@dnplkndll
dnplkndll force-pushed the 19.0-mig-loyalty-pre-migration branch 4 times, most recently from a6d3851 to e1c2372 Compare June 19, 2026 11:59
19.0 removed loyalty.card's _get_mail_partner() helper. Customized
mail.templates still referencing it abort the noupdate data-load render
(and _get_mail_author would substitute the wrong partner). Rewrite the
stored references to their 18.0 equivalent object.partner_id, on top of
upstream's fix_template_lang.
@dnplkndll
dnplkndll force-pushed the 19.0-mig-loyalty-pre-migration branch from e1c2372 to b8912d9 Compare July 16, 2026 20:42
@dnplkndll dnplkndll changed the title [OU-FIX] loyalty: pre-migrate stale _get_mail_partner in stored mail.template.lang [OU-FIX] loyalty: rewrite removed _get_mail_partner in stored templates Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant