Skip to Content
Menu
This question has been flagged
1610 Views

Hi i want to show date and time on Receipt odoo 14 orderreceipt.xml 

i have try using these codes but problem not solved 

1:datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"/>

2:receipt.date.localestring' />


Avatar
Discard

You can try this:

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

Author
Not working i have already try this
Azhar Hussain chaudhary
Powerweb.move.pk


On Sun, Dec 19, 2021 at 6:44 PM CorTex IT Solutions Ltd <erp@cortexsolutions.net> wrote:

You can try this:

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

Sent by Odoo S.A. using Odoo.