← Back to team overview

openerp-dev-web team mailing list archive

lp:~openerp-dev/openobject-addons/trunk-usability-product-search-view-pos-tta into lp:~openerp-dev/openobject-addons/trunk-usability

 

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:
  Amit (Open ERP) (apa-tiny)
  Raphael Collet (OpenERP) (rco-openerp)
  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/62420

Hello,


I have removed the prefix from the action.

Now working as expected.



Thanks,
Tejas- tta@xxxxxxxxxxx
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-usability-product-search-view-pos-tta/+merge/62420
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 06:39:31 +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"/>

=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml	2011-05-18 13:07:27 +0000
+++ sale/sale_view.xml	2011-05-26 06:39:31 +0000
@@ -7,7 +7,17 @@
         <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"/>
+         <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_product_tree_view"/>  
+            <field name="search_view_id" ref="product.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 action="product_normal_action_sell" id="product.menu_products" parent="base.menu_product" sequence="1"/>          
 
         <record id="view_shop_form" model="ir.ui.view">
             <field name="name">sale.shop</field>


Follow ups