[FIX] stock : Form open with a lable 'Transfer Products' instead of 'Deliver products'.

bzr revid: mdi@tinyerp.com-20120912104138-5fv3xyr0aqt5dscd
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-09-12 16:11:38 +05:30
parent 1a63b29b4f
commit 7aab0643ee
+1 -1
View File
@@ -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']"):