I would love to add the database name right above the company logo in my Odoo.
The code that shows the image is coded in the template web.menu_secondary under web/views/webclient_templates.xml.
I now want to print the database name here so the user can always see which exact database he is in.
I've 'coded' the place where it should come but now I don't know how to get the database name from here. Is there any way to access it from here?
<a class="oe_logo" t-att-href="'/web/?debug' if debug else '/web'">
<span class="oe_logo_edit">Edit Company data</span>
Database: <!--The db name should be printed here.. -->
<!-- Irrelevant code -->
With kind regards
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/4/15, 5:47 AM|
|Seen: 648 times|
|Last updated: 3/16/15, 8:10 AM|