Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3946 Представления

hi all i need to display only transaction for the user how create it not all display for example:

user 1 and user 2 both are making transactions so i need user 1 only see his work not seeing user 2 transactions

Аватар
Отменить
Лучший ответ

Hello, 

can you explain what is transaction ? 

For exemple if you want that user 1 only see is sale.order, you can add a `record.rules` on `sale.order` model with domain filter `['|',('user_id','=',user.id),('user_id','=',False)]`

Аватар
Отменить
Автор Лучший ответ

thanks for reply pandachi

i do as same you say but when i try on another user i got error

Access DeniedThe requested operation cannot be completed due to security restrictions. Please contact your system administrator.(Document type: Sales Order Line, Operation: create)

Аватар
Отменить