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] stock_barcodes #469

Merged
merged 80 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
c7a6c83
[ADD] stock_barcodes: New module to read barcodes on stocks operation…
sergio-teruel Aug 7, 2019
222da24
[UPD] README.rst
OCA-git-bot Aug 7, 2019
dc5798f
[UPD] Update stock_barcodes.pot
oca-travis Aug 7, 2019
9b7da60
[FIX] stock_barcodes: Fix ES translation
pedrobaeza Sep 16, 2019
811d49a
[ADD] stock_barcodes: Allow to read barcodes from pickings
sergio-teruel Sep 9, 2019
2e9c2a9
[ADD] stock_barcodes: Allow to read barcodes from pickings. Last changes
sergio-teruel Sep 24, 2019
b029ee9
[FIX] stock_barcodes: Fix validate picking from candidate picking kan…
sergio-teruel Oct 11, 2019
f034de9
[IMP] stock_barcodes: Hidden lot for non tracking products.
sergio-teruel Oct 12, 2019
ffcd1e1
[UPD] Update stock_barcodes.pot
oca-travis Oct 12, 2019
181b947
[UPD] README.rst
OCA-git-bot Oct 12, 2019
1904909
Update translation files
oca-transbot Oct 12, 2019
947e15f
[12.0][MIG] stock_barcodes
astirpe Sep 3, 2019
79e7f57
[UPD] Update stock_barcodes.pot
oca-travis Nov 9, 2019
71c42c0
[UPD] README.rst
OCA-git-bot Nov 9, 2019
1057cf8
Update translation files
oca-transbot Nov 19, 2019
0709f6a
[FIX] stock_barcodes: out picking location workflow
chienandalu Jan 28, 2020
c33d3d1
[UPD] Update stock_barcodes.pot
oca-travis Jan 30, 2020
039504e
stock_barcodes 12.0.1.1.0
OCA-git-bot Jan 30, 2020
1cdac0b
Update translation files
oca-transbot Jan 30, 2020
6ac8ec0
[FIX] stock_barcodes: location_dest_id
chienandalu Jan 31, 2020
38e84d6
stock_barcodes 12.0.1.1.1
OCA-git-bot Jan 31, 2020
f0eb513
[IMP] stock_barcodes: black, isort
sergio-teruel Feb 13, 2020
c397a02
[MIG] stock_barcodes: Migration to v13.0
sergio-teruel Feb 13, 2020
3c5a5b7
[UPD] Update stock_barcodes.pot
oca-travis Apr 16, 2020
2b421cc
Update translation files
oca-transbot Apr 17, 2020
3e8c2b6
[FIX] stock_barcodes: Make tests more resilient
pedrobaeza Jul 26, 2020
96949e4
[FIX] stock_barcodes: Another non resilient test
pedrobaeza Jul 26, 2020
fd443d4
Update translation files
oca-transbot Aug 16, 2020
e2a5691
[IMP] stock_barcodes: Add barcode field to location view in same grou…
sergio-teruel Sep 3, 2020
19cc298
[UPD] Update stock_barcodes.pot
oca-travis Sep 3, 2020
9131903
stock_barcodes 13.0.1.1.0
OCA-git-bot Sep 3, 2020
6a9ff19
Update translation files
oca-transbot Sep 3, 2020
0856890
[ADD] stock_barcodes: Add option to get lots automatically in invento…
sergio-teruel Feb 6, 2021
19b55a6
[UPD] Update stock_barcodes.pot
oca-travis Mar 4, 2021
9b2bb54
[UPD] README.rst
OCA-git-bot Mar 4, 2021
094e06d
stock_barcodes 13.0.1.2.0
OCA-git-bot Mar 4, 2021
69764aa
Update translation files
oca-transbot Mar 4, 2021
bad6c6b
[IMP] stock_barcodes: black, isort, prettier
fshah-initos Apr 5, 2021
71c39ca
[14.0][MIG]stock_barcodes
fshah-initos Apr 5, 2021
1c70e57
[IMP] stock_barcodes: Apply putaway strategy
etobella Jun 7, 2021
fd5805a
[FIX] stock_barcodes: use the uom of the package if defined
etobella Jun 2, 2021
f7a2aee
[UPD] Update stock_barcodes.pot
oca-travis Oct 1, 2021
8fce5ce
[UPD] README.rst
OCA-git-bot Oct 1, 2021
bad05df
[IMP] stock_barcodes: allow to add lines even if not qtys reserved
chienandalu Dec 4, 2020
3f9926d
[FIX] stock_barcodes: avoid mixing tracked and untracked quants
chienandalu Aug 9, 2021
1a8628d
[FIX] stock_barcodes: reset lot id if we change the product manually
chienandalu Aug 12, 2021
7bf951c
stock_barcodes 14.0.1.1.0
OCA-git-bot Nov 4, 2021
17f3d47
[FIX] stock_barcodes: make available the action to read barcodes
mariadforgeflow Feb 23, 2022
cdd2bf9
stock_barcodes 14.0.1.2.0
OCA-git-bot Feb 24, 2022
d53a414
[FIX] stock_barcodes: take company from env not from user
LoisRForgeFlow Mar 15, 2022
2c82449
stock_barcodes 14.0.1.2.1
OCA-git-bot Mar 15, 2022
9910565
[FIX] stock_barcodes: read act windows permission issue
LoisRForgeFlow Mar 16, 2022
20c15c0
stock_barcodes 14.0.1.2.2
OCA-git-bot Mar 16, 2022
539b977
[IMP] stock_barcodes: Refactoring code and improvements
sergio-teruel Oct 27, 2021
999fb9d
[FIX] stock_barcodes: set option to create lot to true in test
LoisRForgeFlow Jul 7, 2022
5279d6d
[FIX] stock_barcodes: several small adjustments.
LoisRForgeFlow Jul 8, 2022
e59a554
[IMP] stock_barcodes: show quantity even when not editable.
LoisRForgeFlow Jul 8, 2022
0ee0230
[MIG] stock_barcodes: clean warnings and adapt to v14.
LoisRForgeFlow Jul 11, 2022
2528239
[UPD] Update stock_barcodes.pot
Aug 20, 2022
1c5f4e4
[UPD] README.rst
OCA-git-bot Aug 20, 2022
3933a4a
stock_barcodes 14.0.2.0.0
OCA-git-bot Aug 20, 2022
5a8ef28
Update translation files
oca-transbot Aug 20, 2022
8845d62
Added translation using Weblate (Italian)
francesco-ooops Aug 22, 2022
9cd22d7
Translated using Weblate (Italian)
SicurSam Aug 22, 2022
aff6032
Translated using Weblate (Italian)
francesco-ooops Aug 23, 2022
d8a118e
Translated using Weblate (Italian)
francesco-ooops Aug 23, 2022
25110ee
[FIX] stock_barcodes: make actions readable by non-admin users.
LoisRForgeFlow Sep 1, 2022
9c73307
[FIX] stock_barcodes: do not use PO UoM by default
LoisRForgeFlow Sep 1, 2022
8ac5867
stock_barcodes 14.0.2.0.1
OCA-git-bot Sep 2, 2022
808c425
[FIX] stock_barcodes: remove last scan do not revert last action.
LoisRForgeFlow Sep 2, 2022
0c15e41
[FIX] stock_barcodes: use float_compare to avoid rounding issues
LoisRForgeFlow Sep 6, 2022
3ccdd7b
[UPD] Update stock_barcodes.pot
Sep 6, 2022
ae5767f
stock_barcodes 14.0.2.0.2
OCA-git-bot Sep 6, 2022
979545e
Update translation files
oca-transbot Sep 6, 2022
8312ea7
[IMP] stock_barcodes: Clean wizard values after the move to do has be…
sergio-teruel Sep 26, 2022
ea8a81e
stock_barcodes 14.0.2.0.3
OCA-git-bot Sep 27, 2022
3698c03
[IMP] stock_barcodes: black, isort, prettier
etobella Oct 10, 2022
b9bfe33
[MIG] stock_barcodes: Migration to 15.0
etobella Oct 11, 2022
bcc18f8
[MIG/FIX] stock_barcodes: fix notification usage to adapt to v15.
LoisRForgeFlow Nov 29, 2022
83d2394
[IMP] stock_barcodes: attend new pylint mandatory checks
LoisRForgeFlow Nov 29, 2022
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 setup/stock_barcodes/odoo/addons/stock_barcodes
6 changes: 6 additions & 0 deletions setup/stock_barcodes/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,
)
209 changes: 209 additions & 0 deletions stock_barcodes/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
==============
Stock Barcodes
==============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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--barcode-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-barcode/tree/14.0/stock_barcodes
: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-14-0/stock-logistics-barcode-14-0-stock_barcodes
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/150/14.0
:alt: Try me on Runbot

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

This module provides a barcode reader interface for stock module.

This module contains a base wizard read barcode that can be extended by
other modules.

This module also makes use of this wizard for providing barcode support for
doing inventories and picking operations.

**Table of contents**

.. contents::
:local:

Usage
=====

Barcode interface for inventory operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To use the barcode interface on inventory:

#. Go to *Inventory > operations > Inventory Adjustments*.
#. Create new inventory with "Select products manually" option.
#. Start inventory.
#. Click to "Scan barcodes" smart button.
#. Start reading barcodes.

Barcode interface for picking operations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can use the barcode interface in a picking or an operation type, the main
difference is that if you open the barcode interface from a picking, this
picking is locked and you read products for it.

To use the barcode interface on picking operations:

#. Go to *Inventory*.
#. Click on scanner button on any operation type.
#. Start reading barcodes.

To use the barcode interface on a picking:

#. Go to *Inventory > Transfers*.
#. Click to "Scan barcodes" smart button.
#. Start reading barcodes.

The barcode scanner interface has two operation modes. In both of them user
can scan:

#. Warehouse locations with barcode.
#. Product packaging with barcode.
#. Product with barcode.
#. Product Lots (The barcode is name field in this case).


Automatic operation mode
~~~~~~~~~~~~~~~~~~~~~~~~

This is the default mode, all screen controls are locked to avoid scan into
fields.

The user only has to scan barcode in physical warehouse locations with a
scanner hardward, the interface read the barcode and do operations in this
order:

#. Try search a product, if found, is assigned to product_id field and creates
or update inventory line with 1.0 unit. (If product has tracking by lots
the interface wait for a lot to be scanned).
#. Try search a product packaging, if found, the product_id related is set,
product quantities are updated and create or update inventory line with
product quantities defined in the product packaging.
#. Try search a lot (The product is mandatory in this case so you first scan a
product and then scann a lot), this lot field is not erased until that
product change, so for each product scann the interface add or update a
inventory line with this lot.
#. Try to search a location, if found the field location is set and next scan
action will be done with this warehouse location.

If barcode has not found, when message is displayed you can create this lot
scanning the product.

Manual entry mode
~~~~~~~~~~~~~~~~~

You can change to "manual entry" to allow to select data without scanner
hardware, but hardward scanner still active on, so a use case would be when
user wants set quantities manually instead increment 1.0 unit peer scan action.

Scan logs
~~~~~~~~~

All scanned barcodes are saved into model.
Barcode scanning interface display 10 last records linked to model, the goal of
this log is show to user other reads with the same product and location done
by other users.
User can remove the last read scan.

Known issues / Roadmap
======================

* Excute action_done() method outside onchange environment.
* Allow create product when a barcode has not been found.
* Allow to select picking reading its barcode.
* Allow to select multiple pickings to process scanned products.

Changelog
=========

11.0.1.1.0 (2019-09-24)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] New feature.
User can uses barcode interface in picking operations.

13.0.1.1.1 (2021-02-06)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] New feature.
Add option to get lots automatically based on removal strategy in inventory.

14.0.1.0.0 (2021-04-05)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] New feature.
Add security for users.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes%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
~~~~~~~

* Tecnativa

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


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

* Sergio Teruel
* Carlos Dauden
* Pedro M. Baeza
* Alexandre D. Díaz

* `Onestein <https://www.onestein.eu>`_:

* Andrea Stirpe

* `InitOS <https://www.initos.com>`_:

* Foram Shah

* `ForgeFlow <https://www.forgeflow.com>`_:

* Lois Rilo

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/14.0/stock_barcodes>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions stock_barcodes/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2019 Sergio Teruel <sergio.teruel@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizard
from .hooks import pre_init_hook
40 changes: 40 additions & 0 deletions stock_barcodes/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2019 Sergio Teruel <sergio.teruel@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Barcodes",
"summary": "It provides read barcode on stock operations.",
"version": "15.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": ["barcodes", "stock", "web_widget_numeric_step"],
"data": [
"security/ir.model.access.csv",
"data/stock_barcodes_action.xml",
"data/stock_barcodes_option.xml",
"views/stock_barcodes_action_view.xml",
"views/stock_barcodes_option_view.xml",
"views/stock_location_views.xml",
"views/stock_picking_views.xml",
"wizard/stock_production_lot_views.xml",
"wizard/stock_barcodes_read_views.xml",
"wizard/stock_barcodes_read_picking_views.xml",
"wizard/stock_barcodes_read_todo_view.xml",
# Keep order
"views/stock_barcodes_menu.xml",
],
"assets": {
"web.assets_backend": [
"/stock_barcodes/static/src/js/barcodes_models_mixin.js",
"/stock_barcodes/static/src/js/basic_controller.js",
"/stock_barcodes/static/src/js/kanban_renderer.js",
"/stock_barcodes/static/src/js/basic_fields.js",
"/stock_barcodes/static/src/js/form_view.js",
"/stock_barcodes/static/src/js/numeric_step.js",
"/stock_barcodes/static/src/css/stock.scss",
],
},
"installable": True,
"pre_init_hook": "pre_init_hook",
}
32 changes: 32 additions & 0 deletions stock_barcodes/data/stock_barcodes_action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="stock_barcodes_action_picking_in" model="stock.barcodes.action">
<field name="name">Picking IN</field>
<field name="sequence">10</field>
<field name="action_window_id" ref="stock.stock_picking_type_action" />
<field name="key_char_shortcut">1</field>
<field
name="context"
>{'search_default_code': 'incoming', 'search_default_barcode_options': 1}</field>
</record>
<record id="stock_barcodes_action_picking_int" model="stock.barcodes.action">
<field name="name">Picking INTERNAL</field>
<field name="sequence">30</field>
<field name="action_window_id" ref="stock.stock_picking_type_action" />
<field name="key_char_shortcut">3</field>
<field
name="context"
>{'search_default_code': 'internal', 'search_default_barcode_options': 1}</field>
</record>
<record id="stock_barcodes_action_picking_out" model="stock.barcodes.action">
<field name="name">Picking OUT</field>
<field name="sequence">20</field>
<field name="action_window_id" ref="stock.stock_picking_type_action" />
<field name="key_char_shortcut">2</field>
<field
name="context"
>{'search_default_code': 'outgoing', 'search_default_barcode_options': 1}</field>
</record>

</odoo>
Loading