OCA / bank-payment

Odoo Electronic Payment
https://odoo-community.org/psc-teams/banking-10
GNU Affero General Public License v3.0
195 stars 517 forks source link

Payment order for inter-bank transfer #1313

Open alexis-via opened 1 month ago

alexis-via commented 1 month ago

Scenario: company with 2 bank accounts. I would like to generate a SEPA XML payment file to transfer money from bank account n°1 to bank account n°2.

I tested this scenario on odoo 16.0: I create a payment order with 1 payment line: in the payment line, I select the partner linked to my company and I enter the amount and a communication label. I confirm the payment order. The SEPA XML payment file is OK. It creates a payment order with is_internal_transfer=False ; the account move generated is between the supplier account and the outstanding payment account (I would expect an account move between the outstanding payment account and the Inter-Banks Transfer Account (company_id.transfer_account_id).

It seems to me that this scenario is not supported for the moment. Am I missing something ? @pedrobaeza as you are the author of the support of account.payment, can you confirm that this scenario is not supported ?

If it is confirmed that this scenario is not supported, I'm ready to implement it.

pedrobaeza commented 1 month ago

It's not supported indeed. I have never heard before of using payment order for making internal transfers, but it can be. You have to adjust the payment creation to put the flag if the line partner is the company's partner.