Fill payment amount cache only when cache column is added by register

Closes #14034
This commit is contained in:
Cédric Krier
2025-06-02 10:54:15 +02:00
parent 593c8f0aea
commit ed1e9d8916
+1 -1
View File
@@ -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)