[FIX] base: khmer language (Cambodia)
The code of khmer language was not the offical one. Installing it produce an error in the Babel python library. It's not possible to easily fix it by correcting the code km_KM to km_KH because Odoo prohibit changing language code. The solution to this is to remove the Khmer language from the res_lang.csv file and add it to an xml data file with the correct code. There, we can put on this record the "noupdate" tag. This tag will block any modification on the ir_model_data corresponding to the xml_id=lang_km and so avoid the error if we update the base module. Old database still wont be able to use khmer language (so we'll need to manually change it in database) but new one created after this commit will be able to use it without issue.
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- khmer language has the wrong code in res.lang.csv
|
||||
We put the good one here to have the noupdate tag and avoid
|
||||
the error (this fix will be obsolete from SaaS 11.2) -->
|
||||
<record id="lang_km" model="res.lang">
|
||||
<field name="name">Khmer / ភាសាខ្មែរ</field>
|
||||
<field name="code">km_KH</field>
|
||||
<field name="iso_code">km</field>
|
||||
<field name="direction">ltr</field>
|
||||
<field name="translatable">1</field>
|
||||
<field name="grouping">[3,0]</field>
|
||||
<field name="date_format">%d %B %y</field>
|
||||
<field name="time_format">%H:%M:%S</field>
|
||||
</record>
|
||||
|
||||
<record id="view_menu" model="ir.ui.view">
|
||||
<field name="name">ir.ui.menu.tree</field>
|
||||
<field name="model">ir.ui.menu</field>
|
||||
|
||||
@@ -35,7 +35,7 @@ base.lang_de_CH,"German (CH) / Deutsch (CH)",de_CH,de_CH,"Left-to-Right","[3,3]"
|
||||
"base.lang_it","Italian / Italiano","it_IT","it","Left-to-Right","[3,0]",",",".","%d/%m/%Y","%H:%M:%S","True"
|
||||
"base.lang_ja_JP","Japanese / 日本語","ja_JP","ja","Left-to-Right","[3,0]",".",",","%Y年%m月%d日","%H時%M分%S秒","True"
|
||||
"base.lang_kab_DZ","Kabyle / Taqbaylit","kab_DZ","kab","Left-to-Right","[]",".",",","%m/%d/%Y","%I:%M:%S %p","True"
|
||||
"base.lang_km","Khmer / ភាសាខ្មែរ","km_KM","km","Left-to-Right","[3,0]",".",",","%d %B %Y","%H:%M:%S","True"
|
||||
|
||||
"base.lang_ko_KP","Korean (KP) / 한국어 (KP)","ko_KP","ko_KP","Left-to-Right","[3,0]",".",",","%m/%d/%Y","%I:%M:%S %p","True"
|
||||
"base.lang_ko_KR","Korean (KR) / 한국어 (KR)","ko_KR","ko_KR","Left-to-Right","[3,0]",".",",","%Y년 %m월 %d일","%H시 %M분 %S초","True"
|
||||
"base.lang_lo_LA","Lao / ພາສາລາວ","lo_LA","lo","Left-to-Right","[3,0]",".",",","%d/%m/y","%H:%M:%S","True"
|
||||
|
||||
|
Reference in New Issue
Block a user