Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] product_supplierinfo_for_customer_picking #1021

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
72a77ef
[UPT] rename module and minor fixes
AaronHForgeFlow Mar 20, 2018
c0fd154
[ADD] Tests
MiquelRForgeFlow Jul 9, 2018
fbaa1ab
[UPD] Update product_supplierinfo_for_customer_picking.pot
oca-travis Jul 16, 2018
353005b
[ADD] icon.png
OCA-git-bot Apr 3, 2019
bd504b2
[MIG] product_supplierinfo_for_customer_picking: Migration to 12.0
MiquelRForgeFlow Oct 23, 2019
781abc2
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jun 20, 2020
e63cb45
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 23, 2020
ab64230
[IMP] product_supplierinfo_for_customer_picking: black, isort, prettier
tafaRU Jun 16, 2021
34bd5d6
[MIG] product_supplierinfo_for_customer_picking: Migration to 14.0
tafaRU Jun 16, 2021
53ca6b2
[UPD] Update product_supplierinfo_for_customer_picking.pot
oca-travis Sep 24, 2021
93d8322
[UPD] README.rst
OCA-git-bot Sep 24, 2021
ec9c5d7
product_supplierinfo_for_customer_picking 14.0.1.0.1
OCA-git-bot Sep 24, 2021
c9aad28
[UPD] contributors: Eficent -> ForgeFlow
MiquelRForgeFlow Jan 31, 2022
b89469e
[UPD] README.rst
OCA-git-bot Jan 31, 2022
2fbb3c8
[14.0][FIX]product_supplierinfo_for_customer_picking - Wrong supplier…
Feb 10, 2023
04ca16d
[14.0][FIX]product_supplierinfo_for_customer_picking: add test scenario
Feb 10, 2023
5ccca82
product_supplierinfo_for_customer_picking 14.0.1.0.2
OCA-git-bot Feb 10, 2023
38e76de
[IMP] product_supplierinfo_for_customer_picking: black, isort, prettier
Feb 10, 2023
0560afc
[15.0][MIG] product_supplierinfo_for_customer_picking: Migration to 15.0
Feb 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions product_supplierinfo_for_customer_picking/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
=========================================
Product Supplierinfo For Customer Picking
=========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-14-0/stock-logistics-workflow-14-0-product_supplierinfo_for_customer_picking
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/154/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Based on product_supplierinfo_for_customer, this module loads in every Stock move the
customer code defined in the product.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20product_supplierinfo_for_customer_picking%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Agile Business Group

Contributors
~~~~~~~~~~~~

* Nicola Malcontenti <nicola.malcontenti@agilebg.com>
* Alex Comba <alex.comba@agilebg.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Aaron Henriquez <ahenriquez@forgeflow.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions product_supplierinfo_for_customer_picking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
17 changes: 17 additions & 0 deletions product_supplierinfo_for_customer_picking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2013 - 2021 Agile Business Group sagl (<https://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Supplierinfo For Customer Picking",
"version": "15.0.1.0.0",
"author": "Agile Business Group, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"category": "Stock",
"summary": "This module makes the product customer code visible "
"in the stock moves of a picking.",
"license": "AGPL-3",
"depends": ["stock", "product_supplierinfo_for_customer"],
"data": [
"views/stock_picking_view.xml",
],
"installable": True,
}
30 changes: 30 additions & 0 deletions product_supplierinfo_for_customer_picking/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * product_customer_code_picking
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-01-15 14:28+0000\n"
"PO-Revision-Date: 2015-01-31 14:51+0100\n"
"Last-Translator: Rudolf Schnapka <schnapkar@golive-saar.de>\n"
"Language-Team: \n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.4\n"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__product_customer_code
msgid "Product Customer Code"
msgstr "Artikelnummer beim Kunden"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model,name:product_supplierinfo_for_customer_picking.model_stock_move
msgid "Stock Move"
msgstr "Lagerbewegung"

#~ msgid "Picking List"
#~ msgstr "Kommissionierschein"
31 changes: 31 additions & 0 deletions product_supplierinfo_for_customer_picking/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * product_customer_code_picking
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-01-15 14:28+0000\n"
"PO-Revision-Date: 2014-01-15 15:29+0100\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 1.6.2\n"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__product_customer_code
msgid "Product Customer Code"
msgstr "Codice Prodotto Cliente"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model,name:product_supplierinfo_for_customer_picking.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#~ msgid "Picking List"
#~ msgstr "Documento di trasporto"
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_supplierinfo_for_customer_picking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \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_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__display_name
msgid "Display Name"
msgstr ""

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__id
msgid "ID"
msgstr ""

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__product_customer_code
msgid "Product Customer Code"
msgstr ""

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model,name:product_supplierinfo_for_customer_picking.model_stock_move
msgid "Stock Move"
msgstr ""
27 changes: 27 additions & 0 deletions product_supplierinfo_for_customer_picking/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_supplierinfo_for_customer_picking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-06-23 03:19+0000\n"
"Last-Translator: Fernando Colus <fcolus1@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer_picking.field_stock_move__product_customer_code
msgid "Product Customer Code"
msgstr "Código do Cliente do Produto"

#. module: product_supplierinfo_for_customer_picking
#: model:ir.model,name:product_supplierinfo_for_customer_picking.model_stock_move
msgid "Stock Move"
msgstr "Movimentação de Estoque"
2 changes: 2 additions & 0 deletions product_supplierinfo_for_customer_picking/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import stock_move
30 changes: 30 additions & 0 deletions product_supplierinfo_for_customer_picking/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2013 - 2021 Agile Business Group sagl (<https://www.agilebg.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


class StockMove(models.Model):
_inherit = "stock.move"

@api.depends(
"picking_id.partner_id", "product_id", "product_id.customer_ids.product_code"
)
def _compute_product_customer_code(self):
for move in self:
product_customer_code = False
if (
move.picking_id
and move.picking_id.partner_id
and move.product_tmpl_id.customer_ids
):
customer = fields.first(
move.product_tmpl_id.customer_ids.filtered(
lambda m: m.name == move.picking_id.partner_id
)
)
product_customer_code = customer.product_code
move.product_customer_code = product_customer_code

product_customer_code = fields.Char(
compute="_compute_product_customer_code",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Nicola Malcontenti <nicola.malcontenti@agilebg.com>
* Alex Comba <alex.comba@agilebg.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Aaron Henriquez <ahenriquez@forgeflow.com>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Based on product_supplierinfo_for_customer, this module loads in every Stock move the
customer code defined in the product.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading