From 320be4a4c7be7e7644a88d6c41e24bae9936cf28 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 9e14f04e4..34dd98418 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -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, " diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index 82ad22725..4b54700a5 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -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()