[IMP]following fields are invalid user in timesheet

bzr revid: hsa@tinyerp.com-20121109133705-biefd0u3d50zyzh6
This commit is contained in:
Hardik 2012-11-09 19:07:05 +05:30
parent 0528e00788
commit 40745949d4
2 changed files with 2 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class hr_timesheet_sheet(osv.osv):
wf_service.trg_validate(uid, 'hr_timesheet_sheet.sheet', sheet.id, 'confirm', cr)
else:
raise osv.except_osv(_('Warning!'), _('Please verify that the total difference of the sheet is lower than %.2f.') %(di,))
return True
return True
def attendance_action_change(self, cr, uid, ids, context=None):
hr_employee = self.pool.get('hr.employee')
@ -220,7 +220,6 @@ class hr_timesheet_sheet(osv.osv):
if employee_id:
department_id = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).department_id.id
return {'value': {'department_id': department_id}}
hr_timesheet_sheet()
class account_analytic_line(osv.osv):

View File

@ -115,7 +115,7 @@
<field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
<field invisible="1" name="amount"/>
<field invisible="1" name="general_account_id"/>
<field invisible="1" name="user_id" required="1"/>
<field invisible="1" name="user_id"/>
</tree>
<form string="Timesheet Activities" version="7.0">
<field name="date"/>