I need to add domain to contacts to show only contacts who has the sale team of the active user but the error occurred
This the error:
EvalError: Can not evaluate python expression: ([('team_id', '=', user.sale_team_id.id)]) Error: Name 'user' is not defined
odoo17
Hii ,
You cannot directly use 'user' in the action definition. Instead, you need to add a custom field to handle the value. Access to the user record should be managed through ir.rule and not directly in the action.
Thanks,