```
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): 

    #override of fields_view_get in order to change the label of the process button and the separator accordingly to the shipping type 

    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('default_type', False) 

    if type: doc = etree.XML(res['arch']) 
        for node in doc.xpath("//button[@name='do_partial']"): 
             if type == 'in': 
                 node.set('string', _('_Receive')) 
             elif type == 'out': 
                 node.set('string', _('_Deliver'))

```

---

i want to hide qty,expire\_date field

---

```
    for node in doc.xpath("//separator[@name='product_separator']"):
        if type == 'in':
            node.set('string', _('Receive Products'))
        elif type == 'out':
            node.set('string', _('Deliver Products'))
    res['arch'] = etree.tostring(doc)
return res

```