I added a new field in user called current_stock_owner.
My module will filter many views to show only stuff from the current stock owner of the logged user (a stock_owner is added in the relevant objects to match the current_stock_owner):
- Products
- Sales Orders
- Customers
- Etc.
How could I make a search filter to achieve that?
EDIT:
To be more explicit, stock_owner are our direct customers. They have their own products and sales order and their own customers list. When a user change its current_stock_owner, it will shown only relevant data by default.