Browse Source

[IMP] contacts search and default filters

16.0
RemiFr82 6 months ago
parent
commit
90df2b5560
  1. 16
      crock_base/views/res_partner.xml

16
crock_base/views/res_partner.xml

@ -1,8 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
<filter name="association" position="after">
<separator />
<filter name="occitanie" string="Occitanie"
domain="[('state_id','=',%(l10n_fr_state.res_country_state_languedocroussillon)d)]" />
</filter>
</field>
</record>
<record id="contacts.action_contacts" model="ir.actions.act_window"> <record id="contacts.action_contacts" model="ir.actions.act_window">
<field name="context">{'default_is_company': True, 'search_default_country_department_groupby': 1}</field>
<field name="context">{'default_is_company': True, 'search_default_type_company':1, 'search_default_occitanie':1,
'search_default_country_department_groupby': 1}</field>
</record> </record>
</odoo> </odoo>
Loading…
Cancel
Save