From 7f772bcf844523698ba0ea0a2882c1ab8d71b41d 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_payment_order/models/account_payment_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_ebics_payment_order/models/account_payment_order.py b/account_ebics_payment_order/models/account_payment_order.py index 0da4800..64e9442 100644 --- a/account_ebics_payment_order/models/account_payment_order.py +++ b/account_ebics_payment_order/models/account_payment_order.py @@ -1,4 +1,4 @@ -# Copyright 2009-2020 Noviat. +# Copyright 2009-2021 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). from odoo import _, models @@ -41,6 +41,7 @@ class AccountPaymentOrder(models.Model): 'default_upload_data': attach.datas, 'default_upload_fname': attach.name, 'origin': origin, + 'force_comany': self.company_id.id, }) ebics_xfer = self.env['ebics.xfer'].with_context(ctx).create({}) ebics_xfer._onchange_ebics_config_id()