Odoo Help


How to set restriction for users in Warehouse???

on 9/30/14, 3:04 AM 1,559 views

Suppose I have Warehouse-A, Warehouse-B and Warehouse-C and I want User-A will only access Warehouse-A, same with Warehouse-B for User-B only and Warehouse-C for User-C. Is it possible to restrict warehouses for specific user? Please help anyone thank you so much in advance.

On 10/3/14, 10:00 PM

I've created security for this...

    <record id="group_warehouse_user" model="res.groups">
        <field name="name"> Warehouse Rules User</field>         
      <record id="group_warehouse_rules_member" model="ir.rule">
            <field name="name">Warehouse User</field>
            <field name="model_id" ref="model_stock_warehouse"/>
            <field name="domain_force">[('partner_id.id','=',user.warehouse_id.id)]</field>
            <field name="groups" eval="[(4, ref('group_warehouse_user'))]"/>

rudyanto santoso
On 5/21/15, 5:24 AM

For Miel, can you give me a step by step tutorial for creating security as you mention above. I have no idea how to do it. thanks

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

2 follower(s)


Asked: 9/30/14, 3:04 AM
Seen: 1559 times
Last updated: 1/17/17, 6:03 AM