[IMP] hr_expense : Improved the code.
bzr revid: mdi@tinyerp.com-20120712122556-p8bgyf0cqq4sfdi0
This commit is contained in:
@@ -131,12 +131,10 @@ class hr_expense_expense(osv.osv):
|
||||
return True
|
||||
|
||||
def invoice(self, cr, uid, ids, context=None):
|
||||
if not ids: return []
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
wkf_service = netsvc.LocalService("workflow")
|
||||
|
||||
if not ids: return []
|
||||
exp = self.browse(cr, uid, ids[0], context=context)
|
||||
|
||||
voucher_ids = []
|
||||
for id in ids:
|
||||
wkf_service.trg_validate(uid, 'hr.expense.expense', id, 'invoice', cr)
|
||||
|
||||
Reference in New Issue
Block a user