[FIX] product_*,website_sale: wrong template inheritance
In v8, some fields were added for the product.pricelist formview by template inheritance : after the active field. For v9, this active field was moved in a button_box button (archive stat_button), so the added fields (inheritance) landed in the stat_button too.
This commit is contained in:
@@ -124,9 +124,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="name" placeholder="e.g. USD Retailers"/>
|
||||
</h1>
|
||||
<h1><field name="name" placeholder="e.g. USD Retailers"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="currency_id" groups="base.group_multi_currency"/>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Product price list -->
|
||||
<record model="ir.ui.view" id="product_pricelist_view_tree">
|
||||
<field name="name">product.pricelist.tree</field>
|
||||
@@ -19,14 +18,10 @@
|
||||
<field name="model">product.pricelist</field>
|
||||
<field name="inherit_id" ref="product.product_pricelist_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="active" position="after">
|
||||
<label for="discount_policy" groups="sale.group_discount_per_so_line"/>
|
||||
<div groups="sale.group_discount_per_so_line">
|
||||
<field name="discount_policy" class="oe_inline" widget="radio" />
|
||||
</div>
|
||||
<field name="currency_id" position="before">
|
||||
<field name="discount_policy" groups="sale.group_discount_per_so_line" widget="radio"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<field name="model">product.pricelist</field>
|
||||
<field name="inherit_id" ref="product.product_pricelist_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="active" position="after">
|
||||
<field name="currency_id" position="before">
|
||||
<field name="code"/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user