Search code examples
odooopenerp-8odoo-9qweb

How to get current login user name in qweb report odoo


I want to get and display current login user name in qweb report in odoo. Can someone please tell me, how can i do it or give me some example code. I'll be very thankful...!


Solution

  • You can use "user" in your qweb template to get details of current login user, it is record of res.users.

    To print the user name

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

    Click here to see more