How override base record rule in custom module?
i am trying to override base record rule in my custom module because i want to display only current company partner to specific user. but when i use base feature frim settings 》 multi comoany and uncheck share partner then it apply on all company and user
so i am trying to do this for only some user or only for some compnay so i am overriding base record rule but it's not working
<record model="ir.rule" id="res_partner_rule"><field name="name">res.partner company</field><field name="model_id" ref="base.model_res_partner"/><!--Show partners from ancestors and descendants companies(or company-less), this is usually a better default formulticompany setups.--><field name="domain_force">['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field><field name="active" eval="False"/></record>
i am trying to override above rule
please any one help me