mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 13:22:05 +02:00
Initial commit: L10N_Europe packages
This commit is contained in:
commit
9803722600
2377 changed files with 380711 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
def migrate(cr, version):
|
||||
|
||||
cr.execute("""
|
||||
INSERT INTO account_account_account_tag
|
||||
SELECT DISTINCT account.id, template_tag.account_account_tag_id
|
||||
FROM account_account_template AS template
|
||||
JOIN account_account AS account
|
||||
ON account.code LIKE CONCAT(template.code, '%')
|
||||
JOIN account_account_template_account_tag AS template_tag
|
||||
ON template.id = template_tag.account_account_template_id
|
||||
JOIN res_company ON res_company.id = account.company_id
|
||||
JOIN res_country ON res_country.id = res_company.account_fiscal_country_id
|
||||
AND res_country.code = 'IT'
|
||||
ON CONFLICT DO NOTHING
|
||||
""")
|
||||
Loading…
Add table
Add a link
Reference in a new issue