[IMP] hr_expense/hr_expense.py improved translability and allow to switch in tree view once the invoice is open
bzr revid: qdp-launchpad@openerp.com-20110225140154-79lg4tr1n4pd3x4w
This commit is contained in:
parent
4b0b16ed4f
commit
bd02d3e2e6
|
@ -134,9 +134,9 @@ class hr_expense_expense(osv.osv):
|
|||
wf_service.trg_validate(uid, 'hr.expense.expense', id, 'invoice', cr)
|
||||
inv_ids.append(self.browse(cr, uid, id).invoice_id.id)
|
||||
return {
|
||||
'name': 'Supplier Invoices',
|
||||
'name': _('Supplier Invoices'),
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'view_mode': 'form,tree',
|
||||
'view_id': [res_id],
|
||||
'res_model': 'account.invoice',
|
||||
'context': "{'type':'out_invoice', 'journal_type': 'purchase'}",
|
||||
|
|
Loading…
Reference in New Issue