Browse Source

[IMP] partner search

16.0
RemiFr82 6 months ago
parent
commit
7a6b3075c3
  1. 5
      crock_base/i18n/fr.po
  2. 8
      crock_base/views/res_partner.xml

5
crock_base/i18n/fr.po

@ -15,6 +15,11 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: crock_base
#: model_terms:ir.ui.view,arch_db:crock_base.view_res_partner_filter_inherit_base
msgid "CROCK network"
msgstr "Réseau CROCK"
#. module: crock_base #. module: crock_base
#: model:ir.model,name:crock_base.model_res_partner #: model:ir.model,name:crock_base.model_res_partner
msgid "Contact" msgid "Contact"

8
crock_base/views/res_partner.xml

@ -7,6 +7,11 @@
<field name="inherit_id" ref="base.view_res_partner_filter" /> <field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="priority">40</field> <field name="priority">40</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<filter name="ffck_network" position="after">
<separator />
<filter name="crock_network" string="CROCK network"
domain="[('crck_partner_id','=',%(base.main_partner)d)]" />
</filter>
<filter name="hexagon" position="after"> <filter name="hexagon" position="after">
<filter name="occitanie" string="Occitanie" <filter name="occitanie" string="Occitanie"
domain="[('state_id','=',%(l10n_fr_state.res_country_state_languedocroussillon)d)]" /> domain="[('state_id','=',%(l10n_fr_state.res_country_state_languedocroussillon)d)]" />
@ -25,8 +30,7 @@
<record id="partner_contact_persons.action_persons" model="ir.actions.act_window"> <record id="partner_contact_persons.action_persons" model="ir.actions.act_window">
<field name="context">{'default_is_company': False, <field name="context">{'default_is_company': False,
'search_default_type_person':1, 'search_default_type_person':1,
'search_default_ffck_network':1,
'search_default_occitanie':1,
'search_default_crock_network':1,
'search_default_by_age_range': 1}</field> 'search_default_by_age_range': 1}</field>
</record> </record>
Loading…
Cancel
Save