This question has been flagged
3 Replies
2399 Views

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.

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

I didn't found that rule.

Author Best Answer

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

Avatar
Discard
Best Answer

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.

Avatar
Discard