Commit 7f42ab1e authored by Actarus's avatar Actarus
Browse files

site form view: Added context in department and state search + Added...

site form view: Added context in department and state search + Added dependency department_fix_search
parent fa366ad4
......@@ -7,6 +7,7 @@
'depends': [
'base',
'l10n_fr_department',
'department_fix_search',
],
'license': 'GPL-3',
'data': [
......
......@@ -36,8 +36,10 @@
<field name="street2" placeholder="Rue 2" colspan="3" nolabel="1"/>
<field name="city" placeholder="Ville" colspan="1" nolabel="1"/>
<field name="zip" placeholder="Code postal" colspan="1" nolabel="1"/>
<field name="department_id" placeholder="Département" colspan="1" nolabel="1"/>
<field name="state_id" placeholder="Région" colspan="2" nolabel="1"/>
<field name="department_id" placeholder="Département" colspan="1" nolabel="1"
context="{'state_id': state_id, 'country_id': country_id}"/>
<field name="state_id" placeholder="Région" colspan="2" nolabel="1"
context="{'country_id': country_id}"/>
<field name="country_id" placeholder="Pays" colspan="1" nolabel="1"/>
</group>
<group>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment