【问题标题】:what is the difference between editable = "top" and editable = "bottom" in odoo 10?odoo 10中的editable =“top”和editable =“bottom”有什么区别?
【发布时间】:2017-04-21 12:52:27
【问题描述】:

这是我的代码,

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

我尝试了 editable="top"editable="bottom" 但结果相同,谁能解释一下确切的区别?

【问题讨论】:

    标签: python-2.7 odoo-10


    【解决方案1】:

    你可以看到 x2many 字段的区别:

    editable="top"当您点击添加项目时,会在树的顶部添加一行以输入信息

    editable="bottom" 将行添加到底部。

    在 one2many 或 many2many 中使用底部,否则当行添加到树的顶部时会混淆用户,特别是当有几十行时。

    【讨论】:

      猜你喜欢
      • 2016-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      相关资源
      最近更新 更多