Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4337 Переглядів

I am using dynamic placeholder eg ( object.request_date_from) in Email templates of Odoo 17. 

The default date format is  2024-02-12. Can I change it to 12-Feb-2024.
I had already tried changing Translations > Languages. It's getting effective in other pages like timesheet, but not in email templates dynamic placeholder

Аватар
Відмінити
Найкраща відповідь

Hi,

There are two possible ways to change the format of the date in the template.

1) You can change the format from the Languages that you have tried already.


2)The second method you need to inherit the actual report template and add the date additionally in it

a. You need to locate the actual report template of from the addons

b. Inherit the template in your custom module

c. Add custom date inside the template.


example:

You can change the format like,


<span t-esc="date.date().strftime('%d/%m/%Y')"/>

d. Run the module


Hope it helps

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лют. 24
4327
2
січ. 24
3975
2
січ. 24
9651
1
бер. 21
9271
0
січ. 19
6878