跳至內容
選單
此問題已被標幟
3 回覆
2261 瀏覽次數

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, 

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

Hope it helps,

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 25
2524
1
4月 25
3503
1
4月 25
4338
1
4月 25
1808
4
3月 25
6947