1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem id="base.menu_sale_config_sales" name="Sales"
6 parent="base.menu_base_config" sequence="0" groups="base.group_extended"/>
7 <menuitem groups="base.group_extended" id="menu_product_pricelist_main" name="Pricelists" parent="base.menu_base_config" sequence="50"/>
9 <record id="product_pricelist_version_form_view" model="ir.ui.view">
10 <field name="name">product.pricelist.version.form</field>
11 <field name="model">product.pricelist.version</field>
12 <field name="type">form</field>
13 <field name="arch" type="xml">
14 <form string="Pricelist Version">
15 <field name="name" select="1"/>
16 <field name="active"/>
17 <field colspan="4" name="pricelist_id" select="1"/>
18 <field name="date_start" select="1"/>
19 <field name="date_end" select="1"/>
20 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
21 <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
25 <record id="product_pricelist_version_tree_view" model="ir.ui.view">
26 <field name="name">product.pricelist.version.tree</field>
27 <field name="model">product.pricelist.version</field>
28 <field name="type">tree</field>
29 <field name="arch" type="xml">
30 <tree string="Pricelist Version">
32 <field name="pricelist_id"/>
33 <field name="date_start"/>
34 <field name="date_end"/>
39 <record id="product_pricelist_action" model="ir.actions.act_window">
40 <field name="name">Pricelist Versions</field>
41 <field name="type">ir.actions.act_window</field>
42 <field name="res_model">product.pricelist.version</field>
43 <field name="view_type">form</field>
44 <field name="view_id" ref="product_pricelist_version_tree_view"/>
45 <field name="help">There can be more than one version of a pricelist. Here you can create and manage new versions of a price list. Some examples of versions: 2010, 2011, Summer Promotion, etc.</field>
48 action="product_pricelist_action" id="menu_product_pricelist_action"
49 parent="product.menu_product_pricelist_main" sequence="2"/>
51 <record id="product_pricelist_item_tree_view" model="ir.ui.view">
52 <field name="name">product.pricelist.item.tree</field>
53 <field name="model">product.pricelist.item</field>
54 <field name="type">tree</field>
55 <field name="arch" type="xml">
56 <tree string="Products Listprices Items">
57 <field name="sequence"/>
58 <field colspan="4" name="name" select="1"/>
59 <field name="product_tmpl_id" select="1"/>
60 <field name="categ_id" select="1"/>
61 <field name="min_quantity"/>
67 <record id="product_pricelist_item_form_view" model="ir.ui.view">
68 <field name="name">product.pricelist.item.form</field>
69 <field name="model">product.pricelist.item</field>
70 <field name="type">form</field>
71 <field name="arch" type="xml">
72 <form string="Products Listprices Items">
73 <separator colspan="4" string="Rules Test Match"/>
74 <field colspan="4" name="name" select="1"/>
75 <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
76 <field name="product_tmpl_id" select="1"/>
77 <field name="categ_id" select="1"/>
78 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
80 <field name="min_quantity"/>
81 <field name="sequence"/>
82 <separator colspan="4" string="Price Computation"/>
85 <field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
86 <group col="6" colspan="5">
87 <label string="New Price ="/>
88 <label string="Base Price"/>
89 <label string="* ( 1 + "/>
90 <field name="price_discount" nolabel="1"/>
91 <label string=" ) + "/>
92 <field name="price_surcharge" nolabel="1"/>
94 <field name="price_round" string="Rounding Method"/>
95 <field name="price_min_margin" string="Min. Margin"/>
96 <field name="price_max_margin" string="Max. Margin"/>
103 <record model="ir.ui.view" id="product_pricelist_view_search">
104 <field name="name">product.pricelist.search</field>
105 <field name="model">product.pricelist</field>
106 <field name="type">search</field>
107 <field name="arch" type="xml">
108 <search string="Products Price Search">
109 <field name="name" />
111 <field name="currency_id"/>
112 <field name="active" />
118 <record id="product_pricelist_view_tree" model="ir.ui.view">
119 <field name="name">product.pricelist.tree</field>
120 <field name="model">product.pricelist</field>
121 <field name="type">tree</field>
122 <field name="arch" type="xml">
123 <tree string="Products Price List">
126 <field name="currency_id"/>
127 <field name="active" />
131 <record id="product_pricelist_view" model="ir.ui.view">
132 <field name="name">product.pricelist.form</field>
133 <field name="model">product.pricelist</field>
134 <field name="type">form</field>
135 <field name="arch" type="xml">
136 <form string="Products Price List">
137 <field name="name" select="1"/>
138 <field name="active" select="1"/>
139 <field name="type" select="1"/>
140 <field name="currency_id" select="1"/>
141 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
142 <field colspan="4" name="version_id" nolabel="1">
143 <form string="Pricelist Version">
144 <field name="name" select="1"/>
145 <field name="active"/>
146 <field name="date_start" select="1"/>
147 <field name="date_end" select="1"/>
148 <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
150 <tree string="Pricelist Version">
152 <field name="active"/>
153 <field name="date_start"/>
154 <field name="date_end"/>
160 <record id="product_pricelist_action2" model="ir.actions.act_window">
161 <field name="name">Pricelists</field>
162 <field name="type">ir.actions.act_window</field>
163 <field name="res_model">product.pricelist</field>
164 <field name="view_type">form</field>
165 <field name="view_mode">tree,form</field>
166 <field name="search_view_id" ref="product_pricelist_view_search" />
167 <field name="help">A price list contains rules to be evaluated in order to compute the purchase or sales price for all the partners assigned to a price list. Price lists have several versions (2010, 2011, Promotion of February 2010, etc.) and each version has several rules. Example: the customer price of a product category will be based on the supplier price multiplied by 1.80.</field>
170 action="product_pricelist_action2" id="menu_product_pricelist_action2"
171 parent="product.menu_product_pricelist_main" sequence="1"/>
173 <record id="product_price_type_view" model="ir.ui.view">
174 <field name="name">product.price.type.form</field>
175 <field name="model">product.price.type</field>
176 <field name="type">form</field>
177 <field name="arch" type="xml">
178 <form string="Products Price Type">
179 <field name="name" select="1"/>
180 <field name="active" select="1"/>
181 <field name="field"/>
182 <field name="currency_id" select="1"/>
186 <record id="product_price_type_action" model="ir.actions.act_window">
187 <field name="name">Prices Types</field>
188 <field name="type">ir.actions.act_window</field>
189 <field name="res_model">product.price.type</field>
190 <field name="view_type">form</field>
191 <field name="view_mode">tree,form</field>
193 <record id="product_pricelist_type_view" model="ir.ui.view">
194 <field name="name">product.pricelist.type.form</field>
195 <field name="model">product.pricelist.type</field>
196 <field name="type">form</field>
197 <field name="arch" type="xml">
198 <form string="Pricelist Type">
199 <field name="name" select="1"/>
204 <record id="product_pricelist_type_action" model="ir.actions.act_window">
205 <field name="name">Pricelists Types</field>
206 <field name="type">ir.actions.act_window</field>
207 <field name="res_model">product.pricelist.type</field>
208 <field name="view_type">form</field>
209 <field name="view_mode">tree,form</field>
213 action="product_pricelist_type_action" id="menu_product_pricelist_type_action2"
214 parent="product.menu_product_pricelist_main" sequence="2"
215 groups="base.group_extended"/>