Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3938 Visualizações

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

Avatar
Cancelar
Melhor resposta

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)]`

Avatar
Cancelar
Autor Melhor resposta

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)

Avatar
Cancelar