diff --git a/stock_move_partner_info/README.rst b/stock_move_partner_info/README.rst new file mode 100644 index 000000000..b2da2be2e --- /dev/null +++ b/stock_move_partner_info/README.rst @@ -0,0 +1,15 @@ +Stock move partner info +======================= + +This module displays the partner of the picking, in stock movements. + +Also allows grouping by this field + +Credits +======= + +Contributors +------------ +* Pedro M. Baeza +* Alfredo de la Fuente diff --git a/stock_move_partner_info/__init__.py b/stock_move_partner_info/__init__.py new file mode 100644 index 000000000..2bbe2de99 --- /dev/null +++ b/stock_move_partner_info/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## +from . import models diff --git a/stock_move_partner_info/__openerp__.py b/stock_move_partner_info/__openerp__.py new file mode 100644 index 000000000..a67349240 --- /dev/null +++ b/stock_move_partner_info/__openerp__.py @@ -0,0 +1,35 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (c) +# 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com) +# 2015 AvanzOsc (http://www.avanzosc.es) +# +# 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": "Stock Move Partner Info", + "version": "1.0", + "author": "OdooMRP team", + "website": "http://www.odoomrp.com", + "category": "Warehouse Management", + "depends": [ + "stock", + ], + "data": [ + "views/stock_move_view.xml", + ], + "installable": True, +} diff --git a/stock_move_partner_info/i18n/es.po b/stock_move_partner_info/i18n/es.po new file mode 100644 index 000000000..1bdbbe714 --- /dev/null +++ b/stock_move_partner_info/i18n/es.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_move_partner_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-02-13 10:53+0000\n" +"PO-Revision-Date: 2015-02-13 11:54+0100\n" +"Last-Translator: Alfredo \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" + +#. module: stock_move_partner_info +#: view:stock.move:stock_move_partner_info.view_move_search_inh_pickingpartner +msgid "Picking Partner" +msgstr "Cliente/Proveedor albarán" + +#. module: stock_move_partner_info +#: view:stock.move:stock_move_partner_info.view_move_search_inh_pickingpartner +msgid "Product" +msgstr "Producto" + +#. module: stock_move_partner_info +#: model:ir.model,name:stock_move_partner_info.model_stock_move +msgid "Stock Move" +msgstr "Movimiento de existencias" + diff --git a/stock_move_partner_info/i18n/stock_move_partner_info.pot b/stock_move_partner_info/i18n/stock_move_partner_info.pot new file mode 100644 index 000000000..7606cf436 --- /dev/null +++ b/stock_move_partner_info/i18n/stock_move_partner_info.pot @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_move_partner_info +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-02-13 10:52+0000\n" +"PO-Revision-Date: 2015-02-13 10:52+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: stock_move_partner_info +#: view:stock.move:stock_move_partner_info.view_move_search_inh_pickingpartner +msgid "Picking Partner" +msgstr "" + +#. module: stock_move_partner_info +#: view:stock.move:stock_move_partner_info.view_move_search_inh_pickingpartner +msgid "Product" +msgstr "" + +#. module: stock_move_partner_info +#: model:ir.model,name:stock_move_partner_info.model_stock_move +msgid "Stock Move" +msgstr "" + diff --git a/stock_move_partner_info/models/__init__.py b/stock_move_partner_info/models/__init__.py new file mode 100644 index 000000000..be49522cc --- /dev/null +++ b/stock_move_partner_info/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## +from . import stock_move diff --git a/stock_move_partner_info/models/stock_move.py b/stock_move_partner_info/models/stock_move.py new file mode 100644 index 000000000..47716228c --- /dev/null +++ b/stock_move_partner_info/models/stock_move.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## +from openerp import models, fields + + +class StockMove(models.Model): + _inherit = "stock.move" + + picking_partner = fields.Many2one( + 'res.partner', string='Picking Partner', store=True, + related='picking_id.partner_id', help='Partner of the picking') diff --git a/stock_move_partner_info/views/stock_move_view.xml b/stock_move_partner_info/views/stock_move_view.xml new file mode 100644 index 000000000..a8da94905 --- /dev/null +++ b/stock_move_partner_info/views/stock_move_view.xml @@ -0,0 +1,45 @@ + + + + + stock.move.tree.inh.pickingpartner + stock.move + + + + + + + + + view_move_tree.inh.pickingpartner + stock.move + + + + + + + + + view.move.picking.tree.inh.pickingpartner + stock.move + + + + + + + + + view.move.search.inh.pickingpartner + stock.move + + + + + + + + +