[IMP] account_payment_order: Prevent Payment Date from being defined in transactions to avoid confusion.

It is appropriate not to allow Payment Date to be defined in the transactions because the
'Confirm Payments' process will re-define
This commit is contained in:
Víctor Martínez
2024-06-17 16:47:17 +02:00
parent ada23ab61c
commit cffe2f32d2

View File

@@ -17,7 +17,12 @@
domain="[('reconciled','=', False), ('account_id.reconcile', '=', True)] "
/>
<!-- we removed the filter on amount_to_pay, because we want to be able to select refunds -->
<field name="date" />
<field name="state" invisible="1" />
<field
name="date"
attrs="{'readonly': [('state', '!=', 'confirmed')]}"
force_save="1"
/>
<field name="ml_maturity_date" readonly="1" />
<field name="amount_currency" />
<field name="currency_id" />