Skip to content

Commit 85db377

Browse files
[FIX] base: Invalid flag image url computed for Serbian lang sr@latin
When computing flag_image_url field on res.lang model an invalid url is generated due to the peculiar format for serbian lang code sr@latin which has "@" sign instead of expected "_" sign and thus the unexisting url is computed, so we are forced to populate binary field flag_image instead. Part-of: odoo#113490
1 parent 65d5ab8 commit 85db377

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

odoo/addons/base/data/res_lang_data.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
<record id="base.lang_ar" model="res.lang">
1111
<field name="flag_image" type="base64" file="base/static/img/lang_flags/lang_ar.png"/>
1212
</record>
13+
<record id="base.lang_sr@latin" model="res.lang">
14+
<field name="flag_image" type="base64" file="base/static/img/country_flags/rs.png"/>
15+
</record>
1316
</data>
1417
</odoo>

0 commit comments

Comments
 (0)