Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
Buttons on wizard Problem [Closed]
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">
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 6/27/16, 7:38 AM |
Seen: 546 times |
Last updated: 6/27/16, 8:07 AM |
Close it please