Why rename hr_employee.parent_id?

Asked by Don Kirkby

Why does the hr module's pre-migration script rename hr_employee.parent_id? The post-migration script never seems to use it for anything, so it looks like all employees will end up with null parent ids.
Is this a mistake, or do parent ids cause some problems?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenUpgrade Addons Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#1

Hi Don,

in 6.0 the parent_id is a related field refering the head of the employee's department. This column move preserves the original manager, but it does indeed not process the data any further as it would not make sense without custom code in 6.0.

Note that this change is reverted in 6.1, where the parent_id is a many2one again.

Cheers,
Stefan.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#2

On second thought, the related field is stored so the column will not be dropped at upgrade time. I will look into it a bit further.

Can you help with this problem?

Provide an answer of your own, or ask Don Kirkby for more information if necessary.

To post a message you must log in.