Skip to content

[16.0][FIX] account_invoice_overdue_reminder: wysiwig-friendly html code - #573

Open
hbrunn wants to merge 2 commits into
OCA:16.0from
hbrunn:16.0-account_invoice_overdue_reminder-editor-friendly-html
Open

[16.0][FIX] account_invoice_overdue_reminder: wysiwig-friendly html code#573
hbrunn wants to merge 2 commits into
OCA:16.0from
hbrunn:16.0-account_invoice_overdue_reminder-editor-friendly-html

Conversation

@hbrunn

@hbrunn hbrunn commented Aug 20, 2026

Copy link
Copy Markdown
Member

when editing the template with odoo's built-in wysiwig-editor, it will pull the two loops above the <table /> node, as in

<t t-foreach="object.invoice_ids.sorted(key='invoice_date')" t-as="inv" />
<t t-foreach="object.total_residual()" t-as="total_residual" />
<table>
...

which renders the template basically defunct. Instead of teaching customers not to edit this template specifically (the editor works as expected when the qweb attributes live on structural nodes), I suggest to change the template such that it survives editing.

I very much disagree with what prettier did here, but that's what it did.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @alexis-via,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added mod:account_invoice_overdue_reminder Module account_invoice_overdue_reminder series:16.0 labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_invoice_overdue_reminder Module account_invoice_overdue_reminder series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants