[IMP]: Improve code
bzr revid: ksa@tinyerp.co.in-20110408101451-m9iox64ggxy3v8qp
This commit is contained in:
parent
2cb987625c
commit
2289e6db4f
|
@ -70,7 +70,6 @@ class hr_timesheet_invoice_wizard(osv.osv_memory):
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
hr_obj = self.pool.get('hr.employee')
|
hr_obj = self.pool.get('hr.employee')
|
||||||
data = {}
|
|
||||||
for emp in self.browse(cr, uid, ids, context=context):
|
for emp in self.browse(cr, uid, ids, context=context):
|
||||||
for emp_data in emp.emp_ids:
|
for emp_data in emp.emp_ids:
|
||||||
emp_id = hr_obj.search(cr, uid, [('id', '=', emp_data.employee_id.id)], context=context)
|
emp_id = hr_obj.search(cr, uid, [('id', '=', emp_data.employee_id.id)], context=context)
|
||||||
|
|
Loading…
Reference in New Issue