[FIX] account: fix the label for due date

The label for due date was targeting invoice_payment_term_id
instead of due date, thus not profiting from the readonly rules
and being muted when it should not.

closes odoo/odoo#103344

X-original-commit: 9da25683e918838609ffdac87c979f883d11d027
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Nicolas Viseur <vin@odoo.com>
This commit is contained in:
Nicolas (vin)
2022-10-20 08:23:49 +02:00
parent 70723fb938
commit 418a0c734d
+1 -1
View File
@@ -811,7 +811,7 @@
<!-- Invoice payment terms (only invoices) + due date (only invoices / receipts) -->
<div class="o_td_label" attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}">
<label for="invoice_payment_term_id" string="Due Date"
<label for="invoice_date_due" string="Due Date"
attrs="{'invisible': [('invoice_payment_term_id', '!=', False)]}"/>
<label for="invoice_payment_term_id" string="Payment terms"
attrs="{'invisible': [('invoice_payment_term_id', '=', False)]}"/>