跳至内容
菜单
此问题已终结
3440 查看

Hi, I am new to odoo development

In my model: Custom Item, I added an option in form view of "Action" Button/dropdown (on top) but was unable to add same option in tree view. The action button option displays a wizard: "Create Sales Order" to create new Sales Order record with associated custom item(s). Need to add multiple custom items in wizard but I think this requires option to appear in tree view.


In code, this is how I am adding option in action button in file, custom_item.xml:

<record id="action_create_sales_order" model="ir.actions.act_window">

    <field name="name">Create Sales Order</field>

    <field name="type">ir.actions.act_window</field>

    <field name="res_model">myapp.customitem.salesorder</field>

    <field name="domain">[]</field>

    <field name="context">{}</field>

    <field name="view_mode">form</field>

    <field name="binding_model_id" ref="model_myapp_customitem"/>

    <field name="binding_view_types">tree,form</field>

    <field name="target">new</field>

</record>

Here, binding_view_types=tree,form but still option only appears in form view.

Something I am doing worng? How should I handle this? Please help


Many Thanks

形象
丢弃
相关帖文 回复 查看 活动
2
11月 24
2729
1
11月 23
3098
1
9月 23
4491
1
11月 24
1747
1
1月 25
1772