mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-27 14:37:25 +00:00
account_ebics - add _payment_order_postprocess for account_payment_order
This commit is contained in:
parent
8d7f5187bb
commit
ce5c603abe
@ -431,8 +431,16 @@ class EbicsXfer(models.TransientModel):
|
|||||||
OrderID = self.ebics_config_id._get_order_number()
|
OrderID = self.ebics_config_id._get_order_number()
|
||||||
self.ebics_config_id.sudo()._update_order_number(OrderID)
|
self.ebics_config_id.sudo()._update_order_number(OrderID)
|
||||||
|
|
||||||
|
ebics_file and self._payment_order_postprocess(ebics_file)
|
||||||
return ebics_file
|
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":
|
||||||
|
order.generated2uploaded()
|
||||||
|
|
||||||
def _setup_client(self):
|
def _setup_client(self):
|
||||||
self.ebics_config_id._check_ebics_keys()
|
self.ebics_config_id._check_ebics_keys()
|
||||||
passphrase = self._get_passphrase()
|
passphrase = self._get_passphrase()
|
||||||
|
Loading…
Reference in New Issue
Block a user