콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3533 화면

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
2917
1
11월 23
3204
1
9월 23
4626
1
11월 24
1864
1
1월 25
1862