From 3c622d95ee9745c1cf6d830e084ef8330c7af629 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 15 Apr 2021 20:35:39 +0200 Subject: [PATCH] [FIX] account_payment_order: Computed non-stored fields needs always a value We should assign a value for all records of the set. --- account_payment_order/__manifest__.py | 2 +- account_payment_order/models/account_payment_line.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/account_payment_order/__manifest__.py b/account_payment_order/__manifest__.py index 7a4b96b31..6a1972b89 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Account Payment Order", - "version": "13.0.1.4.3", + "version": "13.0.1.4.4", "license": "AGPL-3", "author": "ACSONE SA/NV, " "Therp BV, " diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index ccad788ab..a18686fc4 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -99,6 +99,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()