[FIX] account: credit limit inverse

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) <jbw@odoo.com>
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
This commit is contained in:
Nicolas Viseur (vin)
2024-04-16 00:41:54 +00:00
parent 541251c79e
commit 68f706bcd0
+1 -1
View File
@@ -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')