Skip to content

Commit

Permalink
Merge pull request #240 from beescoop/12.0-beesdoo_base-search-on-bar…
Browse files Browse the repository at this point in the history
…code-field

[ADD] beesdoo_base: add barcode field to default partner search
  • Loading branch information
vvrossem authored Jun 3, 2021
2 parents 253c574 + 06a6fa4 commit 96dc31b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions beesdoo_base/views/partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@
</field>
</record>

<record id="view_beesdoo_res_partner_filter" model="ir.ui.view">
<field name="field_name">res.partner.select</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position='replace'>
<field name="name" filter_domain="['|','|','|',('display_name','ilike',self),('ref','=',self),('email','ilike',self),('barcode','ilike',self)]"/>
</xpath>
</field>
</record>

<!-- S022 : By default a supplier should be a company -->
<record id="base.action_partner_supplier_form" model="ir.actions.act_window">
Expand Down

0 comments on commit 96dc31b

Please sign in to comment.