コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
944 ビュー

I'd like to create a module that will send payments of the vendor bills (from the ODOO backend, not from the website frontend for customers).

Where should I start? I was looking at payment_*** modules, but those seems to work for inbound transactions, I'd like the module to do outbound transactions.

I can override write method of the account.payment but I feel that it's not the right ODOO way.

Thanks in advance.

アバター
破棄
著作者 最善の回答

Thanks, that was my way of thinking but I want to follow the workflow as it is now. Your proposal is to do it using some "Send" button? Or cron?

Are there any modules that are working like that so I can have a look how to do it?

I want the payment to be sent when invoice changes to "Paid" or when Account payment is set to "Paid"

What is the proper workflow?

アバター
破棄
最善の回答

You should build a custom module that:

  1. Selects posted vendor bills that are due.
  2. Creates an account.payment record in "outbound" direction.
  3. Posts the payment (if conditions are met).
  4. Optionally: logs, error handling, or reconciliation.
  5. Later, you could:
    1. Hook into SEPA (via account_sepa) or use payment_acquirer subclass for custom outbound flow.
    2. Or directly post transactions to your banking API (e.g., with requests module



アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 25
2294
0
11月 24
1578
2
3月 23
2857
1
3月 17
11698
2
12月 23
19189