← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Phong,

I must say I agree with you. This is specifically caused by a piece of
code on ORM which adds field each time the method is called.

For now, its a little difficult to do on 6.0 series.

You may find more details on https://bugs.launchpad.net/openobject-
server/+bug/790090.

We will have a solution at earliest.

Thanks.

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