Skip to content

Commit

Permalink
[IMP] crm_claim_type: Add search view
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Dec 27, 2024
1 parent ddfcbc4 commit afba9ef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crm_claim_type/views/crm_claim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,23 @@
</xpath>
</field>
</record>

<record id="crm_claim_type_search_view" model="ir.ui.view">
<field name="name">CRM - Claims Search</field>
<field name="model">crm.claim</field>
<field name="inherit_id" ref="crm_claim.view_crm_case_claims_filter" />
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<filter
string="Claim Type"
name="claim_type"
domain="[('claim_type', '!=', False)]"
/>
</xpath>
<xpath expr="//group" position="inside">
<filter string="Claim Type" context="{'group_by': 'claim_type'}" />
<filter string="Stage" context="{'group_by': 'stage_id'}" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit afba9ef

Please sign in to comment.