CRND Web Field Domain enables the integration of custom domain fields with Odoo domains. By utilizing this feature, users can define and implement a custom text field within a model, which can serve as an additional domain for other fields.
To begin using the field domain functionality, follow these steps:
Step 1: Create the text field in the model within the desired model, add a text field that will act as the custom domain field. This field will hold the domain filter criteria in string format.
Example: author_domain_field = fields.Char(default="[('is_company', '=', False)]", compute='_compute_author_domain_field')
Step 2: Define the field in the view options Next, specify this custom domain field in the view options to associate it with the target field. This will link the custom domain to the particular field, enabling the domain filtering based on the custom field's criteria.
Example: <field name="author_id" options="{'domain_field': 'author_domain_field'}"/>
This module is part of the Bureaucrat ITSM project. You can try it by the references below.
Create your own Bureaucrat ITSM database
Bugs are tracked on https://crnd.pro/requests. In case of trouble, please report there.
Our web site: https://crnd.pro/
This module is maintained by the Center of Research & Development company.
We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.
For any questions contact us.