c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12852
[Bug 703833] Re: hr_payroll overrides hr.employee.passport_id column, ignores data
** Changed in: openobject-addons
Status: Confirmed => In Progress
--
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 OpenObject Addons Modules:
In Progress
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 .
References