[ADD/FIX] Duplicate reosurce yaml and added the references for the same
bzr revid: jam@tinyerp.com-20111205115637-473yq421xc5w6ag2
This commit is contained in:
parent
6e5e699b6e
commit
cd99a7eeb6
|
@ -47,6 +47,7 @@ It also manages the leaves of every resource.
|
||||||
],
|
],
|
||||||
'test': [
|
'test': [
|
||||||
'test/resource.yml',
|
'test/resource.yml',
|
||||||
|
'test/duplicate_resource.yml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'active': False,
|
'active': False,
|
||||||
|
|
|
@ -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"
|
|
@ -47,8 +47,6 @@
|
||||||
dt_to = dt_from+ timedelta(days=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'))
|
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'
|
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.
|
Project Analysis work is of 20 hours which will start from Week startso i will calculate working schedule for resource Analyst for the same.
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in New Issue