mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-27 14:37:25 +00:00
Merge branch '16-fix-force-company' into '16.0'
[FIX]payment orders - fix context See merge request Noviat/Noviat_Generic/accounting-ebics!58
This commit is contained in:
commit
ccad5d6b2d
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Upload Batch Payment via EBICS",
|
"name": "Upload Batch Payment via EBICS",
|
||||||
"version": "16.0.1.0.1",
|
"version": "16.0.1.0.2",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 2009-2023 Noviat.
|
# Copyright 2009-2024 Noviat.
|
||||||
# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl).
|
# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl).
|
||||||
|
|
||||||
from odoo import _, models
|
from odoo import _, models
|
||||||
@ -30,11 +30,15 @@ class AccountBatchPayment(models.Model):
|
|||||||
"default_upload_data": self.export_file,
|
"default_upload_data": self.export_file,
|
||||||
"default_upload_fname": self.export_filename,
|
"default_upload_fname": self.export_filename,
|
||||||
"origin": origin,
|
"origin": origin,
|
||||||
"force_comany": self.journal_id.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.journal_id.company_id)
|
||||||
|
.create({})
|
||||||
|
)
|
||||||
ebics_xfer._onchange_ebics_config_id()
|
ebics_xfer._onchange_ebics_config_id()
|
||||||
ebics_xfer._onchange_upload_data()
|
ebics_xfer._onchange_upload_data()
|
||||||
view = self.env.ref("account_ebics.ebics_xfer_view_form_upload")
|
view = self.env.ref("account_ebics.ebics_xfer_view_form_upload")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Upload Payment Order via EBICS",
|
"name": "Upload Payment Order via EBICS",
|
||||||
"version": "16.0.1.1.1",
|
"version": "16.0.1.1.2",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
@ -63,10 +63,14 @@ class AccountPaymentOrder(models.Model):
|
|||||||
"default_upload_data": attach.datas,
|
"default_upload_data": attach.datas,
|
||||||
"default_upload_fname": attach.name,
|
"default_upload_fname": attach.name,
|
||||||
"origin": origin,
|
"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_ebics_config_id()
|
||||||
ebics_xfer._onchange_upload_data()
|
ebics_xfer._onchange_upload_data()
|
||||||
view = self.env.ref("account_ebics.ebics_xfer_view_form_upload")
|
view = self.env.ref("account_ebics.ebics_xfer_view_form_upload")
|
||||||
|
Loading…
Reference in New Issue
Block a user