From ed1e9d891635baa8921a8532d9bc0226e9d61738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 2 Jun 2025 10:54:15 +0200 Subject: [PATCH] Fill payment amount cache only when cache column is added by register Closes #14034 --- modules/account_payment/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment/account.py b/modules/account_payment/account.py index 316b0dff89..138024aac1 100644 --- a/modules/account_payment/account.py +++ b/modules/account_payment/account.py @@ -109,7 +109,7 @@ class MoveLine(metaclass=PoolMeta): @classmethod def __register__(cls, module): table_h = cls.__table_handler__(module) - set_payment_amount = not table_h.column_exist('payment_amount') + set_payment_amount = not table_h.column_exist('payment_amount_cache') super().__register__(module)