Merge PR #897 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-02-16 08:54:42 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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"
)

View File

@@ -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