How to restrict Warehouse access to certain users |
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
How to give access to certain warehouses to a specific user ?
> The idea is to limit the access to all the data of that warehouse.
1) Create a new field x_warehouse on model "res.users"
2) On the user, edit the form view and add the bold code (tag enables to choose multiple warehouses) in the inherited view created with Studio:
Only take the bold code in the following path.
<data>
<xpath expr="//field[@name='company_id']" position="after">
<field name="x_warehouse_ids" widget="many2many_tags"/>
</xpath>
</data>
3) Create a record rule :
3.1 For the Warehouse
3.2. For the locations
3.3. For the pickings
please re-insert the images!
Hello, I see your very functional responses and they would help me solve a problem that I have just about this, but I cannot view the images, could you provide them to me through a link or some other way please?
Thank you
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
เม.ย. 25
|
1240 | ||
|
4
ธ.ค. 24
|
16554 | ||
|
1
ส.ค. 24
|
3233 | ||
|
1
ส.ค. 24
|
9248 | ||
Cancel a transfer after it's done
แก้ไขแล้ว
|
|
3
มี.ค. 24
|
7553 |
this is working for the Inventory module, but in the Sales module, when the user select Product he get following error:
ValueError: Invalid field stock.location.x_warehouse_id in leaf ('x_warehouse_id', '=', False)