From 146c83b50f0037444f4abd87efa536339cc4e749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Thu, 7 Dec 2023 22:34:43 +0100 Subject: [PATCH] account: add missing depends Before this commit,_compute_payment_reference had no depends, which caused it to not compute the structured payment reference in some situations. --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 224dcbf0c7c25..277f316873a0d 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -572,6 +572,7 @@ def _auto_init(self): # COMPUTE METHODS # ------------------------------------------------------------------------- + @api.depends('state') def _compute_payment_reference(self): for move in self.filtered(lambda m: ( m.state == 'posted'