mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 15:22:03 +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,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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue