콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3458 화면

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
17713
0
3월 15
3759
2
7월 19
8783
0
6월 16
6724
0
3월 15
5464