YamK
YamK

Reputation: 73

ODOO: Why is create_uid always 1?

Even when i'm adding and login as new users, the create_uid in the database is always 1.

Can i change this default in ODOO?

Upvotes: 1

Views: 1256

Answers (3)

Xiao Lin.Meng
Xiao Lin.Meng

Reputation: 36

You may try this in your code:
In python code, using self.env.user.id
While in xml code, using 'uid'

Upvotes: 0

Hilar AK
Hilar AK

Reputation: 1675

This usually happens when the model is created as superuser using sudo() method. First the non admin user have the proper access rights to create records in that model.

Upvotes: 2

Check how many users are there in this table 'rs_users'. also check which table your getting it.

Upvotes: 1

Related Questions