[ADD/FIX] Duplicate reosurce yaml and added the references for the same

bzr revid: jam@tinyerp.com-20111205115637-473yq421xc5w6ag2
This commit is contained in:
Jigar Amin - OpenERP 2011-12-05 17:26:37 +05:30
parent 6e5e699b6e
commit cd99a7eeb6
3 changed files with 7 additions and 2 deletions

View File

@ -47,6 +47,7 @@ It also manages the leaves of every resource.
],
'test': [
'test/resource.yml',
'test/duplicate_resource.yml',
],
'installable': True,
'active': False,

View File

@ -0,0 +1,6 @@
-
I duplicate the resource "Analyst"
-
!python {model: resource.resource}: |
copied_id = self.copy(cr, uid, ref("resource_analyst"))
assert copied_id, "Unable to Duplicate Resource"

View File

@ -47,8 +47,6 @@
dt_to = dt_from+ timedelta(days=6)
hours = self.interval_hours_get(cr, uid, ref('timesheet_group1'), dt_from, dt_to, resource=ref('resource_developer'))
assert hours > 27 , 'Invalid Total Week working hour calculated'
-
Project Analysis work is of 20 hours which will start from Week startso i will calculate working schedule for resource Analyst for the same.
-