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="type">form</field>
14 <field name="arch" type="xml">
15 <form string="Pricelist Version">
16 <field name="name" select="1"/>
17 <field name="active"/>
18 <field colspan="4" name="pricelist_id" select="1"/>
19 <field name="date_start" select="1"/>
20 <field name="date_end" select="1"/>
21 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
22 <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
26 <record id="product_pricelist_version_tree_view" model="ir.ui.view">
27 <field name="name">product.pricelist.version.tree</field>
28 <field name="model">product.pricelist.version</field>
29 <field name="type">tree</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">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>
49 action="product_pricelist_action" id="menu_product_pricelist_action"
50 parent="product.menu_product_pricelist_main" sequence="2"/>
52 <record id="product_pricelist_item_tree_view" model="ir.ui.view">
53 <field name="name">product.pricelist.item.tree</field>
54 <field name="model">product.pricelist.item</field>
55 <field name="type">tree</field>
56 <field name="arch" type="xml">
57 <tree string="Products Listprices Items">
58 <field name="sequence"/>
59 <field colspan="4" name="name" select="1"/>
60 <field name="product_id"/>
61 <field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
62 <field name="categ_id" select="1"/>
63 <field name="min_quantity"/>
69 <record id="product_pricelist_item_form_view" model="ir.ui.view">
70 <field name="name">product.pricelist.item.form</field>
71 <field name="model">product.pricelist.item</field>
72 <field name="type">form</field>
73 <field name="arch" type="xml">
74 <form string="Products Listprices Items">
75 <separator colspan="4" string="Rules Test Match"/>
76 <field colspan="4" name="name" select="1"/>
77 <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
78 <field name="product_tmpl_id" select="1" groups="product.group_product_variant"/>
79 <field name="categ_id" select="1"/>
80 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
82 <field name="min_quantity"/>
83 <field name="sequence"/>
84 <separator colspan="4" string="Price Computation"/>
87 <field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
88 <group col="6" colspan="5">
89 <label string="New Price ="/>
90 <label string="Base Price"/>
91 <label string="* ( 1 + "/>
92 <field name="price_discount" nolabel="1"/>
93 <label string=" ) + "/>
94 <field name="price_surcharge" nolabel="1"/>
96 <field name="price_round" string="Rounding Method"/>
97 <field name="price_min_margin" string="Min. Margin"/>
98 <field name="price_max_margin" string="Max. Margin"/>
105 <record model="ir.ui.view" id="product_pricelist_view_search">
106 <field name="name">product.pricelist.search</field>
107 <field name="model">product.pricelist</field>
108 <field name="type">search</field>
109 <field name="arch" type="xml">
110 <search string="Products Price Search">
111 <field name="name" />
113 <field name="currency_id"/>
114 <field name="active" />
120 <record id="product_pricelist_view_tree" model="ir.ui.view">
121 <field name="name">product.pricelist.tree</field>
122 <field name="model">product.pricelist</field>
123 <field name="type">tree</field>
124 <field name="arch" type="xml">
125 <tree string="Products Price List">
128 <field name="currency_id"/>
129 <field name="active" />
133 <record id="product_pricelist_view" model="ir.ui.view">
134 <field name="name">product.pricelist.form</field>
135 <field name="model">product.pricelist</field>
136 <field name="type">form</field>
137 <field name="arch" type="xml">
138 <form string="Products Price List">
139 <field name="name" select="1"/>
140 <field name="active" select="1"/>
141 <field name="type" select="1"/>
142 <field name="currency_id" select="1"/>
143 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
144 <field colspan="4" name="version_id" nolabel="1">
145 <form string="Pricelist Version">
146 <field name="name" select="1"/>
147 <field name="active"/>
148 <field name="date_start" select="1"/>
149 <field name="date_end" select="1"/>
150 <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
152 <tree string="Pricelist Version">
154 <field name="active"/>
155 <field name="date_start"/>
156 <field name="date_end"/>
162 <record id="product_pricelist_action2" model="ir.actions.act_window">
163 <field name="name">Pricelists</field>
164 <field name="type">ir.actions.act_window</field>
165 <field name="res_model">product.pricelist</field>
166 <field name="view_type">form</field>
167 <field name="view_mode">tree,form</field>
168 <field name="search_view_id" ref="product_pricelist_view_search" />
169 <field name="context">{"default_type":"sale", "search_default_type":"sale"}</field>
170 <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>
172 <record id="product_pricelist_action_for_purchase" model="ir.actions.act_window">
173 <field name="name">Pricelists</field>
174 <field name="type">ir.actions.act_window</field>
175 <field name="res_model">product.pricelist</field>
176 <field name="view_type">form</field>
177 <field name="view_mode">tree,form</field>
178 <field name="search_view_id" ref="product_pricelist_view_search" />
179 <field name="context">{"default_type":"purchase", "search_default_type":"purchase"}</field>
180 <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>
183 action="product_pricelist_action2" id="menu_product_pricelist_action2"
184 parent="base.menu_base_config" sequence="20" groups="product.group_sale_pricelist"/>
186 <record id="product_price_type_view" model="ir.ui.view">
187 <field name="name">product.price.type.form</field>
188 <field name="model">product.price.type</field>
189 <field name="type">form</field>
190 <field name="arch" type="xml">
191 <form string="Products Price Type">
192 <field name="name" select="1"/>
193 <field name="active" select="1"/>
194 <field name="field"/>
195 <field name="currency_id" select="1"/>
200 <record id="product_price_type_action" model="ir.actions.act_window">
201 <field name="name">Price Types</field>
202 <field name="type">ir.actions.act_window</field>
203 <field name="res_model">product.price.type</field>
204 <field name="view_type">form</field>
205 <field name="view_mode">tree,form</field>
209 action="product_price_type_action" id="menu_product_price_type"
210 parent="product.menu_product_pricelist_main" sequence="4" groups="base.group_no_one"/>
212 <!-- Moved to extra module 'sale_pricelist_type_menu':
213 <record id="product_pricelist_type_view" model="ir.ui.view">
214 <field name="name">product.pricelist.type.form</field>
215 <field name="model">product.pricelist.type</field>
216 <field name="type">form</field>
217 <field name="arch" type="xml">
218 <form string="Pricelist Type">
219 <field name="name" select="1"/>
224 <record id="product_pricelist_type_action" model="ir.actions.act_window">
225 <field name="name">Pricelists Types</field>
226 <field name="type">ir.actions.act_window</field>
227 <field name="res_model">product.pricelist.type</field>
228 <field name="view_type">form</field>
229 <field name="view_mode">tree,form</field>
233 action="product_pricelist_type_action" id="menu_product_pricelist_type_action2"
234 parent="product.menu_product_pricelist_main" sequence="2"/>-->