mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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).