Odoo Aide

0

0
3 Answers
0
Binil P
07/06/2019 05:19

These are not working in mail.activity_items template, so i'm trying to pass 'uid' value in mail_activity.js file in this template rendering code. I dont have much points to comment on the answers @Rakesh Vadeghar and @Mitul Shingala. 

Thank you very much  for the support. 

0
Avatar
--Mitul Shingala--

Odoo Developer

Mitul Shingala
06/06/2019 03:18

Hello

try with below line

<span t-esc="activity.env.user.id"/>

so your condition is like

<t t-if="activity.create_uid.id == activity.env.user.id">

i hope this will helps you.

0
Rakesh Vadeghar
04/06/2019 08:01

To get logged in user id  try this 

<p t-field="o.env.user.id"/>
Poser une question
Writer
Keep Informed
1 Abonné(e)s
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now