Hi,
Please Use widget="section_and_note_one2many" in your One2many field in XML,
To Get Section and Note in Your Custom Model
and after applying it you can add the control
<field name="your_one_2_many_field"
widget="section_and_note_one2many"
<tree editable="bottom" string="Journal Items">
<control>
<create name="add_line_control" string="Add a line"/>
<create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
// Add you custom fields
</tree>
</field>
Hope it helps