19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:16 +01:00
parent 89c6e82fe7
commit 1b82c20a58
572 changed files with 43570 additions and 53303 deletions

View file

@ -0,0 +1,11 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import SUPERUSER_ID, api
def migrate(cr, version):
env = api.Environment(cr, SUPERUSER_ID, {})
for company in env['res.company'].search([('chart_template', '=', 'ca_2023')], order="parent_path"):
fiscal_position = env['account.chart.template'].with_company(company).ref('fiscal_position_template_ns', raise_if_not_found=False)
if fiscal_position:
fiscal_position.tax_ids = False
env['account.chart.template'].try_loading('ca_2023', company)

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_ca'
AND model='account.tax.template'
"""
)