Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2203 Widoki

Hello everyone,

In odoo there's only two types of payement : Manual & Checks

I want to add a new method : Bill Of Exchange

And as you may know, Bills requires the bank account of the provider / partner

If you try to create a new payment, the partner's bank account field is visible only if payment method's code is "Manual" :

@api.model
def _get_method_codes_using_bank_account(self):
return ['manual']

I can add a new "account.payment.method.line" using xml data and the new method code to the returned list :

@api.model
def _get_method_codes_using_bank_account(self):
return ['manual', 'bills']


But I don't want to tweak and change the system behavior regarding the payment process


Any suggestion ? What do you think ?



Awatar
Odrzuć
Najlepsza odpowiedź

I want to add ABA payment method. Only manual option is there. Where do we configure other methods?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
1767
4
maj 25
2627
2
maj 25
6041
1
mar 25
1739
4
mar 25
4621