[FIX stock_move_partner_info]

This commit is contained in:
alfredo
2015-02-13 11:56:45 +01:00
committed by Darshan Patel
parent 5d1a986909
commit 3f5a181e18
8 changed files with 182 additions and 0 deletions

View 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>

View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from . import models

View 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,
}

View 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"

View 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 ""

View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from . import stock_move

View 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')

View 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>