mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
account_payment_order: communication required in form view
This commit is contained in:
committed by
Pedro M. Baeza
parent
ad9f376b29
commit
7e7ebe1c75
@@ -67,6 +67,10 @@ class AccountPaymentLine(models.Model):
|
||||
check_company=True,
|
||||
)
|
||||
date = fields.Date(string="Payment Date")
|
||||
# communication field is required=False because we don't want to block
|
||||
# the creation of lines from move/invoices when communication is empty
|
||||
# This field is required in the form view and there is an error message
|
||||
# when going from draft to confirm if the field is empty
|
||||
communication = fields.Char(
|
||||
required=False, help="Label of the payment that will be seen by the destinee"
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
/>
|
||||
<field name="bank_account_required" invisible="1" />
|
||||
<field name="communication_type" />
|
||||
<field name="communication" />
|
||||
<field name="communication" required="1" />
|
||||
</group>
|
||||
<group name="right">
|
||||
<field
|
||||
|
||||
Reference in New Issue
Block a user