From 6be5f7cb282c593e42fb9ea6e98011a2eabb9b2f Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Sat, 24 Jul 2010 14:46:58 +0530 Subject: [PATCH] [IMP] mrp: improce view of bom, workcenter bzr revid: hmo@tinyerp.com-20100724091658-evcyhq7zly4rhpoy --- addons/mrp/mrp.py | 4 ++-- addons/mrp/mrp_view.xml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 55013857384..7a592a4a2ce 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -269,11 +269,11 @@ class mrp_bom(osv.osv): max_prop = prop return result - def _bom_explode(self, cr, uid, bom, factor, properties, addthis=False, level=0): + def _bom_explode(self, cr, uid, bom, factor, properties=[], addthis=False, level=0): """ Finds Products and Workcenters for related BoM for manufacturing order. @param bom: BoM of particular product. @param factor: Factor of product UoM. - @param properties: A dictionary for contextual values. + @param properties: A List of properties Ids. @param addthis: If BoM found then True else False. @param level: Depth level to find BoM lines starts from 10. @return: result: List of dictionaries containing product details. diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 470f7c73a03..ca003b33daa 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -155,10 +155,10 @@ - + - - + + @@ -236,7 +236,7 @@ - + @@ -301,8 +301,8 @@ - + @@ -316,8 +316,8 @@ - +