Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1264 Переглядів

Hi, im new to odoo and right now i'm trying to figuring out is it possible to limit users able to view their transfers within their location? 
I do acknowledge that the filter search favourite can be saved and use by default upon opening transfer list but if the "favorite" is removed, every users can still look up the other users transfers with different locations is set.

Аватар
Відмінити
Найкраща відповідь

Hello,

In Odoo, you can restrict users from viewing transfers in locations other than their own by setting up record rules. Record rules are used to restrict access to records based on certain conditions. Here's how you can set it up:
Go to Settings -> Technical -> Security -> Record Rules.
Create a new record rule with the following settings:

  • Object: Stock Transfer
  • Name: Restrict Transfers to User's Location
  • Domain: [('location_id', '=', user.location_id.id)]
  • Apply for Read: Checked
  • Apply for Write: Checked
  • Apply for Create: Checked
  • Apply for Unlink: Checked
  • Active: Checked

This record rule will ensure that users can only see transfers where the location_id matches their own location. Make sure to replace user.location_id.id with the actual field name of the location field on the user's profile.

Hope it helps

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
жовт. 22
3170
2
лип. 22
3346
3
лют. 22
3973
1
січ. 18
4383
0
бер. 15
4377