Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Date and number formats not correct

Odoberať

Get notified when there's activity on this post

This question has been flagged
dateseparatorversion8
2 Replies
9806 Zobrazenia
Avatar
Luis Alberto Panozzo

I am surprised to find out that almost regardless of the language you install (unlike what happened until 6.1 and possibly 7.0) you always get the US date format and decimal separator.

Yes, it is simple to change in Settings > Languages but I feel it is a "soft" bug ... like, well, we do not have time so let the users take care of that. 

Besides, even though I have a Thousands separator (and this is regardless of the language), the separator is not shown. While I would like to see 1.000,23 I still see 1000,23 

Is this a bug or is it working as designed?

PS: I have tried with en_US, en_UK, es_ES, es_AR and nb_NO

1
Avatar
Zrušiť
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

Hi Luis

It seems that Odoo takes by default the dateformat %m/%d/%Y. You can see this in misc.py under /odoo/odoo-server/openerp/tools/ (https://github.com/odoo/odoo/blob/8.0/openerp/tools/misc.py)
However this is a rather small and annoying thing I honestly find this a bug. But Odoo probably thinks otherwise about this. You can always report a bug if you'd wish, its worth the try. You can do that here: https://github.com/odoo/odoo/issues

To fix this you have two options.
1) Simply go to settings > Languages and modify it for every language
2) Create a .yml file where you automaticly install and configure the language as you'd like. I've created a lang_preferences.yml file under the module base (as this is default installed) and simply added this code:

-
  Set NL as default lang
-
  !python {model: res.lang}: |
    if self.search(cr, uid, [('code', '=', 'nl_NL')], limit=1):
      value_obj = self.pool.get('ir.values')
      ids = value_obj.search(cr, uid, [
        ('name', '=', 'lang'),
        ('key', '=', 'default'),
        ('model', '=', 'res.partner'),
      ], limit=1, context=context)
      vals = {
        'name': 'lang',
        'key': 'default',
        'key2': False,
        'model': 'res.partner',
        'object': False,
        'value_unpickle': 'nl_NL',
      }
      if ids:
        value_obj.write(cr, uid, ids, vals, context)
      else:
        value_obj.create(cr, uid, vals, context)
-
  custom date and time format.
-
  !python {model: res.lang}: |
    lang_ids = self.search(cr, uid, [('code', '=', 'nl_NL')], limit=1)
    if lang_ids:
      self.write(cr, uid, lang_ids, {
        'date_format': '%d/%m/%Y',
        'time_format': '%H:%M:%S',
      }, context)
 

This will by default install the Dutch language, set it as the active language and set the dateformat to %d/%m/%Y and will do this for every database you ever create.
NOTE: Be sure to also add the new .yml file in your __openerp__.py file or it will not be loaded/used.

As for your seperator and format, you could probably do something sortlike with the field decimal seperation mark? I'm not sure about that part so I'll leave that to somebody else to be sure.

Hope this helps you!
Yenthe

4
Avatar
Zrušiť
Bole

thumb up :)

Yenthe Van Ginneken (Mainframe Monkey)

Thanks Bole! You gave me a good example to understand yml files so thanks again for that :)

Bole

and thumb up is for using it :)

Avatar
Luis Alberto Panozzo
Autor Best Answer

Thank you, Yenthe ...

Yes, I am aware of the simple GUI change and I have done it already. I am tempted to believe the attitude was "It is so simple and we are so pressed for time that we will not do it ... let the users do it". On top of that, assuming that the US format is the standard everyone should adopt is something I would have never expected from a European company (even though I understand that the lure of the US market is almost imposssible to resist).

Having to write a specific module is an option (even cutting and pasting) but somehow that is a tad beyond the point. (On top of that I am no programmer so even cutting and pasting would not be good for me since I do not have access to the server). 

I have solved the thousands separator issue, though. Apart form choosing a separtor character (normally, a period for Europeans, but can also be a blank) you have to set the separator format which by default shows as a mere pair of square brackets ( [] ) to [3,0] and 5432,12 will read, for example, as 5.432,12 or 5 432,12.

0
Avatar
Zrušiť
Yenthe Van Ginneken (Mainframe Monkey)

@Luis I agree that the current behaviour and setup isn't too great. They seem to be having some problems with dateformats, timeformats, translations & seperators anyways. There are a number of things that still aren't ideal but I'd assume they will look into this for V9? There is no official response about these things though.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
odoo 16 dashboard select specific date range Solved
date
Avatar
Avatar
Avatar
3
jún 25
2649
How to get Creation Date for created Customer? Solved
date
Avatar
Avatar
1
jan 25
19108
How to calculate total days between count_start and count_end? Solved
date
Avatar
Avatar
1
jan 20
4877
How to give the specific date like "2022-12-31",not the default date as today? Solved
date
Avatar
Avatar
1
dec 19
7402
How to compare with the date that which one is earlier,which one is late? Solved
date
Avatar
Avatar
1
dec 19
18199
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now