From 599c8ba9ad86920df2404b8eade70deb2a5a5cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 27 Nov 2023 12:43:31 +0100 Subject: [PATCH] Return values instead of changed result when testing payment term Since 0db956eb2505 the returned value of on_change_with is set on the field. Closes #12775 (grafted from aea01e3d595a526f7a093b0f7cef59ad215cab2a) --HG-- branch : 7.0 --- modules/account_invoice/payment_term.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/account_invoice/payment_term.py b/modules/account_invoice/payment_term.py index feda4f05d6..359ff17a06 100644 --- a/modules/account_invoice/payment_term.py +++ b/modules/account_invoice/payment_term.py @@ -347,8 +347,7 @@ class TestPaymentTermView(ModelView): date=date, amount=amount, currency=self.currency)) - self.result = result - return self._changed_values.get('result', []) + return result class TestPaymentTermViewResult(ModelView):