Tejaskumar Tank (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-usability-product-search-view-pos-tta 
into lp:~openerp-dev/openobject-addons/trunk-usability.

Requested reviews:
  Raphael Collet (OpenERP) (rco-openerp)
  Amit (Open ERP) (apa-tiny)
  Tejaskumar Tank (OpenERP) (tta-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-usability-product-search-view-pos-tta/+merge/62433

Hello,

All new proposed changed are applied.


Thanks,
Tejas- [email protected]
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-usability-product-search-view-pos-tta/+merge/62433
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-usability.
=== modified file 'product/product_view.xml'
--- product/product_view.xml	2011-05-02 18:46:43 +0000
+++ product/product_view.xml	2011-05-26 09:05:20 +0000
@@ -12,7 +12,7 @@
                    <filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
                    <filter string="Stockable" icon="terp-accessories-archiver" domain="['|',('type','=','product'),('type','=','consu')]"/>
                    <separator orientation="vertical"/>
-                   <filter string="To Sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
+                   <filter string="To Sell" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
                    <filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]" />
                    <separator orientation="vertical"/>
                    <field name="default_code"/>
@@ -195,9 +195,19 @@
             <field name="search_view_id" ref="product_search_form_view"/>
             <field name="help">You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
         </record>
+        <record id="product_normal_action_sell" model="ir.actions.act_window">
+            <field name="name">Products</field>
+            <field name="type">ir.actions.act_window</field>
+            <field name="res_model">product.product</field>
+            <field name="view_type">form</field>
+            <field name="context">{"search_default_filter_to_sell":1}</field>
+            <field name="view_id" ref="product_product_tree_view"/>  
+            <field name="search_view_id" ref="product_search_form_view"/>            
+            <field name="help">You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
+        </record>
 
         <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>
-        <menuitem action="product.product_normal_action" id="product.menu_products" parent="base.menu_product" sequence="1"/>
+        <menuitem action="product.product_normal_action_sell" id="product.menu_products" parent="base.menu_product" sequence="1"/>
 
         <record id="product_normal_action_puchased" model="ir.actions.act_window">
             <field name="name">Products</field>

=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml	2011-05-18 13:07:27 +0000
+++ sale/sale_view.xml	2011-05-26 09:05:20 +0000
@@ -6,8 +6,7 @@
 
         <menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1"/>
 
-        <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>
-        <menuitem action="product.product_normal_action" id="product.menu_products" parent="base.menu_product" sequence="1"/>
+        <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>         
 
         <record id="view_shop_form" model="ir.ui.view">
             <field name="name">sale.shop</field>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to