Search code examples
python-2.7buttontreeviewodoo-10

add another options in action button in tree view odoo 10


I want to add another options in action button on tree view. Moreover in export and delete, i want to add "Confirm" options. I don't know how, please help me. Thanks

enter image description here


Solution

  •     <record id="action_id" model="ir.actions.server">
                    <field name="name">name</field>
                    <field name="model_id" ref="module_name.model_object_name" />
                    <field name="code">
                        action = model.function_name()
                    </field>
                </record>