تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1964 أدوات العرض

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


الصورة الرمزية
إهمال

You can try this:

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

الكاتب
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.