Odoo Help

8
1
Weste
On 4/4/14, 1:15 PM

A user can switch between his allowed companies with the Preferences menu, but he will always see only the selected company with the current record rules.

If you want your user to see the records of all his allowed companies at the same time, you have to edit the ir.rule for this object and put something like that:

    <record id="product.product_comp_rule" model="ir.rule">
        <field name="domain_force">['|',('company_id','in',[c.id for c in user.company_ids]),('company_id','=',False)]</field>
    </record>

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 9/12/13, 5:15 AM
Seen: 3326 times
Last updated: 9/13/17, 7:59 PM