Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1975 Widoki

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' />


Awatar
Odrzuć

You can try this:

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

Autor
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.