[FIX] product_extended: price from bom is build for product templates
[odoo/odoo.git] / addons / product_extended / product_extended_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4         <record model="ir.ui.view" id="product_product_ext_form_view2">
5             <field name="name">product_extended.product.form.view</field>
6             <field name="model">product.template</field>
7             <field name="priority">3</field>
8             <field name="inherit_id" ref="product.product_template_only_form_view" />
9             <field name="arch" type="xml">
10                 <field name="standard_price" position="after">
11                     <button name="%(action_view_compute_price_wizard)d" string="Recompute price from BoM"
12                             type="action" attrs="{'invisible': [('cost_method', '!=', 'standard')]}"
13                              groups="stock_account.group_inventory_valuation"/>
14                 </field>
15             </field>
16         </record>
17     </data>
18 </openerp>
19