odoo 9 - how to restrict one2many to not show a form view

为君一笑 提交于 2019-12-11 01:40:53

问题


I have a many2many, which is using the one2many widget.

I set mode="tree" and am using editable="bottom".

This works as expected in edit mode, however when in view mode - if the user clicks on a line it opens the line in a form view - how do i prevent this?

I either want nothing to happen, or to allow user to click on one of the _id items on the line.

Either way, clicking on the line should not open the record in a form view.

<field name="test_ids" widget="one2many" nolabel="1" mode="tree">
    <tree editable="bottom">
        <field name="partner_id"/>
        <field name="another_field"/>
    </tree>
</field>

来源:https://stackoverflow.com/questions/43930866/odoo-9-how-to-restrict-one2many-to-not-show-a-form-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!