diff --git a/addons/hr_expense/hr_expense_installer_view.xml b/addons/hr_expense/hr_expense_installer_view.xml index b897673f4ec..e5187650e1c 100644 --- a/addons/hr_expense/hr_expense_installer_view.xml +++ b/addons/hr_expense/hr_expense_installer_view.xml @@ -27,7 +27,7 @@ product.product form tree,form - + [('hr_expense_ok','=',True)] Define one product for each expense type allowed for an employee (travel by car, hostel, restaurant, etc). If you reimburse the employees at a fixed rate, set a cost and a unit of measure on the product. If you reimburse based on real costs, set the cost at 0.00. The user will set the real price when recording his expense sheet. diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 15d034e0010..363981209d6 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -187,7 +187,7 @@ class mrp_bom(osv.osv): result[bom.id] = [] if bom.bom_lines: continue - ok = ((name=='child_complete_ids') and (bom.product_id.supply_method=='produce')) + ok = ((name=='child_complete_ids')) if (bom.type=='phantom' or ok): sids = bom_obj.search(cr, uid, [('bom_id','=',False),('product_id','=',bom.product_id.id)]) if sids: @@ -209,11 +209,10 @@ class mrp_bom(osv.osv): continue if line.bom_lines or line.type == 'phantom': continue - if line.product_id.supply_method == 'produce': - if line.product_id.procure_method == 'make_to_stock': - res[line.id] = 'stock' - else: - res[line.id] = 'order' + if line.product_id.procure_method == 'make_to_stock': + res[line.id] = 'stock' + else: + res[line.id] = 'order' return res _columns = { diff --git a/addons/mrp/mrp_data.xml b/addons/mrp/mrp_data.xml index a6b65b7c475..42290edde38 100644 --- a/addons/mrp/mrp_data.xml +++ b/addons/mrp/mrp_data.xml @@ -27,5 +27,21 @@ This application supports complete integration and production scheduling for sto 1 + + + + Manufacture + 5 + + + + Manufacture to stock + manufacture + + + + diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 583669277e2..0e47396cfbd 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -347,7 +347,7 @@
- +