[FIX]payment orders - fix context

This commit is contained in:
Luc De Meyer
2024-06-12 17:06:06 +02:00
parent 50de964489
commit fd1f00abf3
4 changed files with 15 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Upload Payment Order via EBICS",
"version": "16.0.1.1.1",
"version": "16.0.1.1.2",
"license": "LGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com/",

View File

@@ -63,10 +63,14 @@ class AccountPaymentOrder(models.Model):
"default_upload_data": attach.datas,
"default_upload_fname": attach.name,
"origin": origin,
"force_company": self.company_id.id,
}
)
ebics_xfer = self.env["ebics.xfer"].with_context(**ctx).create({})
ebics_xfer = (
self.env["ebics.xfer"]
.with_context(**ctx)
.with_company(self.company_id)
.create({})
)
ebics_xfer._onchange_ebics_config_id()
ebics_xfer._onchange_upload_data()
view = self.env.ref("account_ebics.ebics_xfer_view_form_upload")