Odoo Help

Welcome!

This community 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.

2

How to set restriction for users in Warehouse???

By
Miel
on 9/30/14, 3:04 AM 971 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.

2
Miel
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> 
   
      <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'))]"/>
        
    </record>

0
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 9/30/14, 3:04 AM
Seen: 971 times
Last updated: 5/21/15, 5:24 AM