~mikel-martin/openobject-addons/extra-5.0_esale_osc_enhancement

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" ?>
<openerp>
	<data>
        <record id="view_price_update_wizard_done" model="ir.ui.view">
            <field name="name">Updated the price of products</field>
            <field name="model">product.price.update.wizard.done</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form col="2" string="Updated the price of products">
                	<field name="updated_field"/>
                	<field name="updated_products"/>
                	<group col="1" colspan="1">
                        <button icon="gtk-ok" special="cancel" string="End"/>
                    </group>
                </form>
            </field>
        </record>
        <record id="view_price_update_wizard" model="ir.ui.view">
            <field name="name">Update Product Prices</field>
            <field name="model">product.price.update.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Update Product Prices">
                    <separator colspan="4" string="Price to Update"/>
                	<field colspan="4" name="price_type_id" nolabel="1"/>
                    <separator colspan="4" string="Select a Pricelist"/>
                	<field colspan="4" name="pricelist_id" nolabel="1"/>
                    <separator colspan="4" string="Select Product Categories"/>
                	<field colspan="4" name="categ_ids" nolabel="1"/>
                	<field name="upgrade"/>
                	<newline/>
                	<group col="2" colspan="2">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-ok" name="action_update" string="Update" type="object"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_price_update_wizard" model="ir.actions.act_window">
            <field name="name">Update Product Prices</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">product.price.update.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

		<menuitem id="menu_wizard_pricelist_update" parent="product.menu_product_pricelist_main" action="action_price_update_wizard"/>
	</data>
</openerp>