Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3059 Lượt xem

Hi All,

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

@zbic: Thank you..:-)

Ảnh đại diện
Huỷ bỏ