Skip to Content
Menu
This question has been flagged
2049 Views

After a search_read request to mrp.bom I'm able to find the different bom line ids that are located in the main bom. For example if the bom has id=3, after the request i see in the filed "bom_line_ids" = 5, 6 (there are two component that they make up the the main product). However I'm not able to obtain each mrp.bom.line object (product_id, quantity...) from the correspond id. I think to make a search_read request in the model mrp.bom.line and put the an array/list of parameters with the line's id bit it doesn't works. This is my code to retrieve for example the mrp.bom.line with id=5

asList((Object[])models.execute("execute_kw", asList(

             db, uid, password, "mrp.bom.line", "search_read", asList(asList(

                        asList("id", "=", 5)

            )))

))


Avatar
Discard