[IMP] hr_timesheet: small code and test cleanup
bzr revid: rco@openerp.com-20111221105214-kgwedzef47lvoii8
This commit is contained in:
parent
d87f491178
commit
bc40611002
|
@ -57,10 +57,10 @@ to set up a management by affair.
|
|||
],
|
||||
'demo_xml': ['hr_timesheet_demo.xml'],
|
||||
'test': [
|
||||
'test/test_hr_timesheet.yml',
|
||||
'test/hr_timesheet_report.yml',
|
||||
'test/hr_timesheet_demo.yml',
|
||||
],
|
||||
'test/test_hr_timesheet.yml',
|
||||
'test/hr_timesheet_report.yml',
|
||||
'test/hr_timesheet_demo.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
'certificate': '0071405533469',
|
||||
|
|
|
@ -88,7 +88,6 @@ class hr_so_project(osv.osv_memory):
|
|||
return timesheet_obj.create(cr, uid, res, context=context)
|
||||
|
||||
def sign_out_result_end(self, cr, uid, ids, context=None):
|
||||
print""
|
||||
emp_obj = self.pool.get('hr.employee')
|
||||
for data in self.browse(cr, uid, ids, context=context):
|
||||
emp_id = data.emp_id.id
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
I check that state is "Confirmed".
|
||||
-
|
||||
!assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_deddk0}:
|
||||
- state == 'confirm'
|
||||
- state == 'confirm'
|
||||
-
|
||||
The manager will accept This request by click on "Accept" button.
|
||||
-
|
||||
|
@ -120,4 +120,4 @@
|
|||
I check that state is "Done".
|
||||
-
|
||||
!assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_deddk0}:
|
||||
- state == 'done'
|
||||
- state == 'done'
|
||||
|
|
|
@ -91,4 +91,4 @@
|
|||
Check for timesheet_ids in HR manager's timesheet
|
||||
-
|
||||
!assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, length of timesheet line of current timesheet must be greater then 1}:
|
||||
- len(timesheet_ids) > 0
|
||||
- len(timesheet_ids) > 0
|
||||
|
|
Loading…
Reference in New Issue