From b576d191bb24bfae96018c1c890fc6d563bb2b0e Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 19 Dec 2022 11:27:31 +0100 Subject: [PATCH] fix migration script --- account_ebics/migrations/15.0.1.1/pre-migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_ebics/migrations/15.0.1.1/pre-migration.py b/account_ebics/migrations/15.0.1.1/pre-migration.py index 4082ce7..28ac779 100644 --- a/account_ebics/migrations/15.0.1.1/pre-migration.py +++ b/account_ebics/migrations/15.0.1.1/pre-migration.py @@ -11,7 +11,7 @@ def migrate(cr, version): for cfg_id in cfg_ids: cr.execute( """ - SELECT aj.company_id + SELECT DISTINCT aj.company_id FROM account_journal_ebics_config_rel rel JOIN account_journal aj ON rel.account_journal_id = aj.id WHERE ebics_config_id = %s @@ -21,7 +21,7 @@ def migrate(cr, version): new_cpy_ids = [x[0] for x in cr.fetchall()] cr.execute( """ - SELECT res_company_id + SELECT DISTINCT res_company_id FROM ebics_config_res_company_rel WHERE ebics_config_id = %s """,