If you want to get access right in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
class test_partner_firstname(common.TransactionCase):
def setUp(self):
super(test_partner_firstname, self).setUp()
self.user_model = self.env["res.users"]
self.partner_model = self.env["res.partner"]
Note- With the help of this code we will get access right of all user.
0 Comment(s)