Hello,
I tried to do this:
is_acc_manager = fields.Boolean(default=False)
acc_manager = self.env['res.groups'].search( [ ('name','in',['Accountant','Chief Accountant']), ('category_id.name','=','Invoicing')] )
def validate_user(self):
if acc_manager = ???: - What to compare?
is_acc_manager = True
else:
is_acc_manager = False
How to know if the user is accounting or the user profile is in Invoicing?