← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 589456] Re: ORM builds incorrect foreign key constraint

 

Hello Jim,

  I have checked the scenario with the _inherits. It is using the exact
table which is given with the field. Suppose in account_invoice_line the
field product_id has the foreign key with product_product and not with
product_template.

So It doesn't seem to be a bug at all. I am closing the bug as of now,
notify us if the problem still persists.

Thanks.

** Changed in: openobject-server
       Status: New => Invalid

** Changed in: openobject-server
    Milestone: None => 6.0

-- 
ORM builds incorrect foreign key constraint
https://bugs.launchpad.net/bugs/589456
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: Invalid

Bug description:
This can be seen in the hr_payroll module.  hr_employee_grade _inherits from res.partner.function.  The hr_contract has the "function" field altered to point to hr_employee_grade, rather than res.partner.function.  The foreign key constraint built for hr_contract points to res_partner_function, not hr_employee_grade, as it should.