From 7aab0643eebd3517cde14a3572c307f1827a2b9c Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Wed, 12 Sep 2012 16:11:38 +0530 Subject: [PATCH] [FIX] stock : Form open with a lable 'Transfer Products' instead of 'Deliver products'. bzr revid: mdi@tinyerp.com-20120912104138-5fv3xyr0aqt5dscd --- addons/stock/wizard/stock_partial_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_partial_picking.py b/addons/stock/wizard/stock_partial_picking.py index b3720b8a51b..755da7c42ee 100644 --- a/addons/stock/wizard/stock_partial_picking.py +++ b/addons/stock/wizard/stock_partial_picking.py @@ -78,7 +78,7 @@ class stock_partial_picking(osv.osv_memory): if context is None: context={} res = super(stock_partial_picking, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) - type = context.get('active_model','').split('.')[-1] + type = context.get('default_type', False) if type: doc = etree.XML(res['arch']) for node in doc.xpath("//button[@name='do_partial']"):