From 1f4ab62dc4cdec0296b6ce1f92e6bf3ad1b7227d Mon Sep 17 00:00:00 2001 From: "Ravish Murari (OpenERP)" Date: Tue, 24 Jul 2012 15:37:48 +0530 Subject: [PATCH] [FIX] conformation of mrp(MO) shows error lp bug: https://launchpad.net/bugs/1028264 fixed bzr revid: rmu@tinyerp.com-20120724100748-zfhwpxwm9en5iw7a --- addons/mrp/mrp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 56ac47095a1..c25aa82f07b 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -819,7 +819,8 @@ class mrp_production(osv.osv): 'ref': wc.code, 'product_id': wc.product_id.id, 'unit_amount': wc_line.hour, - 'product_uom_id': wc.product_id.uom_id.id + 'product_uom_id': wc.product_id.id and wc.product_id.uom_id.id or False + } ) if wc.costs_journal_id and wc.costs_general_account_id: value = wc_line.cycle * wc.costs_cycle @@ -835,7 +836,8 @@ class mrp_production(osv.osv): 'ref': wc.code, 'product_id': wc.product_id.id, 'unit_amount': wc_line.cycle, - 'product_uom_id': wc.product_id.uom_id.id + 'product_uom_id': wc.product_id.id and wc.product_id.uom_id.id or False + } ) return amount