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

1- i create a new button in header of tree view.

2- i have a wizard.

Question:

   - how i can call my wizard from my new button (tree view)

อวตาร
ละทิ้ง
ผู้เขียน

Ajeet : your idea Does not work

work in simple button (button in form view) not in header of tree view

คำตอบที่ดีที่สุด

You can call wizard action on button. Below is the example-

<button name="%(wizard_action)d" string="button name"    type="action"/>
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

i give an action but Does not work

but whene i click the button Nothing happen :


<?xml version="1.0" encoding="UTF-8"?>

    <templates id="template" xml:space="preserve">

         <t t-extend="ListView.buttons">

             <t t-jquery="button.o_list_button_add" t-operation="after">

                     <t t-if="widget.model=='my.model'">

                            <button class="oe_button" type="object" name="call_wizard_view">Button Header Tree</button>

                    </t>

            </t>

        </t>

    </templates>



อวตาร
ละทิ้ง