From 32e2ecea375a0ab1a4f68964961cddf67d6d37b1 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 30 Oct 2015 11:52:22 +0100 Subject: [PATCH 1/3] add product_search_supplier_code --- product_search_supplier_code/__init__.py | 22 ++++++++++++ product_search_supplier_code/__openerp__.py | 36 +++++++++++++++++++ product_search_supplier_code/product_view.xml | 17 +++++++++ 3 files changed, 75 insertions(+) create mode 100644 product_search_supplier_code/__init__.py create mode 100644 product_search_supplier_code/__openerp__.py create mode 100644 product_search_supplier_code/product_view.xml diff --git a/product_search_supplier_code/__init__.py b/product_search_supplier_code/__init__.py new file mode 100644 index 0000000..5151fe1 --- /dev/null +++ b/product_search_supplier_code/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Stock Display Destination Move module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Florian da Costa +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + diff --git a/product_search_supplier_code/__openerp__.py b/product_search_supplier_code/__openerp__.py new file mode 100644 index 0000000..3325208 --- /dev/null +++ b/product_search_supplier_code/__openerp__.py @@ -0,0 +1,36 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Stock Display Sale ID module for OpenERP +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Florian da Costa +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Product Search Supplier Code', + 'version': '0.1', + 'category': 'Inventory, Logistic, Storage', + 'license': 'AGPL-3', + 'summary': "Allow to search product by its suppliers'code", + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['product'], + 'data': ['product_view.xml'], + 'installable': True, + 'active': False, +} diff --git a/product_search_supplier_code/product_view.xml b/product_search_supplier_code/product_view.xml new file mode 100644 index 0000000..d7c04cb --- /dev/null +++ b/product_search_supplier_code/product_view.xml @@ -0,0 +1,17 @@ + + + + + + product.product + + + + + + + + + + From 83bca9318d23a6a54a5ac1e2b53005efecc9624e Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 30 Oct 2015 13:58:10 +0100 Subject: [PATCH 2/3] add french translation to product search supplier code --- product_search_supplier_code/i18n/fr (1).po | 21 +++++++++++++++++++++ product_search_supplier_code/i18n/fr.po | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 product_search_supplier_code/i18n/fr (1).po create mode 100644 product_search_supplier_code/i18n/fr.po diff --git a/product_search_supplier_code/i18n/fr (1).po b/product_search_supplier_code/i18n/fr (1).po new file mode 100644 index 0000000..8ef6e04 --- /dev/null +++ b/product_search_supplier_code/i18n/fr (1).po @@ -0,0 +1,21 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +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" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_search_supplier_code +#: view:product.product:0 +msgid "Supplier Default Code" +msgstr "Référence Fournisseur" + diff --git a/product_search_supplier_code/i18n/fr.po b/product_search_supplier_code/i18n/fr.po new file mode 100644 index 0000000..1646c7d --- /dev/null +++ b/product_search_supplier_code/i18n/fr.po @@ -0,0 +1,21 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# +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" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_search_supplier_code +#: view:product.product:0 +msgid "Supplier Default Code" +msgstr "Supplier Default Code" + From 9f331306af2e2d1a93eaaced12ed9a7d3eb4d0c3 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 4 Nov 2015 16:25:12 +0100 Subject: [PATCH 3/3] add possibility to search supplier code in stock.picking.in --- product_search_supplier_code/__openerp__.py | 7 +++++-- product_search_supplier_code/i18n/fr.po | 8 +++++--- product_search_supplier_code/picking_view.xml | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 product_search_supplier_code/picking_view.xml diff --git a/product_search_supplier_code/__openerp__.py b/product_search_supplier_code/__openerp__.py index 3325208..b444f0f 100644 --- a/product_search_supplier_code/__openerp__.py +++ b/product_search_supplier_code/__openerp__.py @@ -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, } diff --git a/product_search_supplier_code/i18n/fr.po b/product_search_supplier_code/i18n/fr.po index 1646c7d..5406b6d 100644 --- a/product_search_supplier_code/i18n/fr.po +++ b/product_search_supplier_code/i18n/fr.po @@ -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" diff --git a/product_search_supplier_code/picking_view.xml b/product_search_supplier_code/picking_view.xml new file mode 100644 index 0000000..bd85463 --- /dev/null +++ b/product_search_supplier_code/picking_view.xml @@ -0,0 +1,17 @@ + + + + + + stock.picking.in + + + + + + + + + +