Hi
I want to hide kanban view's progress bar for some user. how to do this please if know the solution please let me know.
see my code
.py file
class CRMLead(models.Model):
_inherit = 'crm.lead'
is_admin = fields.Boolean(compute="check_user_group")
def check_user_group(self):
self.is_admin = self.env['res.users'].has_group('base.user_admin')
.xml file
<xpath expr="//progressbar[@field='activity_state']" position="attributes">
<attribute name="attrs">{'invisible':[('is_admin','!=',True)]}</attribute>
</xpath>
This above code does not work for me