add possibility to search supplier code in stock.picking.in

This commit is contained in:
Florian da Costa
2015-11-04 16:25:12 +01:00
parent 83bca9318d
commit 9f331306af
3 changed files with 27 additions and 5 deletions

View File

@@ -29,8 +29,11 @@
'summary': "Allow to search product by its suppliers'code",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['product'],
'data': ['product_view.xml'],
'depends': ['product', 'stock'],
'data': [
'product_view.xml',
'picking_view.xml',
],
'installable': True,
'active': False,
}

View File

@@ -1,12 +1,13 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * product_search_supplier_code
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-30 12:56+0000\n"
"PO-Revision-Date: 2015-10-30 12:56+0000\n"
"POT-Creation-Date: 2015-11-04 15:18+0000\n"
"PO-Revision-Date: 2015-11-04 15:18+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -16,6 +17,7 @@ msgstr ""
#. module: product_search_supplier_code
#: view:product.product:0
#: view:stock.picking.in:0
msgid "Supplier Default Code"
msgstr "Supplier Default Code"
msgstr "Code Fournisseur"

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="picking_in_supplier_code_search" model="ir.ui.view">
<field name="model">stock.picking.in</field>
<field name="inherit_id" ref="stock.view_picking_in_search"/>
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="move_lines" string="Supplier Default Code"
filter_domain="[('move_lines.product_id.seller_ids.product_code','ilike',self)]"/>
</field>
</field>
</record>
</data>
</openerp>