Hi,
I would have 2 models of the following
class Table(modes.Models):
_name = 'mymodule.table'
name = name = fields.Char(
required=True,
string='Table Name',
help='Table Name',
)
table_lines = field.One2many(
'mymodule.table.line',
'table_id',
string='Lines'
)
class TableLine(models.Model):
_name = 'mymodule.table.line'
name = fields.Char(
required=True,
string='Name',
help='Line Name',
)
data = fields.Char(
required=True,
string='Data',
help='Data',
)
table_id = fields.Many2one(
'mymodule.table',
ondelete='cascade',
string='Table'
)
How could I create a form which has a tree/list view of my TableLine items and able to set them in order?