[IMP] im: implemented group chat
[odoo/odoo.git] / addons / product / pricelist_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
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"/>
9
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">
15                     <group col="4">
16                         <field name="name"/>
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"/>
22                     </group>
23                     <field name="items_id"/>
24                 </form>
25             </field>
26         </record>
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">
32                     <field name="name"/>
33                     <field name="pricelist_id"/>
34                     <field name="date_start"/>
35                     <field name="date_end"/>
36                 </tree>
37             </field>
38         </record>
39
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.
49               </p><p>
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,
53                 etc.
54               </p>
55             </field>
56         </record>
57         <menuitem
58             action="product_pricelist_action" id="menu_product_pricelist_action"
59             parent="product.menu_product_pricelist_main" sequence="2"/>
60
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"/>
72                     <field name="base"/>
73                 </tree>
74             </field>
75         </record>
76
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>
84
85                     <group col="4">
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"/>
92                     </group>
93                     <group col="4" string="Price Computation">
94                         <field name="base"/>
95                         <field name="base_pricelist_id" attrs="{'invisible':[('base', '!=', -1)],'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
96                     </group>
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"/>
104                         <newline/>
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"/>
108                     </group>
109
110                 </form>
111             </field>
112         </record>
113
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"/>
120                     <field name="type"/>
121                     <field name="active" />
122                     <field name="currency_id" groups="base.group_multi_currency"/>
123                 </search>
124             </field>
125         </record>
126
127
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">
133                     <field name="name"/>
134                     <field name="type"/>
135                     <field name="currency_id" groups="base.group_multi_currency"/>
136                     <field name="active" />
137                 </tree>
138             </field>
139         </record>
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"/>
146                     <h1>
147                         <field name="name"/>
148                     </h1>
149                     <group col="4">
150                         <field name="active"/>
151                         <field name="type"/>
152                         <field name="currency_id" groups="base.group_multi_currency"/>
153                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
154                     </group>
155                     <field name="version_id" context="{'type':type}">
156                         <form string="Pricelist Version" version="7.0">
157                             <group col="4">
158                                 <field name="name"/>
159                                 <field name="active"/>
160                                 <field name="date_start"/>
161                                 <field name="date_end"/>
162                             </group>
163                             <field name="items_id" context="{'type':type}"/>
164                         </form>
165                         <tree string="Pricelist Version">
166                             <field name="name"/>
167                             <field name="active"/>
168                             <field name="date_start"/>
169                             <field name="date_end"/>
170                         </tree>
171                     </field>
172                 </form>
173             </field>
174         </record>
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.
186               </p><p>
187                 A price list contains rules to be evaluated in order to compute
188                 the sales price of the products.
189               </p><p>
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).
194               </p>
195             </field>
196         </record>
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.
208               </p><p>
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.
213               </p><p>
214                 But you can also import complex price lists form your supplier
215                 that may depends on the quantities ordered or the current
216                 promotions.
217               </p>
218             </field>
219         </record>
220         <menuitem
221             action="product_pricelist_action2" id="menu_product_pricelist_action2"
222             parent="product.menu_product_pricelist_main" sequence="1" groups="product.group_sale_pricelist"/>
223
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">
229                     <group col="4">
230                         <field name="name"/>
231                         <field name="active"/>
232                         <field name="field"/>
233                         <field name="currency_id" groups="base.group_multi_currency"/>
234                     </group>
235                 </form>
236             </field>
237         </record>
238
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>
245         </record>
246
247         <menuitem
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"/>
250
251     </data>
252 </openerp>