Wednesday, September 2, 2026
1 change · master
Code cleanup and technical improvements
Manufacturing bill-of-material checks were streamlined so large purchase orders process faster when kit products may be involved. In the highlighted case, confirmation time with manufacturing installed drops from about 8.1 seconds to 6.9 seconds, improving responsiveness across related workflows.
Original PR description
Confirming a purchase order of 1000 lines - with only stock & purchase : time is 6.3secs - by adding mrp : time grows to 8.1secs Part of the difference comes from the time it takes to explode the (potential) kits. The refactor of _bom_find consists of: - signature change : company_id -> company_ids to allow searching within multiple companies in one go - return value change : the returned dict's key is now a tuple ( product, company_id or False) Calling _bom_find with no company given : retrieve result with ( product, False) Calling _bom_find with one or more company_id's : retrieve result with ( product, company) -> for _bom_find on record sets having the fields product_id & company_id With this, use case time falls to 6.9secs This will obviously have performance impact on many use cases.