mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 20:02:00 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -0,0 +1,8 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env['res.company'].search([('chart_template', '=', 'ee')], order="parent_path"):
|
||||
env['account.chart.template'].try_loading('ee', company, force_create=False)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.addons.account.models.chart_template import update_taxes_from_templates
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
update_taxes_from_templates(cr, 'l10n_ee.l10nee_chart_template')
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env['res.company'].search([('chart_template', '=', 'ee')], order="parent_path"):
|
||||
env['account.chart.template'].try_loading('ee', company, force_create=False)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
from odoo.addons.account.models.chart_template import update_taxes_from_templates
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
update_taxes_from_templates(cr, 'l10n_ee.l10nee_chart_template')
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env['res.company'].search([('chart_template', '=', 'ee')], order="parent_path"):
|
||||
env['account.chart.template'].try_loading('ee', company, force_create=False)
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
from odoo.addons.account.models.chart_template import update_taxes_from_templates
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
update_taxes_from_templates(cr, 'l10n_ee.l10nee_chart_template')
|
||||
Loading…
Add table
Add a link
Reference in a new issue