From 48a8367968fb897b0778eb094033458ea399b361 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 1 Oct 2012 19:13:41 +0200 Subject: [PATCH] [FIX] sale_stock: stupid wrong field used bzr revid: qdp-launchpad@openerp.com-20121001171341-dj97xdjw9qu0nkxr --- addons/sale_stock/sale_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index dfd310fce3a..e079386b15d 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -619,7 +619,7 @@ class sale_order_line(osv.osv): warning_msgs = res_packing.get('warning') and res_packing['warning']['message'] or '' product_obj = product_obj.browse(cr, uid, product, context=context) res['value']['delay'] = (product_obj.sale_delay or 0.0) - res['value']['type'] = product_obj.type + res['value']['type'] = product_obj.procure_method #check if product is available, and if not: raise an error uom2 = False