document: Domain to filter by uid

Asked by jehan

I installed the document addon and tried to filter cases (and other objects) by logged in user and
I wonder why a Domain for a folder like [('user_id','=',uid)] gives me

NameError: name 'uid' is not defined

in the server log if I try to access the folder by ftp?

Please can you give me a hint what I've done wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
jehan
Solved:
Last query:
Last reply:
Revision history for this message
jehan (jens-e-hansen) said :
#1