Is it possible to define the domain force of a record rule based on a computed field on the same model? For example
<field name="domain_force">[('employee_id','in',employee_ids.ids)]</field>
Here, employee_id
and employee_ids
(computed) are fields on the model.
Odoo gives me an error
Invalid domain: <class 'NameError'>: "name 'employee_ids' is not defined"
Other variations I tried are object.employee_ids
, obj.employee_ids
, self.employee_ids
but none works. How can I achieve this?