Skip to Content
Menu
This question has been flagged

Hello,

I'm trying to add a group by filter in res partner filter view view_res_partner_filter , so I inherited the view and I have added this code :

partner.xml

<record id="patient_search_view" model="ir.ui.view">           

<field name="name">patient.select</field>           

<field name="model">res.partner</field>           

<field name="inherit_id" ref="base.view_res_partner_filter" />           

<field name="arch" type="xml">

<search string="Search Partner" position="inside">                                                           

<field name="Mutuelle"/>       

    <group string="Group By" position="inside">                           

    <filter string="Mutuelles" domain="[]" context="{'group_by': 'Mutuelle'}"/>                

    </group>              

</field>       

</record>


partner.py

Mutuelle = fields.Many2one('mutuelle',ondelete='cascade', string='Mutuelle')


so when I click on Mutuelle , the tree view is regrouped by Mutuelle but I can't see the content. what should I do

Avatar
Discard
Related Posts Replies Views Activity
0
Jun 16
2786
1
May 16
7196
0
Mar 15
2541
2
Dec 23
595
3
May 24
2626