I would like to change the format of the DateTime field to YYYYMMMMDMHmm. So I want to add a custom widget, can you tell me how to work on it?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
2
Antwoorden
4232
Weergaven
Hi,
Instead of creating new widget can you try the following way.
Go to Settings-> Translations-> Languages Choose your preferred language and Edit the Date format and Time Format to your required one and Save.
Regards
Go to -> Settings -> Translation -> Languages
Open your activated languages
Change the date format
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
It is in the form of YYYY/MMM/D/h/m.
Field Information
date = fields.Datetime()
<field name="date"/>