mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 12:42:04 +00:00
Merge pull request #56 from Noviat/15-fix-migration-script
fix migration script
This commit is contained in:
commit
44e7b4fa73
@ -11,7 +11,7 @@ def migrate(cr, version):
|
|||||||
for cfg_id in cfg_ids:
|
for cfg_id in cfg_ids:
|
||||||
cr.execute(
|
cr.execute(
|
||||||
"""
|
"""
|
||||||
SELECT aj.company_id
|
SELECT DISTINCT aj.company_id
|
||||||
FROM account_journal_ebics_config_rel rel
|
FROM account_journal_ebics_config_rel rel
|
||||||
JOIN account_journal aj ON rel.account_journal_id = aj.id
|
JOIN account_journal aj ON rel.account_journal_id = aj.id
|
||||||
WHERE ebics_config_id = %s
|
WHERE ebics_config_id = %s
|
||||||
@ -21,7 +21,7 @@ def migrate(cr, version):
|
|||||||
new_cpy_ids = [x[0] for x in cr.fetchall()]
|
new_cpy_ids = [x[0] for x in cr.fetchall()]
|
||||||
cr.execute(
|
cr.execute(
|
||||||
"""
|
"""
|
||||||
SELECT res_company_id
|
SELECT DISTINCT res_company_id
|
||||||
FROM ebics_config_res_company_rel
|
FROM ebics_config_res_company_rel
|
||||||
WHERE ebics_config_id = %s
|
WHERE ebics_config_id = %s
|
||||||
""",
|
""",
|
||||||
|
Loading…
Reference in New Issue
Block a user