[MIG] account_chart_update: Migration to 10.0
This commit is contained in:
parent
fa34bca71b
commit
7093779041
@ -57,6 +57,7 @@ Contributors
|
|||||||
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||||
* 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>
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
@ -2,14 +2,16 @@
|
|||||||
# Copyright 2015-2017 Pedro Manuel Baeza <pedro.baeza@tecnativa.com>
|
# Copyright 2015-2017 Pedro Manuel Baeza <pedro.baeza@tecnativa.com>
|
||||||
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
|
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
|
||||||
# Copyright 2016 Jacques-Etienne Baudoux <je@bcim.be>
|
# Copyright 2016 Jacques-Etienne Baudoux <je@bcim.be>
|
||||||
|
# Copyright 2016 Sylvain Van Hoof <sylvain@okia.be>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'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': "9.0.1.0.0",
|
'version': "10.0.1.0.0",
|
||||||
'author': "Tecnativa, "
|
'author': "Tecnativa, "
|
||||||
"BCIM,"
|
"BCIM, "
|
||||||
|
"Okia, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
'website': "http://odoo-community.org",
|
'website': "http://odoo-community.org",
|
||||||
'depends': ["account"],
|
'depends': ["account"],
|
||||||
@ -18,6 +20,7 @@
|
|||||||
'Pedro M. Baeza',
|
'Pedro M. Baeza',
|
||||||
'Jairo Llopis',
|
'Jairo Llopis',
|
||||||
'Jacques-Etienne Baudoux',
|
'Jacques-Etienne Baudoux',
|
||||||
|
'Sylvain Van Hoof'
|
||||||
],
|
],
|
||||||
'license': "AGPL-3",
|
'license': "AGPL-3",
|
||||||
"data": [
|
"data": [
|
@ -400,10 +400,9 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
|||||||
def diff_fields(self, template, real):
|
def diff_fields(self, template, real):
|
||||||
"""Get fields that are different in template and real records.
|
"""Get fields that are different in template and real records.
|
||||||
|
|
||||||
:param openerp.models.Model template:
|
:param odoo.models.Model template:
|
||||||
Template record.
|
Template record.
|
||||||
|
:param odoo.models.Model real:
|
||||||
:param openerp.models.Model real:
|
|
||||||
Real record.
|
Real record.
|
||||||
|
|
||||||
:return dict:
|
:return dict:
|
||||||
@ -561,6 +560,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
|||||||
"""Load fiscal position templates to create/update."""
|
"""Load fiscal position templates to create/update."""
|
||||||
wiz_fp = self.env['wizard.update.charts.accounts.fiscal.position']
|
wiz_fp = self.env['wizard.update.charts.accounts.fiscal.position']
|
||||||
self.fiscal_position_ids.unlink()
|
self.fiscal_position_ids.unlink()
|
||||||
|
|
||||||
# Search for new / updated fiscal positions
|
# Search for new / updated fiscal positions
|
||||||
templates = self.env['account.fiscal.position.template'].search(
|
templates = self.env['account.fiscal.position.template'].search(
|
||||||
[('chart_template_id', 'in', self.chart_template_ids.ids)])
|
[('chart_template_id', 'in', self.chart_template_ids.ids)])
|
||||||
|
Loading…
Reference in New Issue
Block a user