ORM builds incorrect foreign key constraint

Bug #589456 reported by Jim Norman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

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.

Tags: maintenance
Revision history for this message
Jim Norman (jim-jsnorman) wrote :

This is reported against the wrong module - it should be openobject-server or ORM. There's no way to correct the Affects field.

affects: account-banking → openobject-server
tags: added: maintenance
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

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:
milestone: none → 6.0
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.