Skip to content Skip to sidebar Skip to footer

Odoo 14: Add A Section Functionality In Tree View

I need add a section functionality like sales > quotation view has, in one of my tree views. . Code of my view is something like this: /> </control> <field name="name" widget="section_and_note_text" optional="show"/> <field name="display_type" invisible="1"/> <field name="score"/> </tree> </field>

Model definition:

class Qualification(models.Model):
    _name = 'hr.applicant.qualification'
    _description = 'Applicant Qualification'

    name = fields.Char(required=True)
    display_type = fields.Selection([
        ('line_section', "Section"),
        ('line_note', "Note")], default=False, help="Technical field for UX purpose.")

    qualification_data = fields.Many2one('hr.applicant', string='Qualification')

Post a Comment for "Odoo 14: Add A Section Functionality In Tree View"