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

[16.0][MIG] stock_barcodes_picking_batch_revision: Migration to version 16.0 #632

Open
wants to merge 5 commits into
base: 16.0
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions setup/stock_barcodes_picking_batch_revision/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,
)
87 changes: 87 additions & 0 deletions stock_barcodes_picking_batch_revision/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
=====================================
Stock Barcodes Picking Batch Revision
=====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:abc17700f54b1cc94f0637de291d33e4fafab652fee66a7ed543a3b61f3d262a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--barcode-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-barcode/tree/16.0/stock_barcodes_picking_batch_revision
:alt: OCA/stock-logistics-barcode
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-stock_barcodes_picking_batch_revision
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-barcode&target_branch=16.0
:alt: Try me on Runboat

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

This module extends barcode reader interface to allow to review batch picking from other
users.

**Table of contents**

.. contents::
:local:

Usage
=====

Read usage section from stock_barcodes module.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-barcode/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes_picking_batch_revision%0Aversion:%2016.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>`_:

* Sergio Teruel
* Carlos Dauden
* Carlos Roca

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-barcode <https://github.com/OCA/stock-logistics-barcode/tree/16.0/stock_barcodes_picking_batch_revision>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions stock_barcodes_picking_batch_revision/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
from . import wizard
25 changes: 25 additions & 0 deletions stock_barcodes_picking_batch_revision/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Barcodes Picking Batch Revision",
"summary": "It provides batch pickings revision from other users.",
"version": "16.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-barcode",
"license": "AGPL-3",
"category": "Extra Tools",
"depends": ["stock_barcodes_picking_batch"],
"data": [
"data/stock_barcodes_action.xml",
"views/stock_picking_batch_views.xml",
"wizard/stock_barcodes_read_picking_batch_views.xml",
],
"installable": True,
"assets": {
"web.assets_backend": [
"stock_barcodes_picking_batch_revision/static/src/js/boolean_toggle_big.js",
"stock_barcodes_picking_batch_revision/static/src/js/boolean_toggle_big.xml",
"stock_barcodes_picking_batch_revision/static/src/scss/boolean_toggle_big.scss",
],
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="stock_barcodes_action_picking_batch_revision"
model="stock.barcodes.action"
>
<field name="name">Review picking batch</field>
<field name="sequence">120</field>
<field
name="action_window_id"
ref="stock_picking_batch.stock_picking_batch_action"
/>
<field
name="context"
>{"search_default_to_review": True, 'default_review_picking_batch': True}</field>
</record>
</odoo>
96 changes: 96 additions & 0 deletions stock_barcodes_picking_batch_revision/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_barcodes_picking_batch
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2024-04-02 12:37+0200\n"
"Last-Translator: Carlos Dauden <[email protected]>\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 3.0.1\n"

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-bars\" title=\"Open actions\"/>"
msgstr "<i class=\"fa fa-bars\" title=\"Abrir acciones\"/>"

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-check\" title=\"Confirm review\"/>"
msgstr "<i class=\"fa fa-check\" title=\"Confirmar revisión\"/>"

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-trash-o\" title=\"Clean Values\"/>"
msgstr "<i class=\"fa fa-trash-o\" title=\"Limpiar valores\"/>"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_stock_move_line__barcodes_is_reviewed
msgid "Barcodes Is Reviewed"
msgstr "Revisado"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_stock_picking_batch__barcodes_requested_review
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_candidate_picking_batch__barcodes_requested_review
msgid "Barcodes Requested Review"
msgstr "Solicitud de revisión código de barras"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_stock_picking_batch
msgid "Batch Transfer"
msgstr "Agrupación de albaranes"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_candidate_picking_batch
msgid "Candidate picking batchs for barcode interface"
msgstr "Agrupación de albaranes candidata interfaz de códigos de barras"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr "Movimientos de Producto (Stock Move Line)"

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "Review"
msgstr "Revisión"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_picking__review_picking_batch
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_todo__review_picking_batch
msgid "Review Picking Batch"
msgstr "Revisar agrupación de albaranes"

#. module: stock_barcodes_picking_batch_revision
#: model:stock.barcodes.action,name:stock_barcodes_picking_batch_revision.stock_barcodes_action_picking_batch_revision
msgid "Review picking batch"
msgstr "Revisar agrupacion de albaranes"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,help:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_picking__review_picking_batch
#: model:ir.model.fields,help:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_todo__review_picking_batch
msgid "Technical field to know the context (reviewer or not)"
msgstr "Campo técnico para conocer el contexto (revisado o no)"

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.stock_picking_batch_filter
msgid "To review"
msgstr "A revisar"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_stock_barcodes_read_picking
msgid "Wizard to read barcode on picking batch"
msgstr "Asistente para leer códigos de barras desde las agrupaciones de albaranes"

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_stock_barcodes_read_todo
msgid "Wizard to read barcode todo"
msgstr "Asistente para leer códigos de barras a realizar"
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_barcodes_picking_batch_revision
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-bars\" title=\"Open actions\"/>"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-check\" title=\"Confirm review\"/>"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "<i class=\"fa fa-trash-o\" title=\"Clean Values\"/>"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_stock_move_line__barcodes_is_reviewed
msgid "Barcodes Is Reviewed"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_stock_picking_batch__barcodes_requested_review
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_candidate_picking_batch__barcodes_requested_review
msgid "Barcodes Requested Review"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_stock_picking_batch
msgid "Batch Transfer"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_candidate_picking_batch
msgid "Candidate picking batchs for barcode interface"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.view_stock_barcodes_read_picking_batch_form
msgid "Review"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_picking__review_picking_batch
#: model:ir.model.fields,field_description:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_todo__review_picking_batch
msgid "Review Picking Batch"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:stock.barcodes.action,name:stock_barcodes_picking_batch_revision.stock_barcodes_action_picking_batch_revision
msgid "Review picking batch"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model.fields,help:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_picking__review_picking_batch
#: model:ir.model.fields,help:stock_barcodes_picking_batch_revision.field_wiz_stock_barcodes_read_todo__review_picking_batch
msgid "Technical field to know the context (reviewer or not)"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model_terms:ir.ui.view,arch_db:stock_barcodes_picking_batch_revision.stock_picking_batch_filter
msgid "To review"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_stock_barcodes_read_picking
msgid "Wizard to read barcode on picking batch"
msgstr ""

#. module: stock_barcodes_picking_batch_revision
#: model:ir.model,name:stock_barcodes_picking_batch_revision.model_wiz_stock_barcodes_read_todo
msgid "Wizard to read barcode todo"
msgstr ""
5 changes: 5 additions & 0 deletions stock_barcodes_picking_batch_revision/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import stock_move_line
from . import stock_picking_batch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


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

barcodes_is_reviewed = fields.Boolean()
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2023 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


class StockPickingBatch(models.Model):
_inherit = "stock.picking.batch"

barcodes_requested_review = fields.Boolean()

def write(self, vals):
res = super(StockPickingBatch, self).write(vals)
# Set not assigned batch picking to allow to be assigned to other user to review
if vals.get("barcodes_requested_review", False):
self.user_id = False
return res
6 changes: 6 additions & 0 deletions stock_barcodes_picking_batch_revision/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

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

* Sergio Teruel
* Carlos Dauden
* Carlos Roca
2 changes: 2 additions & 0 deletions stock_barcodes_picking_batch_revision/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends barcode reader interface to allow to review batch picking from other
users.
1 change: 1 addition & 0 deletions stock_barcodes_picking_batch_revision/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Read usage section from stock_barcodes module.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading