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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
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
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİ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 |
I´m using odoo online and python to do the payments