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

[MIG] stock_picking_import_serial_number: Migration to 14.0 #1063

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# generated from manifests external_dependencies
pytz
xlrd
6 changes: 6 additions & 0 deletions setup/stock_picking_import_serial_number/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
105 changes: 105 additions & 0 deletions stock_picking_import_serial_number/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
===================================
Stock Picking Import Serial Numbers
===================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/13.0/stock_picking_import_serial_number
: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-13-0/stock-logistics-workflow-13-0-stock_picking_import_serial_number
: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/13.0
:alt: Try me on Runbot

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

This module extends the functionality of stock module to allow import serial numbers
from an excel file.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

#. Go to a *Inventory > Configuration > Settings*.
#. Choose the product field which yo want to search products.
#. Choose the file column index where product reference is stored.
#. Choose the file column index where serial number reference is stored.

Usage
=====

To use this module you need to:

#. Go to *Inventory > Incoming* and create one.
#. Click on button "Import S/N".
#. Select an excel file.
#. Click on import button.

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:%20stock_picking_import_serial_number%0Aversion:%2013.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
~~~~~~~

* Tecnativa

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

* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Dauden <carlos.dauden@tecnativa.com>
* Sergio Teruel <sergio.teruel@tecnativa.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.

.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px
:target: https://github.com/sergio-teruel
:alt: sergio-teruel

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sergio-teruel|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_picking_import_serial_number/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import wizard
22 changes: 22 additions & 0 deletions stock_picking_import_serial_number/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Import Serial Numbers",
"summary": "Import S/N from excel file for incoming pickings",
"version": "14.0.1.0.0",
"development_status": "Beta",
"category": "stock",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["stock"],
"data": [
"wizard/import_serial_number_view.xml",
"views/res_config_settings_views.xml",
"views/stock_picking.xml",
"security/ir.model.access.csv",
],
"external_dependencies": {"python": ["xlrd"]},
"maintainers": ["sergio-teruel"],
}
187 changes: 187 additions & 0 deletions stock_picking_import_serial_number/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_import_serial_number
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-04 10:48+0000\n"
"PO-Revision-Date: 2022-05-04 12:49+0200\n"
"Last-Translator: Sergio Teruel <sergio.teruel@tecnativa.com>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3\n"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "<span class=\"o_form_label\">Field to search products</span>"
msgstr "<span class=\"o_form_label\">Campo por el que buscar productos</span>"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "<span class=\"o_form_label\">File column index for products</span>"
msgstr ""
"<span class=\"o_form_label\">Índice de la columna que contiene el producto</"
"span>"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "<span class=\"o_form_label\">File column index for serial number</span>"
msgstr ""
"<span class=\"o_form_label\">Índice de la columna que contiene el número de "
"serie</span>"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields.selection,name:stock_picking_import_serial_number.selection__res_config_settings__default_sn_search_product_by_field__barcode
#: model:ir.model.fields.selection,name:stock_picking_import_serial_number.selection__stock_picking_import_serial_number_wiz__sn_search_product_by_field__barcode
msgid "Barcode"
msgstr "Código de barras"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.stock_picking_import_serial_number_wiz
msgid "Choose a file to import..."
msgstr "Seleccione un archivo a importar..."

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_res_config_settings__default_sn_serial_column_index
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__sn_serial_column_index
msgid "Column index for S/N"
msgstr "Índice de la columna para S/N"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_res_config_settings__default_sn_product_column_index
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__sn_product_column_index
msgid "Column index for product"
msgstr "Índice de la columna para el producto"

#. module: stock_picking_import_serial_number
#: model:ir.model,name:stock_picking_import_serial_number.model_res_config_settings
msgid "Config Settings"
msgstr "Opciones de Configuración"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__create_date
msgid "Created on"
msgstr "Creado en"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__display_name
msgid "Display Name"
msgstr "Nombre a mostrar"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__data_file
msgid "File to import"
msgstr "Fichero a importar"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__filename
msgid "Filename"
msgstr "Nombre de archivo"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__id
msgid "ID"
msgstr ""

#. module: stock_picking_import_serial_number
#: model:ir.actions.act_window,name:stock_picking_import_serial_number.action_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.stock_picking_import_serial_number_wiz
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.view_picking_form
msgid "Import S/N"
msgstr "Importar S/N"

#. module: stock_picking_import_serial_number
#: model:ir.model,name:stock_picking_import_serial_number.model_stock_picking_import_serial_number_wiz
msgid "Import S/N wizard"
msgstr "Asistente de importación S/N"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__overwrite_serial
msgid "Overwrite Serial"
msgstr "Sobreescribir S/N"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__picking_ids
msgid "Picking"
msgstr "Albarán"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields.selection,name:stock_picking_import_serial_number.selection__res_config_settings__default_sn_search_product_by_field__default_code
#: model:ir.model.fields.selection,name:stock_picking_import_serial_number.selection__stock_picking_import_serial_number_wiz__sn_search_product_by_field__default_code
msgid "Reference"
msgstr "Referencia"

#. module: stock_picking_import_serial_number
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_res_config_settings__default_sn_search_product_by_field
#: model:ir.model.fields,field_description:stock_picking_import_serial_number.field_stock_picking_import_serial_number_wiz__sn_search_product_by_field
msgid "Search product by field"
msgstr "Buscar producto por campo"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "Select the field to search products"
msgstr "Seleccione el campo para buscar productos"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "Select the index file column which contains the product info"
msgstr ""
"Selecciones el índice de la columna que contiene información del producto"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.res_config_settings_view_form
msgid "Select the index file column which contains the serial numbers info"
msgstr ""
"Selecciones el índice de la columna que contiene información del número se "
"serie"

#. module: stock_picking_import_serial_number
#: code:addons/stock_picking_import_serial_number/wizard/import_serial_number_wizard.py:0
#, python-format
msgid "You must upload file to import records"
msgstr "Debe de subir un fichero para importar registros"

#. module: stock_picking_import_serial_number
#: code:addons/stock_picking_import_serial_number/wizard/import_serial_number_wizard.py:0
#, python-format
msgid "You only can import S/N for incoming moves"
msgstr "Solo puede importar S/N para albaranes de entrada"

#. module: stock_picking_import_serial_number
#: code:addons/stock_picking_import_serial_number/wizard/import_serial_number_wizard.py:0
#, python-format
msgid ""
"You only can import S/N for picking operations with creation lots checked"
msgstr "Solo puede importar S/N para operaciones con creación de lotes marcado"

#. module: stock_picking_import_serial_number
#: model_terms:ir.ui.view,arch_db:stock_picking_import_serial_number.stock_picking_import_serial_number_wiz
msgid "_Cancel"
msgstr "_Cancelar"
Loading