如何更改 One2many 字段的顺序?

How to change the order of a One2many field?

我有一个树视图,新项目放在最上面。相反,我需要将新项目放在其他项目的末尾。此外,如果新项目的顺序错误,我需要以正确的顺序设置它们

这个命令是在哪里设置的?我需要改变它

更新

The "editable" property has two options are: top and bottom. I did not know the top choice then I thought I had configured editable="bottom" which was not correct. I just switched to bottom and it worked properly

如果你想改变树或列表的顺序,你主要有两个选择:

您可以使用模型中的属性 _order 订购 table。 Link

_order = "name, date_order desc"

如果您使用的是 Odoo v8,您可以在特定的树视图中添加属性 default_orderLink

<tree default_order="sequence,name desc">

这就是你要找的吗?