19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:28 +01:00
parent ff721d030e
commit 7721452493
1826 changed files with 124775 additions and 274114 deletions

View file

@ -1,9 +0,0 @@
def migrate(cr, version):
# Set noupdate property of "account.tax.template" records to False
cr.execute(
"""UPDATE ir_model_data
SET noupdate=false
WHERE module='l10n_dk'
AND model='account.tax.template'
"""
)

View file

@ -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', '=', 'dk')], order="parent_path"):
env['account.chart.template'].try_loading('dk', company, force_create=False)

View file

@ -0,0 +1,9 @@
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', '=', 'dk')], order="parent_path"):
tax = env.ref(f'account.{company.id}_tax_keumf', raise_if_not_found=False)
if tax:
tax.type_tax_use = 'purchase'