Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3441 Vizualizări

My Xml:

<div class="TextAlignSt">

 <span onclick="register_popup(user_data.name,'1');" id="login_name">

  <t t-esc="user_data.name"></t>

 </span>

 <i>

  <t t-foreach="group_data" t-as="i">

  <t t-if="i=='Lab Manager'">

   <t t-esc="i"></t>

  </t>

  <t t-if="i=='Client'">

   <t t-esc="i"></t>

  </t>

  <t t-if="i=='Lab Clerk'">

   <t t-esc="i"></t>

  </t>

  </t>

 </i>

</div>


How to pass username from above function

Thanks in advance..

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

I dont clearly understand this question, you asked how to get user access rights in your heading and in explanation you are asking how to pass user name

to get user name you can try this

<span t-esc="user.name"/>

And to get user groups

<span t-esc="user.groups_id"/>


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
apr. 24
1222
1
dec. 22
44820
0
apr. 21
3119
2
sept. 17
5490
0
mar. 15
5525