Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Manufacturing
Entity: stock.warehouse.orderpoint
Compute Method: _compute_show_bom
| Inputs | Method | Outputs |
|---|---|---|
|
manufacture_route = []
for res in self.env['stock.rule'].search_read([('action', '=', 'manufacture')], ['route_id']):
manufacture_route.append(res['route_id'][0])
for orderpoint in self:
- orderpoint.show_bom = orderpoint.route_id.id in manufacture_route
+ orderpoint.show_bom = orderpoint.effective_route_id.id in manufacture_route
|
|
