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

Hi,

Why date format in reports is different than it is in the apps? not only the format, the translation of the months too?

what if i want to show translation of the apps inside the reports?

Thnx

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

There was 2 languages activated both are Arabic but different delicts.  so  i  just  deactivated  the  wrong  one 

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

For the date format use 

<span t-field="o.field_name" t-field-options='{"format": "MM/dd/yyyy"}'/>
for version 12 use
<span t-esc="o.field_name.strftime('%m/%d/%Y')"/>
For translations,
If you are using custom reports then you have to add your custom fields in your translation file.
Here are the examples:
1. https://www.odoo.yenthevg.com/translating-reports-in-odoo-8/
2. https://webkul.com/blog/odoo-language-translation/


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 9 21
17545
0
thg 3 15
3685
2
thg 7 19
8655
0
thg 6 16
6564
0
thg 3 15
5381