跳至內容
選單
此問題已被標幟
3 回覆
3041 瀏覽次數

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..:-)

頭像
捨棄