[FIX] account_chart_update: Limit fiscal position search with same name (#651)
This commit is contained in:
parent
9b51612116
commit
45e6abae56
@ -58,6 +58,7 @@ Contributors
|
|||||||
* Jairo Llopis <jairo.llopis@tecnativa.com>
|
* Jairo Llopis <jairo.llopis@tecnativa.com>
|
||||||
* Jacques-Etienne Baudoux <je@bcim.be>
|
* Jacques-Etienne Baudoux <je@bcim.be>
|
||||||
* Sylvain Van Hoof <sylvain@okia.be>
|
* Sylvain Van Hoof <sylvain@okia.be>
|
||||||
|
* Nacho Muñoz <nacmuro@gmail.com>
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
'name': "Detect changes and update the Account Chart from a template",
|
'name': "Detect changes and update the Account Chart from a template",
|
||||||
"summary": "Wizard to update a company's account chart from a template",
|
"summary": "Wizard to update a company's account chart from a template",
|
||||||
'version': "10.0.1.0.1",
|
'version': "10.0.1.0.2",
|
||||||
'author': "Tecnativa, "
|
'author': "Tecnativa, "
|
||||||
"BCIM, "
|
"BCIM, "
|
||||||
"Okia, "
|
"Okia, "
|
||||||
@ -21,6 +21,7 @@
|
|||||||
'Jairo Llopis',
|
'Jairo Llopis',
|
||||||
'Jacques-Etienne Baudoux',
|
'Jacques-Etienne Baudoux',
|
||||||
'Sylvain Van Hoof'
|
'Sylvain Van Hoof'
|
||||||
|
'Nacho Muñoz',
|
||||||
],
|
],
|
||||||
'license': "AGPL-3",
|
'license': "AGPL-3",
|
||||||
"data": [
|
"data": [
|
||||||
|
@ -284,7 +284,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
|||||||
"""Find a real fiscal position from a template."""
|
"""Find a real fiscal position from a template."""
|
||||||
return self.env['account.fiscal.position'].search(
|
return self.env['account.fiscal.position'].search(
|
||||||
[('name', 'in', templates.mapped("name")),
|
[('name', 'in', templates.mapped("name")),
|
||||||
('company_id', '=', self.company_id.id)])
|
('company_id', '=', self.company_id.id)], limit=1)
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@tools.ormcache("templates", "current_fp_accounts")
|
@tools.ormcache("templates", "current_fp_accounts")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user