[Fix]: hr_expense: removed warning
bzr revid: rha@tinyerp.com-20110223091325-kcwpjr781tnx016f
This commit is contained in:
@@ -133,12 +133,10 @@ class hr_expense_expense(osv.osv):
|
||||
for id in ids:
|
||||
wf_service.trg_validate(uid, 'hr.expense.expense', id, 'invoice', cr)
|
||||
inv_ids.append(self.browse(cr, uid, id).invoice_id.id)
|
||||
if not inv_ids:
|
||||
raise osv.except_osv(_('Error'), _('No Invoices were created'))
|
||||
return {
|
||||
'name': 'Supplier Invoices',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'view_mode': 'form',
|
||||
'view_id': [res_id],
|
||||
'res_model': 'account.invoice',
|
||||
'context': "{'type':'out_invoice', 'journal_type': 'purchase'}",
|
||||
|
||||
Reference in New Issue
Block a user