Commit 048fa15d authored by Kevin Deldycke's avatar Kevin Deldycke

Make getSubordination(), getGrade(), getRole() and so on working on Person...

Make getSubordination(), getGrade(), getRole() and so on working on Person through default career acquisition.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3581 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f2e0be78
...@@ -138,13 +138,14 @@ class Person: ...@@ -138,13 +138,14 @@ class Person:
, 'acquisition_depends' : None , 'acquisition_depends' : None
, 'mode' : 'w' , 'mode' : 'w'
}, },
{ 'id' : 'career' # Using an empty id generate automaticality getSubordination() and setSubordination()
# methods on Person. These methods allow us to save subordination on the default career.
{ 'id' : ''
, 'storage_id' : 'default_career' , 'storage_id' : 'default_career'
, 'description' : 'The current career step of a person.' , 'description' : 'The default career hold some important properties of a Person.'
, 'type' : 'content' , 'type' : 'content'
, 'portal_type' : ( 'Career', ) , 'portal_type' : ( 'Career', )
, 'acquired_property_id': ( 'title', 'description' , 'acquired_property_id': ( 'start_date', 'stop_date'
, 'start_date', 'stop_date'
, 'subordination', 'subordination_title', 'subordination_value' , 'subordination', 'subordination_title', 'subordination_value'
, 'subordination_uid_list' , 'subordination_uid_list'
, 'collective_agreement_title', 'salary_coefficient' , 'collective_agreement_title', 'salary_coefficient'
...@@ -152,6 +153,17 @@ class Person: ...@@ -152,6 +153,17 @@ class Person:
, 'salary_level', 'salary_level_title' , 'salary_level', 'salary_level_title'
, 'grade', 'grade_title' , 'grade', 'grade_title'
, 'role', 'role_title' , 'role', 'role_title'
)
, 'mode' : 'w'
},
# The properties in here are hold on the default career,
# but are not those that are blended with Person (contrary those above).
{ 'id' : 'career'
, 'storage_id' : 'default_career'
, 'description' : 'Properties of the default career.'
, 'type' : 'content'
, 'portal_type' : ( 'Career', )
, 'acquired_property_id': ( 'title', 'description'
, 'function', 'function_title' , 'function', 'function_title'
) )
, 'mode' : 'w' , 'mode' : 'w'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment