Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Header clickable if Administrator only ?

By
Dr Obx
on 12/15/15, 8:39 AM 343 views

Guys, need help, in header i would like to add attribute 'clickable' but only if admin.

Is it possible to add 'clickable'?

...  attrs="{'clickable':[('user_id','=','Administrator')]}" ...

or how should it look like ?

The admin user is always user_id 0 so set it as attrs="{'clickable':[('user_id','=','0')]}" ...

Yenthe
on 12/15/15, 9:58 AM

What I also think that could work: ('user_id.login','=','youruserlogin')

Yenthe
on 12/15/15, 9:59 AM

Thank you Yanthe, i'll try tomorrow ;)

Dr Obx
on 12/15/15, 4:59 PM

Unfortunately "user_id" is not in domain :(

Dr Obx
on 12/15/15, 5:32 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/15/15, 8:39 AM
Seen: 343 times
Last updated: 12/15/15, 10:18 AM