← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~akretion-team/ocb-addons/trunk-lp1292587 into lp:ocb-addons

 

Raphaël Valyi - http://www.akretion.com has proposed merging lp:~akretion-team/ocb-addons/trunk-lp1292587 into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1292587 in OpenERP Addons: "[7.0][trunk][product_manufacturer] cannot easily search product by manufacturer"
  https://bugs.launchpad.net/openobject-addons/+bug/1292587

For more details, see:
https://code.launchpad.net/~akretion-team/ocb-addons/trunk-lp1292587/+merge/211095

allows to search product by manufacturer and manufacturer reference
-- 
https://code.launchpad.net/~akretion-team/ocb-addons/trunk-lp1292587/+merge/211095
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~akretion-team/ocb-addons/trunk-lp1292587 into lp:ocb-addons.
=== modified file 'product_manufacturer/product_manufacturer_view.xml'
--- product_manufacturer/product_manufacturer_view.xml	2013-08-23 09:22:31 +0000
+++ product_manufacturer/product_manufacturer_view.xml	2014-03-14 16:58:46 +0000
@@ -47,6 +47,16 @@
                 </form>
             </field>
         </record>
+        <record id="product_manufacturer_search_form_view" model="ir.ui.view">
+            <field name="name">product.manufacturer.search.form</field>
+            <field name="model">product.product</field>
+            <field name="inherit_id" ref="product.product_search_form_view"/>
+            <field name="arch" type="xml">
+                <field name="name" position="after">
+                    <field name="manufacturer" string="Manufacturer" filter_domain="['|', ('manufacturer', 'ilike', self), ('manufacturer_pname', 'ilike', self)]"/>
+                </field>
+            </field>
+        </record>
 
     </data>
 </openerp>


Follow ups