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_id"/>
60 <field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
61 <field name="categ_id" select="1"/>
62 <field name="min_quantity"/>
68 <record id="product_pricelist_item_form_view" model="ir.ui.view">
69 <field name="name">product.pricelist.item.form</field>
70 <field name="model">product.pricelist.item</field>
71 <field name="type">form</field>
72 <field name="arch" type="xml">
73 <form string="Products Listprices Items">
74 <separator colspan="4" string="Rules Test Match"/>
75 <field colspan="4" name="name" select="1"/>
76 <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
77 <field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
78 <field name="categ_id" select="1"/>
79 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
81 <field name="min_quantity"/>
82 <field name="sequence"/>
83 <separator colspan="4" string="Price Computation"/>
86 <field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
87 <group col="6" colspan="5">
88 <label string="New Price ="/>
89 <label string="Base Price"/>
90 <label string="* ( 1 + "/>
91 <field name="price_discount" nolabel="1"/>
92 <label string=" ) + "/>
93 <field name="price_surcharge" nolabel="1"/>
95 <field name="price_round" string="Rounding Method"/>
96 <field name="price_min_margin" string="Min. Margin"/>
97 <field name="price_max_margin" string="Max. Margin"/>
104 <record model="ir.ui.view" id="product_pricelist_view_search">
105 <field name="name">product.pricelist.search</field>
106 <field name="model">product.pricelist</field>
107 <field name="type">search</field>
108 <field name="arch" type="xml">
109 <search string="Products Price Search">
110 <field name="name" />
112 <field name="currency_id"/>
113 <field name="active" />
119 <record id="product_pricelist_view_tree" model="ir.ui.view">
120 <field name="name">product.pricelist.tree</field>
121 <field name="model">product.pricelist</field>
122 <field name="type">tree</field>
123 <field name="arch" type="xml">
124 <tree string="Products Price List">
127 <field name="currency_id"/>
128 <field name="active" />
132 <record id="product_pricelist_view" model="ir.ui.view">
133 <field name="name">product.pricelist.form</field>
134 <field name="model">product.pricelist</field>
135 <field name="type">form</field>
136 <field name="arch" type="xml">
137 <form string="Products Price List">
138 <field name="name" select="1"/>
139 <field name="active" select="1"/>
140 <field name="type" select="1"/>
141 <field name="currency_id" select="1"/>
142 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
143 <field colspan="4" name="version_id" nolabel="1">
144 <form string="Pricelist Version">
145 <field name="name" select="1"/>
146 <field name="active"/>
147 <field name="date_start" select="1"/>
148 <field name="date_end" select="1"/>
149 <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
151 <tree string="Pricelist Version">
153 <field name="active"/>
154 <field name="date_start"/>
155 <field name="date_end"/>
161 <record id="product_pricelist_action2" model="ir.actions.act_window">
162 <field name="name">Pricelists</field>
163 <field name="type">ir.actions.act_window</field>
164 <field name="res_model">product.pricelist</field>
165 <field name="view_type">form</field>
166 <field name="view_mode">tree,form</field>
167 <field name="search_view_id" ref="product_pricelist_view_search" />
168 <field name="context">{"default_type":"sale", "search_default_type":"sale"}</field>
169 <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>
171 <record id="product_pricelist_action_for_purchase" model="ir.actions.act_window">
172 <field name="name">Pricelists</field>
173 <field name="type">ir.actions.act_window</field>
174 <field name="res_model">product.pricelist</field>
175 <field name="view_type">form</field>
176 <field name="view_mode">tree,form</field>
177 <field name="search_view_id" ref="product_pricelist_view_search" />
178 <field name="context">{"default_type":"purchase", "search_default_type":"purchase"}</field>
179 <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>
182 action="product_pricelist_action2" id="menu_product_pricelist_action2"
183 parent="product.menu_product_pricelist_main" sequence="1"/>
185 <record id="product_price_type_view" model="ir.ui.view">
186 <field name="name">product.price.type.form</field>
187 <field name="model">product.price.type</field>
188 <field name="type">form</field>
189 <field name="arch" type="xml">
190 <form string="Products Price Type">
191 <field name="name" select="1"/>
192 <field name="active" select="1"/>
193 <field name="field"/>
194 <field name="currency_id" select="1"/>
199 <record id="product_price_type_action" model="ir.actions.act_window">
200 <field name="name">Price Types</field>
201 <field name="type">ir.actions.act_window</field>
202 <field name="res_model">product.price.type</field>
203 <field name="view_type">form</field>
204 <field name="view_mode">tree,form</field>
208 action="product_price_type_action" id="menu_product_price_type"
209 parent="product.menu_product_pricelist_main" sequence="4"/>
211 <!-- Moved to extra module 'sale_pricelist_type_menu':
212 <record id="product_pricelist_type_view" model="ir.ui.view">
213 <field name="name">product.pricelist.type.form</field>
214 <field name="model">product.pricelist.type</field>
215 <field name="type">form</field>
216 <field name="arch" type="xml">
217 <form string="Pricelist Type">
218 <field name="name" select="1"/>
223 <record id="product_pricelist_type_action" model="ir.actions.act_window">
224 <field name="name">Pricelists Types</field>
225 <field name="type">ir.actions.act_window</field>
226 <field name="res_model">product.pricelist.type</field>
227 <field name="view_type">form</field>
228 <field name="view_mode">tree,form</field>
232 action="product_pricelist_type_action" id="menu_product_pricelist_type_action2"
233 parent="product.menu_product_pricelist_main" sequence="2"
234 groups="base.group_extended"/>-->