mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_chart_update: Limit fiscal position search with same name (#651)
This commit is contained in:
committed by
Luis J. Salvatierra
parent
9b51612116
commit
45e6abae56
@@ -284,7 +284,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
"""Find a real fiscal position from a template."""
|
||||
return self.env['account.fiscal.position'].search(
|
||||
[('name', 'in', templates.mapped("name")),
|
||||
('company_id', '=', self.company_id.id)])
|
||||
('company_id', '=', self.company_id.id)], limit=1)
|
||||
|
||||
@api.multi
|
||||
@tools.ormcache("templates", "current_fp_accounts")
|
||||
|
||||
Reference in New Issue
Block a user