Odoo Help


How to show the time/date of printing in a report? [nearly solved]

Tobias Frankl
on 2/22/15, 10:31 AM 1,119 views

Report has the module "time": 

I am trying quite some time to find the synthax: This and worse:

<li t-if="time.time()">Gedruckt von: <span t-field="time.time()"/></li>

Could somebody give me a line of code?



| 6 5 7
Lodz, Poland

On 2/22/15, 10:38 AM

Try like this:

                <span t-esc="time.strftime('%Y-%m-%d')"/>
                <span t-esc="time.strftime('%H:%M')"/>


That was the fastest response on the forum, ever :-) Thanks, now I have some date and time on my report. Is this time the "user time" or some server time? I ask, because there is one hour difference on the report to real time. It's Summer time, possible? Wrong timezone on server? utc?

Tobias Frankl
on 2/22/15, 10:58 AM

Server time in the chat module is correct. checked that. So maybe a timezone problem?

Tobias Frankl
on 2/22/15, 11:02 AM

See this question and link to commit, in my last comment: https://www.odoo.com/forum/help-1/question/reports-displays-utc-rather-than-local-time-76504

on 2/22/15, 11:06 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/22/15, 10:31 AM
Seen: 1119 times
Last updated: 3/16/15, 8:10 AM