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"/>
7 <menuitem id="menu_product_pricelist_main" name="Pricelists"
8 parent="base.menu_base_config" groups="product.group_sale_pricelist" sequence="70"/>
10 <record id="product_pricelist_version_form_view" model="ir.ui.view">
11 <field name="name">product.pricelist.version.form</field>
12 <field name="model">product.pricelist.version</field>
13 <field name="arch" type="xml">
14 <form string="Pricelist Version" version="7.0">
17 <field name="active"/>
18 <field colspan="4" name="pricelist_id"/>
19 <field name="date_start"/>
20 <field name="date_end"/>
21 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
23 <field name="items_id"/>
27 <record id="product_pricelist_version_tree_view" model="ir.ui.view">
28 <field name="name">product.pricelist.version.tree</field>
29 <field name="model">product.pricelist.version</field>
30 <field name="arch" type="xml">
31 <tree string="Pricelist Version">
33 <field name="pricelist_id"/>
34 <field name="date_start"/>
35 <field name="date_end"/>
40 <record id="product_pricelist_action" model="ir.actions.act_window">
41 <field name="name">Pricelist Versions</field>
42 <field name="type">ir.actions.act_window</field>
43 <field name="res_model">product.pricelist.version</field>
44 <field name="view_type">form</field>
45 <field name="view_id" ref="product_pricelist_version_tree_view"/>
46 <field name="help" type="html">
47 <p class="oe_view_nocontent_create">
48 Click to add a pricelist version.
50 There can be more than one version of a pricelist, each of
51 these must be valid during a certain period of time. Some
52 examples of versions: Main Prices, 2010, 2011, Summer Sales,
58 action="product_pricelist_action" id="menu_product_pricelist_action"
59 parent="product.menu_product_pricelist_main" sequence="2"/>
61 <record id="product_pricelist_item_tree_view" model="ir.ui.view">
62 <field name="name">product.pricelist.item.tree</field>
63 <field name="model">product.pricelist.item</field>
64 <field name="arch" type="xml">
65 <tree string="Products Listprices Items">
66 <field name="sequence"/>
67 <field colspan="4" name="name"/>
68 <field name="product_id"/>
69 <field name="product_tmpl_id" groups="product.group_product_variant"/>
70 <field name="categ_id"/>
71 <field name="min_quantity"/>
77 <record id="product_pricelist_item_form_view" model="ir.ui.view">
78 <field name="name">product.pricelist.item.form</field>
79 <field name="model">product.pricelist.item</field>
80 <field name="arch" type="xml">
81 <form string="Products Listprices Items" version="7.0">
82 <label for="name" class="oe_edit_only"/>
83 <h1><field colspan="4" name="name"/></h1>
86 <field name="product_id" on_change="product_id_change(product_id)"/>
87 <field name="product_tmpl_id" groups="product.group_product_variant"/>
88 <field name="categ_id"/>
89 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
90 <field name="min_quantity"/>
91 <field name="sequence"/>
93 <group col="4" string="Price Computation">
95 <field name="base_pricelist_id" attrs="{'invisible':[('base', '!=', -1)],'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
97 <group col="6" colspan="5">
98 <label string="New Price ="/>
99 <label string="Base Price"/>
100 <label string="* ( 1 + "/>
101 <field name="price_discount" nolabel="1"/>
102 <label string=" ) + "/>
103 <field name="price_surcharge" nolabel="1"/>
105 <field name="price_round" string="Rounding Method"/>
106 <field name="price_min_margin" string="Min. Margin"/>
107 <field name="price_max_margin" string="Max. Margin"/>
114 <record model="ir.ui.view" id="product_pricelist_view_search">
115 <field name="name">product.pricelist.search</field>
116 <field name="model">product.pricelist</field>
117 <field name="arch" type="xml">
118 <search string="Products Price Search">
119 <field name="name" string="Products Price"/>
121 <field name="active" />
122 <field name="currency_id" groups="base.group_multi_currency"/>
128 <record id="product_pricelist_view_tree" model="ir.ui.view">
129 <field name="name">product.pricelist.tree</field>
130 <field name="model">product.pricelist</field>
131 <field name="arch" type="xml">
132 <tree string="Products Price List">
135 <field name="currency_id" groups="base.group_multi_currency"/>
136 <field name="active" />
140 <record id="product_pricelist_view" model="ir.ui.view">
141 <field name="name">product.pricelist.form</field>
142 <field name="model">product.pricelist</field>
143 <field name="arch" type="xml">
144 <form string="Products Price List" version="7.0">
145 <label for="name" class="oe_edit_only"/>
150 <field name="active"/>
152 <field name="currency_id" groups="base.group_multi_currency"/>
153 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
155 <field name="version_id" context="{'type':type}">
156 <form string="Pricelist Version" version="7.0">
159 <field name="active"/>
160 <field name="date_start"/>
161 <field name="date_end"/>
163 <field name="items_id" context="{'type':type}"/>
165 <tree string="Pricelist Version">
167 <field name="active"/>
168 <field name="date_start"/>
169 <field name="date_end"/>
175 <record id="product_pricelist_action2" model="ir.actions.act_window">
176 <field name="name">Pricelists</field>
177 <field name="type">ir.actions.act_window</field>
178 <field name="res_model">product.pricelist</field>
179 <field name="view_type">form</field>
180 <field name="view_mode">tree,form</field>
181 <field name="search_view_id" ref="product_pricelist_view_search" />
182 <field name="context">{"default_type":"sale", "search_default_type":"sale"}</field>
183 <field name="help" type="html">
184 <p class="oe_view_nocontent_create">
185 Click to create a pricelist.
187 A price list contains rules to be evaluated in order to compute
188 the sales price of the products.
190 Price lists may have several versions (2010, 2011, Promotion of
191 February 2010, etc.) and each version may have several rules.
192 (e.g. the customer price of a product category will be based on
193 the supplier price multiplied by 1.80).
197 <record id="product_pricelist_action_for_purchase" model="ir.actions.act_window">
198 <field name="name">Pricelists</field>
199 <field name="type">ir.actions.act_window</field>
200 <field name="res_model">product.pricelist</field>
201 <field name="view_type">form</field>
202 <field name="view_mode">tree,form</field>
203 <field name="search_view_id" ref="product_pricelist_view_search" />
204 <field name="context">{"default_type":"purchase", "search_default_type":"purchase"}</field>
205 <field name="help" type="html">
206 <p class="oe_view_nocontent_create">
207 Click to create a pricelist.
209 A price list contains rules to be evaluated in order to compute
210 the purchase price. The default price list has only one rule; use
211 the cost price defined on the product form, so that you do not have to
212 worry about supplier pricelists if you have very simple needs.
214 But you can also import complex price lists form your supplier
215 that may depends on the quantities ordered or the current
221 action="product_pricelist_action2" id="menu_product_pricelist_action2"
222 parent="product.menu_product_pricelist_main" sequence="1" groups="product.group_sale_pricelist"/>
224 <record id="product_price_type_view" model="ir.ui.view">
225 <field name="name">product.price.type.form</field>
226 <field name="model">product.price.type</field>
227 <field name="arch" type="xml">
228 <form string="Products Price Type" version="7.0">
231 <field name="active"/>
232 <field name="field"/>
233 <field name="currency_id" groups="base.group_multi_currency"/>
239 <record id="product_price_type_action" model="ir.actions.act_window">
240 <field name="name">Price Types</field>
241 <field name="type">ir.actions.act_window</field>
242 <field name="res_model">product.price.type</field>
243 <field name="view_type">form</field>
244 <field name="view_mode">tree,form</field>
248 action="product_price_type_action" id="menu_product_price_type"
249 parent="product.menu_product_pricelist_main" sequence="4" groups="base.group_no_one"/>