diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-08-03 13:33:33 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-08-14 17:40:58 +0000 |
| commit | e41622e16e6db04456929a954eb5d75ca2d8abe4 (patch) | |
| tree | 0e87f441ef6c67f757016a05892184033bab4270 /odoo/addons/base/data | |
| parent | 745ef9de97544d5c1a97e03be67e903feca40c2a (diff) | |
[IMP] base, *: add a field image flag on the lang model
*: 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>
Diffstat (limited to 'odoo/addons/base/data')
| -rw-r--r-- | odoo/addons/base/data/res_lang_data.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odoo/addons/base/data/res_lang_data.xml b/odoo/addons/base/data/res_lang_data.xml index 309b5e2642c..8ed3dc51be3 100644 --- a/odoo/addons/base/data/res_lang_data.xml +++ b/odoo/addons/base/data/res_lang_data.xml @@ -7,5 +7,8 @@ <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> |
