mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX stock_move_partner_info]
This commit is contained in:
15
stock_move_partner_info/README.rst
Normal file
15
stock_move_partner_info/README.rst
Normal file
@@ -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 <pedro.baeza@serviciosbaeza.com
|
||||
* Ana Juaristi <ajuaristo@gmail.com>
|
||||
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
|
||||
5
stock_move_partner_info/__init__.py
Normal file
5
stock_move_partner_info/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
# For copyright and license notices, see __openerp__.py file in root directory
|
||||
##############################################################################
|
||||
from . import models
|
||||
35
stock_move_partner_info/__openerp__.py
Normal file
35
stock_move_partner_info/__openerp__.py
Normal file
@@ -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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
{
|
||||
"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,
|
||||
}
|
||||
32
stock_move_partner_info/i18n/es.po
Normal file
32
stock_move_partner_info/i18n/es.po
Normal file
@@ -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 <alfredodelafuente@avanzosc.com>\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"
|
||||
|
||||
32
stock_move_partner_info/i18n/stock_move_partner_info.pot
Normal file
32
stock_move_partner_info/i18n/stock_move_partner_info.pot
Normal file
@@ -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 ""
|
||||
|
||||
5
stock_move_partner_info/models/__init__.py
Normal file
5
stock_move_partner_info/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
# For copyright and license notices, see __openerp__.py file in root directory
|
||||
##############################################################################
|
||||
from . import stock_move
|
||||
13
stock_move_partner_info/models/stock_move.py
Normal file
13
stock_move_partner_info/models/stock_move.py
Normal file
@@ -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')
|
||||
45
stock_move_partner_info/views/stock_move_view.xml
Normal file
45
stock_move_partner_info/views/stock_move_view.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="stock_move_tree_inh_pickingpartner" model="ir.ui.view">
|
||||
<field name="name">stock.move.tree.inh.pickingpartner</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.stock_move_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="picking_id" position="after">
|
||||
<field name="picking_partner" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_move_tree_inh_pickingpartner" model="ir.ui.view">
|
||||
<field name="name">view_move_tree.inh.pickingpartner</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="picking_id" position="after">
|
||||
<field name="picking_partner" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_move_picking_tree_inh_pickingpartner" model="ir.ui.view">
|
||||
<field name="name">view.move.picking.tree.inh.pickingpartner</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_picking_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="picking_id" position="after">
|
||||
<field name="picking_partner" invisible="1"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_move_search_inh_pickingpartner" model="ir.ui.view">
|
||||
<field name="name">view.move.search.inh.pickingpartner</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_move_search" />
|
||||
<field name="arch" type="xml">
|
||||
<filter string="Product" position="before">
|
||||
<filter string="Picking Partner" name="by_prod_parent_lot" domain="[]" context="{'group_by':'prod_parent_lot'}"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user