c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #28971
[Bug 703833] Re: hr_payroll overrides hr.employee.passport_id column, ignores data
I have hr and hr_payroll modules installed. Every time I reload the hr
module, the field passport_id is renamed to passport_id_moved<xxx>, and
now I end up having 100+ fields like this (passport_id_moved<xxx>). I
think this should be fixed soon.
In addition, I think this is a general problems for overrides that
changes the field data types. How is the best approach to solve this for
smooth migration?
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/703833
Title:
hr_payroll overrides hr.employee.passport_id column, ignores data
Status in OpenERP Modules (addons):
Won't Fix
Bug description:
At hr_payroll/hr_payroll.py we define a many2one 'passport_id' column
for hr.employee, which will point to 'hr.passport' records. At
hr/hr.py:164 we also have a "passport_id", with the string content of
the passport number.
So, when installing "hr_payroll", we hide all previously registered passport ids, server produces the warning:
WARNING:orm:column 'passport_id' in table 'hr_employee' has changed type (DB=varchar, def=many2one), data moved to table passport_id_moved0 !
We need to put some code that will transfer the contents of that moved column (beware: we cannot guarrantee that it will be "..moved0") into the hr.passport table.
I also suggest that we /don't/ change column names, not before v6.1 .
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/703833/+subscriptions
References