Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to find the many2many relation between an invoice and payments attached to it. It seems to be done via a payment_ids field in the view but do not know where to look for it.
The payment_ids is a function fields who refers to some move lines. The _compute_lines function searches for move_lines (partially) reconciled with the move_lines generated by the invoice. For example :
Invoice inv_1 generates 1 move (mov_1) when the invoice is validated.
mov_1 contains 2 move_line (ml_1, ml_2).
Payment mov_2 is created and contains 2 lines (ml_3, ml_4).
You reconcile ml_4 with ml_2. The _compute_lines function finds that ml_4 is reconciled with ml_2 -> Payment mov_2 is attached to inv_1.
Hope it helps... !
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/21/14, 6:20 AM|
|Seen: 831 times|
|Last updated: 3/16/15, 8:10 AM|