[IMP]:in refund wizard remove the context key
bzr revid: ksa@tinyerp.com-20111128092235-iriwoz7nq5trxsy5
This commit is contained in:
@@ -62,6 +62,7 @@ class account_invoice_refund(osv.osv_memory):
|
||||
def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False):
|
||||
journal_obj = self.pool.get('account.journal')
|
||||
user_obj = self.pool.get('res.users')
|
||||
context.pop('form_view_ref')
|
||||
res = super(account_invoice_refund,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
|
||||
type = context.get('type', 'out_invoice')
|
||||
company_id = user_obj.browse(cr, uid, uid, context=context).company_id.id
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
</page>
|
||||
<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'}"/>
|
||||
<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"/>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user