I found company rule employee record rule and I want to modified it's force domain using backend. But I didn't find this record rule in backend .I think that record is create by using front end. How can I modify that record rule using backend in odoo.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
Search for 'res_company_rule_employee' in code, then you can find that rule definition.
To modify that rule from your custom module
<record id="base.res_company_rule_employee" model="ir.rule">
<field name="domain_force">[('id','in', company_ids)]</field>
</record>
Add your customer domain here.
Regards
I didn't found that rule.
I didn't found that record rule.I used version 14 and try to write this code in my custom module but nothing is changed in this record rule domain
You cannot modify records in the backend that has been created from the frontend. However, you can add the rule from the backend and remove the previous record.