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

Hi,

Is it possible to place a button between LOAD FILE and CANCEL in the Import view ?

Accounting->Accounting Entries->Import

Thank you.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Check below code to add Button in Toolbar.

If you want to open wizard on Clicking on new added button from Toolbar than first create model and his view file and than use act_window for that view so you can get Button on Toolbar.

<record id="view_bla_bla" model="ir.ui.view">

            <field name="name">Bla Bla Wizard</field>

            <field name="model">wizard.model</field>

            <field name="arch" type="xml">

                <form>

                    <group>

                        <field name="A"/>

                        <field name="B" required="1"/>

                    </group>

                    <footer>

                        <button name="call_method" string="Ok"

                            type="object" class="oe_highlight" />

                        or

                        <button string="Cancel" class="oe_link"

                            special="cancel" />

                    </footer>

                </form>

            </field>

        </record>


<act_window id="action_bla_bla_view" 

name="Bla Bla" 

res_model="wizard.model"

src_model="own.model" 

view_mode="form" 

target="new"

multi="True" 

key2="client_action_multi" />

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi ,

\
Daniel Lusignan

refer this:

https://supportuae.wordpress.com/2017/09/06/how-to-add-button-in-tree-view-header-near-create-and-import-buttons-odoo10/

อวตาร
ละทิ้ง