From beaae972010013065abfcbd672d34b67af1f4222 Mon Sep 17 00:00:00 2001 From: "Guillaume (guva)" Date: Mon, 10 Jan 2022 10:51:54 +0000 Subject: [PATCH] [FIX] account: reversal_date accrued_orders wizard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the field reversal_date was not stored, which lead to inconsistent behaviour when creating entries, as the reversal date was always recompute with the default value. opw-2722435 closes odoo/odoo#82445 Signed-off-by: William André (wan) --- addons/account/wizard/accrued_orders.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/wizard/accrued_orders.py b/addons/account/wizard/accrued_orders.py index 386bcb74d4c..53051cdef42 100644 --- a/addons/account/wizard/accrued_orders.py +++ b/addons/account/wizard/accrued_orders.py @@ -38,6 +38,8 @@ class AccruedExpenseRevenue(models.TransientModel): compute="_compute_reversal_date", required=True, readonly=False, + store=True, + precompute=True, ) amount = fields.Monetary(string='Amount', help="Specify an arbitrary value that will be accrued on a \ default account for the entire order, regardless of the products on the different lines.")