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

I need to add wizard under the print button in form view, how i achieve this in Odoo 16,
Currently the wizard under the action button how i add this into print button


id="report_id" model="ir.actions.act_window">
name="name">Wizard Report
name="res_model">wizard.wizard
name='view_mode'>form
name="target">new
name="context">{'id': active_id}
name="binding_model_id" ref="model_sale_order"/>


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,


To add a wizard or any menu under the print button inside the form view, you need to define a field in the action, that is binding_type update the code like below,


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


       <field name="name">Print Report</field>


       <field name="res_model">your.model</field>


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


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


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


       <field name="binding_type">report</field>


</record>




Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi user,

https://www.odoo.com/it_IT/forum/assistenza-1/show-wizard-in-print-submenu-odoo15-231052#answer-231398

Thank you.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, 

You can follow this link for this: https://youtu.be/oMnHpHH54QU

Hope it helps,

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
2533
1
เม.ย. 25
3509
1
เม.ย. 25
4339
1
เม.ย. 25
1812
4
มี.ค. 25
6950