コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3421 ビュー

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
2688
1
11月 23
3075
1
9月 23
4459
1
11月 24
1701
1
1月 25
1745