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 e29ef21
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions crm_claim_type/views/crm_claim_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,23 @@
</form>
</field>
</record>
<record id="crm_claim_search_view" model="ir.ui.view">
<field name="name">crm.claim.search</field>
<field name="model">crm.claim</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>
</record>
<menuitem
action="crm_claim_type_act"
name="Claim Types"
id="menu_crm_claim_type_act"
parent="crm_claim.menu_config_claim"
groups="base.group_no_one"
/>
<menuitem action="crm_claim_type_act" name="Claim Types" id="menu_crm_claim_type_act" parent="crm_claim.menu_config_claim" groups="base.group_no_one" />
</odoo>

0 comments on commit e29ef21

Please sign in to comment.