跳至內容
選單
此問題已被標幟
2 回覆
3396 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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

頭像
捨棄
最佳答案

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/


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
6
9月 21
17592
0
3月 15
3721
2
7月 19
8674
0
6月 16
6602
0
3月 15
5397