[FIX] product_extended: price from bom is build for product templates
[odoo/odoo.git] / addons / product_extended / product_extended_wizard.xml
1 <?xml version="1.0" ?>
2 <openerp>
3     <data>
4         <record id="view_compute_price_wizard" model="ir.ui.view">
5             <field name="name">Compute Price as Sum of BoM Components and Routing</field>
6             <field name="model">wizard.price</field>
7             <field name="arch" type="xml">
8               <form string="Change Standard Price">
9                   <separator string="Change Price"/>
10                   <group>
11                       <field name="info_field"/>
12                       <div colspan="2">The price is computed from the bill of material lines which are not variant specific</div>
13                       <field name="real_time_accounting"/>
14                       <field name="recursive"/>
15                   </group>
16                   <footer>
17                       <button name="compute_from_bom" string="Set price on BoM" type="object" class="oe_highlight"/>
18                       or
19                       <button string="Cancel" class="oe_link" special="cancel" />
20                   </footer>
21               </form>
22             </field>
23         </record>
24
25         <record id="action_view_compute_price_wizard" model="ir.actions.act_window">
26             <field name="name">Compute Price Wizard</field>
27             <field name="type">ir.actions.act_window</field>
28             <field name="res_model">wizard.price</field>
29             <field name="view_type">form</field>
30             <field name="view_mode">form</field>
31             <field name="view_id" ref="view_compute_price_wizard"/>
32             <field name="target">new</field>
33         </record>
34
35         </data>
36 </openerp>