I want to write a record rule with domain based on the company_dependent fields (means that field value is storing in ir.property Model).
Means, I have one field i.e. x_company_dependent_field in product.category Model and I want to write one record rule in product. In record-rule domain, I want to compare the product.category fields value with the User fields i.e. x_any_field (normal field).
so that domain can be like below.
Like(domain), [('categ_id.x_company_dependent_field', '=', user.x_any_field)]
I have tried with same but not working.
But when I am giving 'False' value then showing me products.
Like, [('categ_id.x_company_dependent_field', '=', False)]
How can we handle this part ?
odoo12
Thanks in advance