Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
2306 Vizualizări

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hi, 

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

Hope it helps,

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 25
2538
1
apr. 25
3510
1
apr. 25
4343
1
apr. 25
1818
4
mar. 25
6954