[IMP]sale: fix the view_ref issue of sale in history teb for open partial wizard and imporve a string
bzr revid: mma@tinyerp.com-20120320064936-tu0d1rej1r3w3fin
This commit is contained in:
parent
5af66b247f
commit
3e06c960aa
|
@ -246,8 +246,8 @@
|
|||
<page string="History" groups="base.group_extended">
|
||||
<separator colspan="4" string="Invoices"/>
|
||||
<field colspan="4" name="invoice_ids" nolabel="1" context="{'form_view_ref':'account.invoice_form'}"/>
|
||||
<separator colspan="4" string="Packings"/>
|
||||
<field colspan="4" name="picking_ids" nolabel="1" context="{'form_view_ref':'stock.picking_out_form', 'default_type': 'out'}"/>
|
||||
<separator colspan="4" string="Delivery Orders"/>
|
||||
<field colspan="4" name="picking_ids" nolabel="1" context="{'form_view_ref':'stock.view_picking_out_form', 'default_type': 'out'}"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
|
|
|
@ -75,6 +75,8 @@ class stock_partial_picking(osv.osv_memory):
|
|||
|
||||
def fields_view_get(self, cr, uid, view_id=None, view_type='form',
|
||||
context=None, toolbar=False, submenu=False):
|
||||
# remove the entry with key 'form_view_ref', otherwise fields_view_get crashes
|
||||
context.pop('form_view_ref', None)
|
||||
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=False)
|
||||
|
|
Loading…
Reference in New Issue