Files
odoo_source/addons/http_routing/views/res_lang_views.xml
T
Romain Derie 269aa59411 [IMP] http_routing, website: allow to customize the lang in URL
With this commit it is now possible to change the lang displayed in the URL.
Eg, you could use `/fr` instead of `/fr_BE`, or even a fancier `/french`.

Task-32838

Courtesy of pla@odoo.com

closes odoo/odoo#35135

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2019-08-26 16:35:19 +00:00

25 lines
925 B
XML

<?xml version="1.0"?>
<odoo>
<record id="res_lang_form_inherit_model" model="ir.ui.view">
<field name="name">res.lang.form.http_routing.inherit</field>
<field name="model">res.lang</field>
<field name="inherit_id" ref="base.res_lang_form"/>
<field name="arch" type="xml">
<field name="url_code" position="attributes">
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
<record id="res_lang_tree_inherit_model" model="ir.ui.view">
<field name="name">res.lang.tree.model.inherit</field>
<field name="model">res.lang</field>
<field name="inherit_id" ref="base.res_lang_tree"/>
<field name="arch" type="xml">
<field name="url_code" position="attributes">
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
</odoo>