Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3919 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Blank Page After Logged in. แก้ไขแล้ว
2
ก.ย. 25
3885
2
พ.ย. 24
3706
1
ก.ย. 23
5551
1
พ.ย. 24
2600
List view in notebook แก้ไขแล้ว
1
ม.ค. 25
2335