Skip to content

Commit

Permalink
[FIX] base.view_res_partner_filter: Add filter names
Browse files Browse the repository at this point in the history
Otherwise it would be difficult to accurately reference some filters using xpath
  • Loading branch information
IOAyman committed Oct 23, 2017
1 parent dede013 commit 58ef571
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions odoo/addons/base/res/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@
<search string="Search Partner">
<field name="name"
filter_domain="['|','|',('display_name','ilike',self),('ref','=',self),('email','ilike',self)]"/>
<filter help="My Partners" domain="[('user_id','=',uid)]"/>
<filter name="filter_my_partners" help="My Partners"
domain="[('user_id','=',uid)]"/>
<separator/>
<filter string="Persons" name="type_person" domain="[('is_company','=',0)]"/>
<filter string="Companies" name="type_company" domain="[('is_company','=',1)]"/>
Expand All @@ -343,8 +344,8 @@
<field name="parent_id" domain="[('is_company','=',1)]" operator="child_of"/>
<group expand="0" name="group_by" string="Group By">
<filter name="salesperson" string="Salesperson" domain="[]" context="{'group_by' : 'user_id'}" />
<filter string="Company" context="{'group_by': 'parent_id'}"/>
<filter string="Country" context="{'group_by': 'country_id'}"/>
<filter name="group_company" string="Company" context="{'group_by': 'parent_id'}"/>
<filter name="group_country" string="Country" context="{'group_by': 'country_id'}"/>
</group>
</search>
</field>
Expand Down

0 comments on commit 58ef571

Please sign in to comment.