Skip to content
Snippets Groups Projects
Commit 1a46b6bc authored by momegahed's avatar momegahed
Browse files

[FIX] l10n_in: wrong state used


Issue :
- `account.move.state` has only 3 possible values cancel, draft, posted
- the wrong value was used

Fix:
- Use the correct value `posted`

OPW-2991389

closes odoo/odoo#100691

Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
parent f56e0bca
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
<xpath expr="//h2" position="replace">
<h2>
<span t-if="o.type == 'out_invoice' and o.state == 'open'" t-field="o.journal_id.name"/>
<span t-if="o.type == 'out_invoice' and o.state == 'posted'" t-field="o.journal_id.name"/>
<span t-if="o.type == 'out_invoice' and o.state == 'draft'">Draft <span t-field="o.journal_id.name"/></span>
<span t-if="o.type == 'out_invoice' and o.state == 'cancel'">Cancelled <span t-field="o.journal_id.name"/></span>
<span t-if="o.type == 'out_refund'">Credit Note</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment