实现效果:
实现方式:
模型中定义字段:
class CusYourModel(models.Model):
""" 你的模型 """
_name = 'xxxxxxx'
_order = "sequence, id"
sequence = fields.Integer(string='Sequence')
前端view视图增加相应字段:
<tree string="xxxxxxxxx">
<field name="sequence" widget="handle"/>
.......
</tree>