Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 odoo 10中可编辑=“顶部”和可编辑=“底部”之间的区别是什么?_Python 2.7_Odoo 10 - Fatal编程技术网

Python 2.7 odoo 10中可编辑=“顶部”和可编辑=“底部”之间的区别是什么?

Python 2.7 odoo 10中可编辑=“顶部”和可编辑=“底部”之间的区别是什么?,python-2.7,odoo-10,Python 2.7,Odoo 10,这是我的密码 <tree string="School Tree" editable="top"> <field name="name"/> <field name="school_id"/> <field name="age" /> </tree> 我尝试了editable=top和editable=bottom,但结果相同,有人能解释确切的差异吗?您可以在x2many字段中看到差异: 可编辑=顶部当您单击a

这是我的密码

<tree string="School Tree" editable="top">
    <field name="name"/>
    <field name="school_id"/>
    <field name="age" />
</tree>

我尝试了editable=top和editable=bottom,但结果相同,有人能解释确切的差异吗?

您可以在x2many字段中看到差异:

可编辑=顶部当您单击add tiem时,您将看到一行被添加到树的顶部以输入您的信息

可编辑=底部单击“添加项”时,您将看到该行现在位于树的底部


因此,在one2many或many2many中,许多始终使用底部,因此当用户单击“添加项”时,当该行添加到树的顶部时,他不会感到困惑,特别是当有许多行时,您可以在x2many字段中看到差异:

可编辑=顶部当您单击add tiem时,您将看到一行被添加到树的顶部以输入您的信息

可编辑=底部单击“添加项”时,您将看到该行现在位于树的底部

因此,在one2many或many2many中,许多人总是使用bottom,因此当用户单击add item时,当行添加到树的顶部时,他不会感到困惑,特别是当有很多行时