Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1980 Lượt xem

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


Ảnh đại diện
Huỷ bỏ

You can try this:

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

Tác giả
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.