From da95620aa9e632541f231ed271cc93fbd70b15d8 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Wed, 6 Jan 2021 21:22:11 +0100 Subject: [PATCH] multi-company fix --- account_ebics/wizards/ebics_xfer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index dd8173a..1a38549 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -1,4 +1,4 @@ -# Copyright 2009-2020 Noviat. +# Copyright 2009-2021 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). """ @@ -308,7 +308,9 @@ class EbicsXfer(models.TransientModel): 'user_id': self._uid, 'ebics_userid_id': self.ebics_userid_id.id, 'note': ef_note, - 'company_ids': [self.env.user.company_id.id], + "company_ids": [ + self.env.context.get("force_company", self.env.company.id) + ], } self._update_ef_vals(ef_vals) ebics_file = self.env['ebics.file'].create(ef_vals)