Hello,
I'm working on odoo 11 and i have menu item that open a wizard form in popup. I want to have tree Buttons (PDF, XLS and Cancel) instead of save button.
How can i do that ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I'm working on odoo 11 and i have menu item that open a wizard form in popup. I want to have tree Buttons (PDF, XLS and Cancel) instead of save button.
How can i do that ?
Hello Mohamed Lamine Lalmi,
For that, you need to define footer in your wizard form view.
For example:-
<record id="unique_id" model="ir.ui.view">
<field name="name">wizard.model.form.view</field>
<field name="model">wizard.model</field>
<field name="arch" type="xml">
<form string="Wizard">
<group>
<group>
<field name="wizard_field_1"/>
</group>
<group>
<field name="wizard_field_1"/>
</group>
</group>
<footer>
<button name="method_name_for_pdf" string="PDF" type="object" class="oe_highlight"/>
or
<button name="method_name_for_excel" string="Excel" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
Hope it will helps you.
Thanks,
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
ส.ค. 25
|
835 | ||
Customize Report problem
แก้ไขแล้ว
|
|
3
ส.ค. 25
|
1086 | |
|
3
ส.ค. 25
|
2203 | ||
|
1
ก.ค. 25
|
1020 | ||
|
0
ส.ค. 25
|
829 |