Skip to Content
Menu
This question has been flagged
2356 Views

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

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
1039
1
Nov 23
1409
1
Sep 23
2067
1
Nov 24
124
1
Apr 24
382