[FIX] account: no "Draft" title on invoices that were posted before

Consider an invoice that was reset to draft.
When its is edited to be '/' (and the record is saved) an additional "Draft" title appears.
It should not appear.

After this commit the "Draft" title will not be shown on invoices
that were posted before.

task-3680398

closes odoo/odoo#152110

X-original-commit: d0876de81dc66cb6483598deb33bf6c81212ec89
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Sven Führ (svfu) <svfu@odoo.com>
This commit is contained in:
Sven Fuehr
2024-02-01 07:07:00 +00:00
parent 96560c4db6
commit 544857ba26
+1 -1
View File
@@ -874,7 +874,7 @@
<h1>
<field name="name" invisible="name == '/' and not posted_before and not quick_edit_mode" readonly="state != 'draft'" placeholder="Draft"/>
<span invisible="state != 'draft' or name != '/' or quick_edit_mode">Draft</span>
<span invisible="state != 'draft' or name != '/' or posted_before or quick_edit_mode">Draft</span>
</h1>
</div>
<group>