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

HI ! please how can i add the print datetime of this report using Odoo studio? Am using Odoo online. Can someone help me quickly ? 

Thanks so much !



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

To add the print date and time to a report in Odoo using Odoo Studio, follow these steps:

  1. Go to the Odoo Studio app and open the report that you want to add the print date and time to.
  2. In the report editor, go to the "Structure" tab and click on the "Add an element" button.
  3. In the "Add an element" window, select "Field" and then click on the "Create" button.
  4. In the "Field" window, select the "Date and time" field type and then click on the "Create" button.
  5. In the "Date and time" field configuration window, select the "Created on" date and time field from the "Field" drop-down menu.
  6. Click on the "Save" button to save the changes to the report.
  7. Preview the report to see the print date and time added to it.

Alternatively, you can also add the print date and time to a report by using the "QWeb" template editor in Odoo. To do this, follow these steps:

  1. Go to the "Settings" menu and select "Technical" and then "Reports" from the sub-menu.
  2. Find the report that you want to add the print date and time to and click on its "Edit" button.
  3. In the report editor, go to the "QWeb" tab and click on the "Edit Source" button.
  4. In the "QWeb" template editor, add the following code to the report template:
class="text-center"> Print date and time: t-field="datetime.now()"/>

Click on the "Save" button to save the changes to the report template.

Preview the report to see the print date and time added to it.


Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks u for ur assistance. But please can i explain all this steps by post picture or video recorder? It will be very easy to me to follow because versions is different. I will be waiting. thanks a lot
abdulahqoudouss@gmail.com : my mail

Câu trả lời hay nhất

Was there any better clarification of the steps to develop this in the QWeb ?  

Ảnh đại diện
Huỷ bỏ
Tác giả

HI @David Hovsepian.
DM on whatsApp i'll try to guide you
+225 05 45 14 53 91
Regards !

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
1718
0
thg 8 24
1530
0
thg 7 24
1241
0
thg 7 24
755
0
thg 1 24
2032