Odoo Help


many2one not woking

on 6/8/14, 1:59 PM 882 views

i have used many2one fields in so many places in my custom module. It is woking fine on all others databases, but on only one datatbase, when i try to update module, it gives error: like Programming error: there is no primary key for reference table res_user 

Generates error on following code.

'session_started_by': many2one('res.users','Operator')

for the time i removed the above code, but later on it gives same errors on other line of code where i used many2one. I gues there is some problem with the database.

It updates without any error on other databases, problem occurs with only one database

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/8/14, 1:59 PM
Seen: 882 times
Last updated: 3/16/15, 8:10 AM