Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
2234 Zobrazení

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"/>


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

Hi, 

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

Hope it helps,

Thanks

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 25
2510
1
dub 25
3498
1
dub 25
4327
1
dub 25
1799
4
bře 25
6927