[FIX] base: change default Norwegian date format
The date format set on the Norwegian language is not kept when we click on date fields Steps to reproduce: 1. Install Sales 2. Install and switch to Norwegian language 3. Open Sales and create a new quotation 4. Click on the 'Quotation Date' field 5. The date format is changed from '%d. %b %Y' to '%Y/%m/%d' Solution: Change the default Norwegian date format to a valid static format The format used comes from babbel[^babbel], double checked with the Norwegian locale[^nb.js] [^nb.js]: https://github.com/odoo/odoo/blob/16.0/addons/web/static/lib/moment/locale/nb.js#L25 [^babbel]: https://www.babbel.com/en/magazine/how-to-write-the-date-in-norwegian Problem: The old date format didn't pass the `isValidStaticFormat` test of the date picker, so the default format 'yyyy/MM/dd' was used instead opw-3191605 closes odoo/odoo#113926 X-original-commit: c27226e13392207811b61aceb3c77d1e9fcc180d Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
This commit is contained in:
@@ -52,7 +52,7 @@ base.lang_de_CH,"German (CH) / Deutsch (CH)",de_CH,de_CH,"Left-to-Right","[3,3]"
|
||||
"base.lang_mn","Mongolian / монгол","mn_MN","mn","Left-to-Right","[3,0]",".","'","%Y-%m-%d","%H:%M:%S","7"
|
||||
"base.lang_ms","Malay / Bahasa Melayu","ms_MY","ms","Left-to-Right","[3,0]",".",",","%d/%m/%Y","%H:%M:%S","1"
|
||||
base.lang_my,"Burmese / ဗမာစာ",my_MM,my,"Left-to-Right","[3,3]",".",",","%Y %b %d %A","%I:%M:%S %p","7"
|
||||
"base.lang_nb_NO","Norwegian Bokmål / Norsk bokmål","nb_NO","nb_NO","Left-to-Right","[3,0]",","," ","%d. %b %Y","%H:%M:%S","1"
|
||||
"base.lang_nb_NO","Norwegian Bokmål / Norsk bokmål","nb_NO","nb_NO","Left-to-Right","[3,0]",","," ","%d.%m.%Y","%H:%M:%S","1"
|
||||
"base.lang_fa_IR","Persian / فارسی","fa_IR","fa","Right-to-Left","[3,0]",".",",","%Y/%m/%d","%H:%M:%S","6"
|
||||
"base.lang_pl","Polish / Język polski","pl_PL","pl","Left-to-Right","[]",",",,"%d.%m.%Y","%H:%M:%S","1"
|
||||
"base.lang_pt_AO","Portuguese (AO) / Português (AO)","pt_AO","pt_AO","Left-to-Right","[]",",",,"%d-%m-%Y","%H:%M:%S","1"
|
||||
|
||||
|
Reference in New Issue
Block a user