Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3080 มุมมอง

Hi All,

I need to show username below the company label in top left. Please help if anyone have done this.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Example, db name and user name in backend, below logo:

<template id="db_user_info" name="Db user info" inherit_id="web.menu_secondary">
<xpath expr='//img[@src="/web/binary/company_logo"]' position="after">
 
    <br/>
    <t t-esc="request.db"/><br/>
    <t t-esc="request.env.user.name"/>

</xpath>
</template>


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

@zbic: Thank you..:-)

อวตาร
ละทิ้ง