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 9537496
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 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,31 @@
</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
name="claim_type_group"
string="Claim Type"
context="{'group_by': 'claim_type'}"
/>
<filter
name="stage_group"
string="Stage"
context="{'group_by': 'stage_id'}"
/>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 9537496

Please sign in to comment.