[FIX] account_payment_order: Computed non-stored fields needs always a value

We should assign a value for all records of the set.
This commit is contained in:
Pedro M. Baeza
2021-04-15 20:35:39 +02:00
parent 6edd62d171
commit 320be4a4c7
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
{
"name": "Account Payment Order",
"version": "14.0.1.0.3",
"version": "14.0.1.0.4",
"license": "AGPL-3",
"author": "ACSONE SA/NV, "
"Therp BV, "

View File

@@ -107,6 +107,8 @@ class AccountPaymentLine(models.Model):
line.company_id,
line.date or fields.Date.today(),
)
else:
line.amount_company_currency = 0
def payment_line_hashcode(self):
self.ensure_one()