Odoo Help


Buttons on wizard Problem [Closed]

John Doe
on 6/27/16, 7:38 AM 597 views

The Question has been closed for reason: duplicate question

Axel Mendoza
on 06/27/2016 08:07:50


I'm creating a wizard which is launched from quotation/sale order. When I'm trying to press any of the buttons created it showing me an error. It doesn't matter if button running a method or is empty.

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

        <record model="ir.ui.view" id="sale_order_view_add_button_discount">
            <field name="name">sale.order.form.new_button_discount</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='order_line']" position="before">
                <button string="Zmien" type="action" class="oe_highlight" name="%(action_sale_order_change_wizard)d" />
                <!--<group><group><p><field name="new_discount"/><button string="Zmien upust" type="object" name="change_discount"/></p></group>
                <group><p><field name="new_tax" widget="many2many_tags"/><button string="Zmien Podatek" type="object" name="change_tax"/></p></group></group>-->

<xpath expr="//field[@name='order_line']" position="before">  

Close it please

John Doe
on 6/27/16, 7:59 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/27/16, 7:38 AM
Seen: 597 times
Last updated: 6/27/16, 8:07 AM