I want to override a Security Record Rule (model ir.rule) with a new domain. I have looked up the record id and model in External Identifiers and produced this data.xml-file:
<data>
<record id="base.res_partner_rule" model="ir.rule">
<field name="name">Multi-company res.partner</field>
<field name="model_id" ref="base.model_res_partner"/>
<field eval="True" name="global"/>
<field name="domain_force">['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id','in',[company.id for company in user.company_ids])]</field>
</record></data>
I dont get any erros when I install the module but the ir.rule-record does not get updated.
<data noupdate="false">
<data noupdate="0">
<data noupdate="1">
I have tried some attributes on data but with no luck.
I'm facing the same issue. Do you find a proper way to handle this ?
Me too, How can I fix this?
Thanks