I'm building a custom module in which I inherited res.partner. I want certain functionalities of my inherit res.partner to be available for certain user group, how in partner.py, might I find to which groups the current user is part of ?
I've tried to use a field with a Many2one ('res.groups', domain = ('user', 'in', ??????)) but don't know how to use in this domain the current user.
Thanks in advance
check this: https://learnopenerp.blogspot.com/2017/10/how-to-check-login-user-group-in-odoo.html