Tuesday, October 1, 2019

current date in odoo report

odoo

we can show the current date in odoo -V11- by multi format as bellow 

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

No comments:

Post a Comment

Odoo Invoice Qr code issues

There are two main issues must of us facing with the QR code in Odoo invoice & these issues are 1/ QR code displayed as broken image w...