Value of note field is not passing from stock move to invoice
[odoo/odoo.git] / addons / product / pricelist_view.xml
index 544ebfa..0988ac8 100644 (file)
@@ -1,9 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
     <data>
-        
-        <menuitem groups="base.group_extended" id="menu_product_pricelist_main" name="Pricelists" parent="product.menu_main_product" sequence="2"/>
-        
+
+        <menuitem id="base.menu_sale_config_sales" name="Sales"
+            parent="base.menu_base_config" sequence="0" groups="base.group_extended"/>
+        <menuitem groups="base.group_extended" id="menu_product_pricelist_main" name="Pricelists" parent="base.menu_base_config" sequence="50"/>
+
         <record id="product_pricelist_version_form_view" model="ir.ui.view">
             <field name="name">product.pricelist.version.form</field>
             <field name="model">product.pricelist.version</field>
             <field name="arch" type="xml">
                 <form string="Pricelist Version">
                     <field name="name" select="1"/>
-                    <field name="active" select="2"/>
+                    <field name="active"/>
                     <field colspan="4" name="pricelist_id" select="1"/>
                     <field name="date_start" select="1"/>
                     <field name="date_end" select="1"/>
+                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                     <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
                 </form>
             </field>
                 </tree>
             </field>
         </record>
-        
+
         <record id="product_pricelist_action" model="ir.actions.act_window">
             <field name="name">Pricelist Versions</field>
             <field name="type">ir.actions.act_window</field>
             <field name="res_model">product.pricelist.version</field>
             <field name="view_type">form</field>
             <field name="view_id" ref="product_pricelist_version_tree_view"/>
+            <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>
         </record>
-        <menuitem action="product_pricelist_action" id="menu_product_pricelist_action" parent="product.menu_product_pricelist_main" sequence="2"/>
-        
+        <menuitem
+            action="product_pricelist_action" id="menu_product_pricelist_action"
+            parent="product.menu_product_pricelist_main" sequence="2"/>
+
         <record id="product_pricelist_item_tree_view" model="ir.ui.view">
             <field name="name">product.pricelist.item.tree</field>
             <field name="model">product.pricelist.item</field>
@@ -57,7 +63,7 @@
                 </tree>
             </field>
         </record>
-        
+
         <record id="product_pricelist_item_form_view" model="ir.ui.view">
             <field name="name">product.pricelist.item.form</field>
             <field name="model">product.pricelist.item</field>
                 <form string="Products Listprices Items">
                     <separator colspan="4" string="Rules Test Match"/>
                     <field colspan="4" name="name" select="1"/>
-                    <field name="product_id" on_change="product_id_change(product_tmpl_id)" select="1"/>
+                    <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
                     <field name="product_tmpl_id" select="1"/>
                     <field name="categ_id" select="1"/>
+                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                     <newline/>
                     <field name="min_quantity"/>
                     <field name="sequence"/>
                     <separator colspan="4" string="Price Computation"/>
-                    
+
                     <field name="base"/>
-                    <field name="base_pricelist_id"/>
+                    <field name="base_pricelist_id" attrs="{'required': [('base','=', -1)], 'readonly': [('base','!=', -1)]}"/>
                     <group col="6" colspan="5">
                         <label string="New Price ="/>
                         <label string="Base Price"/>
                         <field name="price_min_margin" string="Min. Margin"/>
                         <field name="price_max_margin" string="Max. Margin"/>
                     </group>
-                    
+
                 </form>
             </field>
         </record>
-        
+
+        <record model="ir.ui.view" id="product_pricelist_view_search">
+            <field name="name">product.pricelist.search</field>
+            <field name="model">product.pricelist</field>
+            <field name="type">search</field>
+            <field name="arch" type="xml">
+                <search string="Products Price Search">
+                    <field name="name" />
+                    <field name="type"/>
+                    <field name="currency_id"/>
+                    <field name="active" />
+                </search>
+            </field>
+        </record>
+
+
         <record id="product_pricelist_view_tree" model="ir.ui.view">
             <field name="name">product.pricelist.tree</field>
             <field name="model">product.pricelist</field>
                     <field name="name"/>
                     <field name="type"/>
                     <field name="currency_id"/>
+                    <field name="active" />
                 </tree>
             </field>
         </record>
                     <field name="active" select="1"/>
                     <field name="type" select="1"/>
                     <field name="currency_id" select="1"/>
+                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                     <field colspan="4" name="version_id" nolabel="1">
                         <form string="Pricelist Version">
                             <field name="name" select="1"/>
-                            <field name="active" select="2"/>
+                            <field name="active"/>
                             <field name="date_start" select="1"/>
                             <field name="date_end" select="1"/>
                             <field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
             <field name="res_model">product.pricelist</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
+            <field name="search_view_id" ref="product_pricelist_view_search" />
+            <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>
         </record>
-        <menuitem action="product_pricelist_action2" id="menu_product_pricelist_action2" parent="product.menu_product_pricelist_main" sequence="1"/>
-        
+        <menuitem
+            action="product_pricelist_action2" id="menu_product_pricelist_action2"
+            parent="product.menu_product_pricelist_main" sequence="1"/>
+
         <record id="product_price_type_view" model="ir.ui.view">
             <field name="name">product.price.type.form</field>
             <field name="model">product.price.type</field>
                 </form>
             </field>
         </record>
+        
         <record id="product_price_type_action" model="ir.actions.act_window">
-            <field name="name">Prices Types</field>
+            <field name="name">Price Types</field>
             <field name="type">ir.actions.act_window</field>
             <field name="res_model">product.price.type</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
         </record>
-        <menuitem name="Prices Computations" id="menu_price" parent="product.menu_config_product"/>
-        <menuitem action="product_price_type_action" groups="base.group_extended" id="menu_product_price_type_action" parent="menu_price"/>
         
+        <menuitem
+            action="product_price_type_action" id="menu_product_price_type"
+            parent="product.menu_product_pricelist_main" sequence="4"/>
+            
         <record id="product_pricelist_type_view" model="ir.ui.view">
             <field name="name">product.pricelist.type.form</field>
             <field name="model">product.pricelist.type</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
         </record>
-        <menuitem action="product_pricelist_type_action" groups="base.group_extended" id="menu_product_pricelist_type_action" parent="menu_price"/>
-        
+
+        <menuitem
+            action="product_pricelist_type_action" id="menu_product_pricelist_type_action2"
+            parent="product.menu_product_pricelist_main" sequence="2"
+            groups="base.group_extended"/>
+
     </data>
 </openerp>