Odoo Help


Force overwriting of a record rule

on 8/14/16, 2:27 PM 573 views

How to force overwriting  of a record rule which is defined in a base module and data is set to noupdate='1' ?

the record rule is defined in product module

<data noupdate="1">
<record id="product_comp_rule" model="ir.rule">
<field name="name" >Product multi-company</field>
<field name="model_id" ref="model_product_template"/>
<field name="global" eval="True"/>
<field name="domain_force"> ['|',('company_id','=',user.company_id.id),('company_id','=',False)]</field>

I want to edit it in my custom module to be

<record id="product.product_comp_rule" model="ir.rule">
<field name="name" >All Products (Parent Company)</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="global" eval="True"/>
<field name="domain_force">['|','|',('company_id','=',user.company_id.id),('company_id','=','False'),('company_id','child_of',[user.company_id.id])]</field>
ayman mohammed adam
On 8/15/16, 5:43 AM

dear mustafa,

try something like this:


<?xml version="1.0"?>


<data noupdate="1">

<record model="res.groups" id="group_erp_manager">

<field name="name">Access Rights</field>



<?xml version="1.0"?>


<data noupdate="0"

<record model="res.groups" id="base.group_erp_manager">

<field name="name">Access Rights</field>


I hope i helped you

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/14/16, 2:27 PM
Seen: 573 times
Last updated: 8/15/16, 7:56 AM