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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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.
You're defintely on teh right track with identifying hte 'is_reconciled' field. In Odoo, for payment to clear an invoice properly, this field needs to be true. What's happening is whilst you’ve created a payment, it ain't actually being properly linked to the invoice in a way Odoo recognizes as reconciled.
It's kind of easy to miss that step where payment gets marked as being tied to the invoice. Make sure to check teh 'account.move' records linked to both payment n invoice to confirm they represent the right credit and debit movements. You gotta reconcile the payment and invoice journal entry. In Odoo, you can usually do this behind the scenes through accounting entries.
Pop into the accounting app, under 'Invoicing', take a look in those customers or payments menus. Spot yer outstanding credits. It's crucial these entries are properly reconciled. Try automating this process with the APi calls you're making and check if movements balance in Odoo's system.
Yeah, Odoo's logic here can be odd. If you're new to this, consider getting familiar with Odoo's journal entries handling. look up some documentation or check odoo's forums for more examples.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 6 23
|
2961 | ||
|
2
thg 7 19
|
4569 | ||
|
0
thg 5 19
|
4654 | ||
|
1
thg 6 17
|
4074 | ||
|
0
thg 3 16
|
3883 |
I´m using odoo online and python to do the payments