Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Foreign Key not working in Openerp(6.1)

By
Eddy Tan
on 5/29/13, 5:02 AM 960 views

Hi,I'm beginner in Openerp. :)

I'm having some problems regarding many2one fields in openerp 6.1.

I added table A with a many2one column that referenced to table B. openerp added foreign key constraint to table A.

but why can I still delete data from table B even if it's still referenced by table A ?

P.S : to disable the deletion I need to drop the constraint manually and add the constraint again.but the constraint revert when I upgrade the module. I want to validate a lot of modules, so I don't want to modify the field one by one. is there any recommended way to do this ? thanks before :)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/29/13, 5:02 AM
Seen: 960 times
Last updated: 3/16/15, 8:10 AM