Odoo Help

Welcome!

This community 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.

0

Buttons on wizard Problem [Closed]

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

The Question has been closed for reason: duplicate question

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

Hello,

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"?>
<openerp>
<data>

        <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>
               
            </field>
        </record>
       
       
</data>
</openerp>

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

Close it please

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

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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