From 2311698c51b4ce3fbc91d1885125b22da02b01f9 Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Mon, 15 Dec 2008 17:22:33 +0100 Subject: [PATCH] "Bugfix: 'properties' was not defined" bzr revid: olt@tinyerp.com-20081215162233-v9m4ceexzgr9eieg --- addons/mrp/mrp.py | 2 +- addons/mrp/wizard/wizard_change_production_qty.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 331af2aeb99..901f38beab4 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -235,7 +235,7 @@ class mrp_bom(osv.osv): return {'value': v} return {} - def _bom_find(self, cr, uid, product_id, product_uom, properties = []): + def _bom_find(self, cr, uid, product_id, product_uom, properties=[]): bom_result = False # Why searching on BoM without parent ? cr.execute('select id from mrp_bom where product_id=%s and bom_id is null order by sequence', (product_id,)) diff --git a/addons/mrp/wizard/wizard_change_production_qty.py b/addons/mrp/wizard/wizard_change_production_qty.py index 3a031d8f5ce..6fca02332d5 100644 --- a/addons/mrp/wizard/wizard_change_production_qty.py +++ b/addons/mrp/wizard/wizard_change_production_qty.py @@ -67,7 +67,7 @@ def _change_prod_qty(self, cr, uid, data, context): bom_point = prod.bom_id bom_id = prod.bom_id.id if not bom_point: - bom_id = pool.get('mrp.bom')._bom_find(cr, uid, prod.product_id.id, prod.product_uom.id, properties) + bom_id = pool.get('mrp.bom')._bom_find(cr, uid, prod.product_id.id, prod.product_uom.id) if not bom_id: raise osv.except_osv('Error', "Couldn't find bill of material for product") self.write(cr, uid, [prod.id], {'bom_id': bom_id})