odoo 13 change date format overridden controllers below class and init method,
Changes not reflected.
from odoo.addons.web.controllers.main import ExportXlsxWriter
class ExportXlsxWriter(ExportXlsxWriter):
def __init__(self, fields, row_count=0):
super(ExportXlsxWriter, self).__init__(fields, row_count=row_count)
self.date_style = self.workbook.add_format({'text_wrap': True, 'num_format': 'mm-dd-yyyy'})
Odoo old to new all versions export date format change or set in user interface feature not available.
Is any custom module available export data date format and float_time widget change from user interface? or any plan to add this feature in the latest odoo 14 version.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2
Odpowiedzi
6173
Widoki
def __myinit__(self, field_names, row_count=0):
self.field_names = field_names
self.output = io.BytesIO()
...
ExportXlsxWriter.__init__ = __myinit__
just add format_date(self.env,date),'num_format': 'dd-mm-yyyy'},
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
4
sie 24
|
75012 | ||
Date format in Dashboard
Rozwiązane
|
|
2
maj 25
|
1043 | |
|
0
paź 23
|
2168 | ||
|
2
paź 23
|
1997 | ||
|
0
wrz 23
|
949 |
I experience the exact same problem. Why is this format fixed and not aligned with user settings for language in Odoo or Excel ?