*: website Add a field image flag on the lang model because when a language has no country (like the arabic) we cannot use the country flag as a lang flag. By default we use this new field and as fallback we use the country image. We also add an arabic flag image in the website data. Part of https://github.com/odoo/odoo/pull/55300 task-2203383 closes odoo/odoo#55300 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
15 lines
456 B
XML
15 lines
456 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<function name="install_lang" model="res.lang"/>
|
|
</data>
|
|
<data>
|
|
<record id="base.lang_my" model="res.lang">
|
|
<field name="url_code">mya</field>
|
|
</record>
|
|
<record id="base.lang_ar" model="res.lang">
|
|
<field name="flag_image" type="base64" file="base/static/img/lang_flags/lang_ar.png"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|