0
votes

enter image description hereI have two one2many field one inside the other,the o2m field records are shown in the numeric counts like (3record) in the outer o2m field. How to show record name instead of record count for one2many field in tree view

1

1 Answers

0
votes
 <tree string="Customer Segment(Industry)" >
      <field name="name" string="Customer Segment"/>
      <field name="industry_image" widget="image" />
      <field name="schedule_list_ids"/>
 </tree>

this will display like this

Showing record name instead of count- tree view

In the form view I have like the following

           <form string="Industries List">
                <sheet>
                   <group>
                         <field name="name" style="width:30%%" string="Customer Segment"/>
                         <field name="industry_image" widget="image" width="100px" height="100px" />
                         <field name="schedule_list_ids"/>
                   </group>
                </sheet>
            </form>

Showing record name instead of count- formview