[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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user