Odoo Help

0

Header clickable if Administrator only ?

By
Dr Obx
on 12/15/15, 8:39 AM 550 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

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.

Register

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)

Stats

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