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 8d9c540
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crm_claim_type/views/crm_claim_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,28 @@
</form>
</field>
</record>
<record id="crm_claim_type_search_view" model="ir.ui.view">
<field name="name">crm.claim.type.search</field>
<field name="model">crm.claim.type</field>
<field name="arch" type="xml">
<search string="Claims">
<filter
string="Specific Claim Type"
name="specific_claim_type"
domain="[('claim_type', '!=', False)]"
/>
<group expand="1" string="Group By">
<filter string="Claim Type" context="{'group_by': 'claim_type'}" />
<filter string="Stage" context="{'group_by': 'stage_id'}" />
</group>
</search>
</field>
</record>
<record id="crm_claim_type_act" model="ir.actions.act_window">
<field name="name">Claim Types</field>
<field name="res_model">crm.claim.type</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="crm_claim_search_view" />
</record>
<menuitem
action="crm_claim_type_act"
Expand Down

0 comments on commit 8d9c540

Please sign in to comment.