← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 703833] [NEW] hr_payroll overrides hr.employee.passport_id column, ignores data

 

Public bug reported:

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 .

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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:
  New

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 .





Follow ups

References