İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2425 Görünümler

I have to create separate invoices and create related payments with the Odoo API. I have managed to link them but all the payments appear as outstranding credits for the same client and the invoice does not appear as paid even though the payment is marked as paid.I think it has to do with the is_reconciled field which is set to false. I´m using odoo online and python to do the payments. I don't know what to do, if someone helps me I would really appreciate it.

Avatar
Vazgeç
Üretici

I´m using odoo online and python to do the payments

En İyi Yanıt

Hi,


When creating invoices and payments via the Odoo API in Odoo Online, you might encounter issues where payments appear as outstanding credits and invoices remain unpaid, even when the payment is marked as paid. This typically stems from a failure to properly reconcile the invoice and payment records. To resolve this, ensure that your Python script explicitly triggers the reconciliation process after creating the invoice and payment, potentially using the register_payment method.


Verify that your account configurations are correct, including the appropriate account types and linkages within Odoo's accounting settings. Also, review the payment method configuration to ensure it's set up to automatically match payments to invoices. If using Odoo Online, be mindful of its limitations on custom modules and consider alternative approaches within the Odoo API or Odoo Studio. For complex customization needs, Odoo.sh might be a better option. Always consult the official Odoo documentation, test thoroughly, and reach out to Odoo support if needed.


Hope it helps

Avatar
Vazgeç
En İyi Yanıt

The best way to understand the API is to look at the log files while using Odoo.

Match the Payment with the Invoice in Odoo, then look at the log file configured to show you which API calls are being made.

See https://www.odoo.com/forum/help-1/how-can-i-see-which-api-calls-are-made-to-learn-what-odoo-is-doing-at-specific-times-183911

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 23
2976
2
Tem 19
4623
0
May 19
4712
1
Haz 17
4105
0
Mar 16
3891