Odoo Help


How do I loop through an Odoo Table / Class

on 8/16/15, 1:03 PM 571 views

Because in the stock_move table, the procurement_id field is left blank if its part of an existing procurement.. This obstructs me from sending information from Sales Order Line to it's respective BoM product(s) in Manufacturing Order.


Product A = B+C+D

In Sales Order Line select Product A, (with user input product A information)

Manufacturing Order for Product A has a procurement_id so product A information will appear

Manufacturing Order for Product B,C & D has no procurement_id  so no Product A information will appear

SO I plan to loop through stock_move table. & for each production_id value that is empty, it to be equal to the production_id in the previous row

Thanks a lot

Your Answer

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/16/15, 1:03 PM
Seen: 571 times
Last updated: 8/16/15, 1:03 PM