Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3937 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

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
Abbandona