I try to use variables like uid in custom filter definitions, but the ui tells my that the domain is invalid. The filter is working but after saving i can not edit the filter anymore. I have to delete and recreate the whole filter definition. Is there a way to use variables in Odoo Online custom filter definitions? Maybe there is some special syntax?
Target:
Get all customers for which the current user is assigned as salesperson.
Example domain:
[("user_id", "=", uid)]
If this is not possible, i have to create a filter for every user in the system. That can be challenging if old users are deleted an new users join. Also this gets really fast out of hand, if i have for example 20 different filters and need to recreate them time to time if something changes.
I have tested the runbot of Odoo 16.3alpha1 and in this version it tells me also, that the filter is invalid but i am able to edit the domain after saving. It this something they change in future versions?
I dont need the system to tell me, that the filter is valid if it works after saving. But i need to be able to edit the domain from time to time and dont recreate the whole filter.
Version: Odoo saas~16.2