<record model="ir.rule" id="stock_inventory_comp_rule">
<field name="name">Inventory multi-company</field>
<field name="model_id" ref="model_stock_inventory" />
<field name="global" eval="True" />
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
</field>
</record>
I'm confused with above code fragment in security.xml files which is mean by below tags.?
id="stock_inventory_comp_rule"
means of this line and where its tag with.or is it only for save & keep for identify records by id purpose.?
<field name="name">Inventory multi-company</field>
mean by this line.is this only use for display purpose.?
<field name="model_id" ref="model_stock_inventory" />
which one is mean by model_stock_inventory and what is the usage of this .?
<field name="global" eval="True" />
why this one set global True.?if we set it as False then what will the expected result.?
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
here shows like domain filter in fields.? is this criteria set to above mentioned model class.?what is the usage of this fragment.?