From 68f706bcd04a2e8cee9de2986f4e03ca2a786b32 Mon Sep 17 00:00:00 2001 From: "Nicolas Viseur (vin)" Date: Mon, 15 Apr 2024 12:32:14 +0800 Subject: [PATCH] [FIX] account: credit limit inverse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While in practice you would never get this inverse called with more than one record at a time, it is still wrong to get the company of self in the loop. Fixing it to keep good conscience :) closes odoo/odoo#161979 X-original-commit: 56fe4f71f0cca2ca11624bd267e1dec4de2ac929 Signed-off-by: de Wouters de Bouchout Jean-BenoƮt (jbw) Signed-off-by: Nicolas Viseur (vin) --- addons/account/models/res_config_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index 139a8b995ec..c7582b3d59e 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -245,7 +245,7 @@ class ResConfigSettings(models.TransientModel): 'credit_limit', 'res.partner', setting.account_default_credit_limit, - self.company_id.id + setting.company_id.id ) @api.depends('company_id')