mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-12-25 10:51:44 +00:00
[FIX] EBICS upload stack trace
module: account_ebics/wizards/ebics_xfer.py Fix stack trace when uploading payment file directly via EBICS Upload wizard (hence not via 'EBICS Upload' button on payment order).
This commit is contained in:
parent
960d5ef2fe
commit
f29b40b626
@ -449,10 +449,9 @@ class EbicsXfer(models.TransientModel):
|
||||
return ebics_file
|
||||
|
||||
def _payment_order_postprocess(self, ebics_file):
|
||||
order = self.env[self.env.context["active_model"]].browse(
|
||||
self.env.context.get("active_id")
|
||||
)
|
||||
if order._name == "account.payment.order":
|
||||
active_model = self.env.context.get("active_model")
|
||||
if active_model == "account.payment.order":
|
||||
order = self.env[active_model].browse(self.env.context["active_id"])
|
||||
order.generated2uploaded()
|
||||
|
||||
def _setup_client(self):
|
||||
|
Loading…
Reference in New Issue
Block a user