Odoo Help


Header clickable if Administrator only ?

Dr Obx
on 12/15/15, 8:39 AM 708 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')]}" ...

on 12/15/15, 9:58 AM

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

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

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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