Reputation: 73
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
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
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
Reputation: 465
Check how many users are there in this table 'rs_users'. also check which table your getting it.
Upvotes: 1