[IMP] account_banking_pain_base: switch from @api.model to @api.multi

The calls are the following:
`generate_payment_file()` -> `generate_party_block(...)` -> `generate_party_agent(...)`

The first was decorated with `api.multi` (with ensure_one) and the others with `api.model`.

This change allows to get the reference of the current payment order in
`generate_party_block(...)` and `generate_party_agent(...)` methods (for
instance to modulate the generation of the file depending on the related
payment method configuration).
This commit is contained in:
sebalix
2020-08-03 17:48:01 +02:00
parent fda1d9cfc6
commit 25d179859a

View File

@@ -340,7 +340,6 @@ class AccountPaymentOrder(models.Model):
% self.company_id.name)
return True
@api.model
def generate_party_agent(
self, parent_node, party_type, order, partner_bank, gen_args,
bank_line=None):
@@ -437,7 +436,6 @@ class AccountPaymentOrder(models.Model):
return True
@api.model
def generate_party_block(
self, parent_node, party_type, order, partner_bank, gen_args,
bank_line=None):