Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
90be5ea
Add shopfloor_single_product_transfer
mmequignon Dec 5, 2022
5563696
sf_s_product_transfer: support packaging scan
sebalix Jan 13, 2023
e0e856f
add allow_alternative_destination menu option
JuMiSanAr Mar 8, 2023
59050b3
sf_s_product_transfer: add completion info
sebalix Mar 28, 2023
ef4619b
sf_s_product_transfer: imp chekout sync integration
TDu Mar 31, 2023
db68280
shopfloor_single_product_transfer: add hook
JuMiSanAr May 25, 2023
1983974
sf_single_product_transfer: allow to scan packages on start
JuMiSanAr May 12, 2023
7fac53e
sf_single_product_transfer: scan_product with package / location context
JuMiSanAr May 15, 2023
dd1eb17
sf_single_product_transfer: transfer product to package
JuMiSanAr May 24, 2023
d81ce4c
shopfloor_single_product_transfer: Use search.find()
mmequignon Jun 2, 2023
be859bc
sf_single_product_transfer: cancel picking if allow_move_create enabled
JuMiSanAr Jun 13, 2023
40e2266
sf_single_product_transfer: dont split move if allow_move_create enabled
JuMiSanAr Jun 13, 2023
5c8fae1
sf_single_product_transfer: fix message bug in set_quantity__scan_pro…
JuMiSanAr Jun 15, 2023
60fdab9
sf_single_product_transfer: show message if line already done
JuMiSanAr Jun 26, 2023
ff30f8a
sf_single_product_transfer: update query to select line
JuMiSanAr Jun 30, 2023
88ade86
sf-single-product-transfer: location progress
JuMiSanAr May 16, 2023
ffb3e85
sf-single-product-transfer: package progress
JuMiSanAr Jun 7, 2023
2ac0d9b
sf_single_product_transfer: blacklist lines for progressbar
JuMiSanAr Jul 10, 2023
115276a
sf_single_product_transfer: allow package progress src or dest
JuMiSanAr Jul 19, 2023
bf6f55c
shopfloor_*: fix install/uninstall
simahawk Aug 1, 2023
56407c5
shopfloor_single_product_transfer - set destination before posting
mmequignon Sep 11, 2023
cd4c0b7
sf_single_product_transfer: improve confirmation
TDu Aug 4, 2023
98bad52
shopfloor_single_product_transfer: Package scan
mt-software-de Nov 6, 2023
f070c15
sf_single_product_transfer
jbaudoux Sep 9, 2023
26137b4
shopfloor_single_product_transfer: Set package before posting If a pa…
mt-software-de Apr 2, 2024
b12e9e9
shopfloor_single_product_transfer: better messages
mmequignon Mar 14, 2025
39fb161
shopfloor_single_product_transfer: Using newly created stock action m…
mt-software-de Jun 23, 2025
31328cc
shopfloor_single_product_transfer: Extend unittest to ensure location…
mt-software-de Jun 23, 2025
2073bf3
shopfloor_single_product_transfer: pre-commit auto fixes
mmequignon Jul 25, 2025
e125395
Migrate shopfloor_single_product_transfer to 18.0
mmequignon Jul 30, 2025
cc5e011
shopfloor_single_product_transfer: Scan location perf improvement
mmequignon Oct 7, 2025
c45e88a
shopfloor_single_product_transfer: Set lot when creating move line
mmequignon Oct 23, 2025
af52fef
shopfloor_single_product_transfer: temporary fix for checkout_sync
mmequignon Oct 23, 2025
f10d46c
[UPD] Update shopfloor_single_product_transfer.pot
Dec 2, 2025
6046fe0
[BOT] post-merge updates
OCA-git-bot Dec 2, 2025
f0eed1b
shopfloor_single_product_transfer: fix tests
jbaudoux Feb 27, 2026
b5251a4
[BOT] post-merge updates
OCA-git-bot Mar 2, 2026
709c53b
shopfloor_single_product_transfer: maintainers
jbaudoux Feb 28, 2026
dde4eb8
[IMP] shopfloor_single_product_transfer: use action set destination
TDu Jan 6, 2026
f38e7a8
[FIX] shopfloor_single_product_transfer: set_destination_on_lines
jbaudoux Feb 27, 2026
8e66ab8
[BOT] post-merge updates
OCA-git-bot Mar 4, 2026
49c2706
[BOT] post-merge updates
OCA-git-bot Mar 5, 2026
ac5367d
[IMP] shopfloor_single_product_transfer: pre-commit auto fixes
lmignon Jun 11, 2026
225b271
[MIG] shopfloor_single_product_transfer: Backport to 16.0 from 18.0
lmignon Jun 11, 2026
9cd4740
[IMP] shopfloor_single_product_transfer: Back to select_location_or_p…
lmignon Jun 12, 2026
8d1aace
[IMP] shopfloor_single_product_transfer: Improve lot scan uniqueness …
lmignon Jun 12, 2026
1f481d6
[FIX] shopfloor_single_product_transfer: Backport of Back to select_l…
lmignon Jun 17, 2026
189fc73
[DO NOT MERGE] dev dependency
lmignon Jun 11, 2026
bb36b9e
[IMP] shopfloor_single_product_transfer: Implement allow_get_work
lmignon Jun 17, 2026
06219bb
[IMP] shopfloor_single_product_transfer: Add confirmation step for se…
lmignon Jun 18, 2026
6370fc3
[IMP] shopfloor_single_product_transfer: Implement scan_location_or_p…
lmignon Jun 19, 2026
52f7e27
[FIX] shopfloor_single_product_transfer: Back to get_work on move con…
lmignon Jun 19, 2026
5c97e8d
[FIX] shopfloor_single_product_transfer: Fix lot uniqueness on quanti…
lmignon Jun 19, 2026
8f34dd5
[IMP] shopfloor_single_product_transfer: Implement ignore_no_putaway_…
lmignon Jun 22, 2026
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/shopfloor_single_product_transfer/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,
)
129 changes: 129 additions & 0 deletions shopfloor_single_product_transfer/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=================================
Shopfloor Single Product Transfer
=================================

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

.. |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/license-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%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/16.0/shopfloor_single_product_transfer
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor_single_product_transfer
: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/wms&target_branch=16.0
:alt: Try me on Runboat

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

Allow to move a single product from a location to another one.

**Table of contents**

.. contents::
:local:

Usage
=====

| **Source location selection**
| Select a source location. It must be a valid location according to the
configuration of the scenario, and there must be stock in the selected
location.

| **Move line selection**
| Select a product or a lot in this location. If an unassigned move line
for this product / lot exists in the previously selected location,
then it is selected. Otherwise, if the Allow Move Creation is enabled,
it will try to create a move line. If the Allow to process reserved
quantities option is enabled, other moves will be unreserved. If
there's unreserved goods in the location, a new move is created with
quantity equal to the unreserved goods in the location.

**Set quantity / destination location**

1. **Scan a product / lot to set the quantity** If the Do not pre-fill
quantity to pick option is enabled, it will increment the done
quantity by 1 each time the product or lot barcode is scanned. Else,
it will set the quantity done as the reserved quantity.
2. **Scan a destination location** The scanned location will be checked.
It must be a child of the current line destination location or a
child of the scenario default destination location. If this is ok,
then the move is processed.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/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/wms/issues/new?body=module:%20shopfloor_single_product_transfer%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
-------

* Camptocamp
* BCIM

Contributors
------------

- Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
- Michael Tietz (MT Software) <mtietz@mt-software.de>

Design
~~~~~~

- Jacques-Etienne Baudoux <je@bcim.be>

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-mmequignon| image:: https://github.com/mmequignon.png?size=40px
:target: https://github.com/mmequignon
:alt: mmequignon
.. |maintainer-jbaudoux| image:: https://github.com/jbaudoux.png?size=40px
:target: https://github.com/jbaudoux
:alt: jbaudoux
.. |maintainer-TDu| image:: https://github.com/TDu.png?size=40px
:target: https://github.com/TDu
:alt: TDu

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

|maintainer-mmequignon| |maintainer-jbaudoux| |maintainer-TDu|

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/16.0/shopfloor_single_product_transfer>`_ 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 shopfloor_single_product_transfer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import services
from .hooks import post_init_hook, uninstall_hook
22 changes: 22 additions & 0 deletions shopfloor_single_product_transfer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Shopfloor Single Product Transfer",
"summary": "Move an item from one location to another.",
"version": "16.0.2.0.0",
"category": "Inventory",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"maintainers": ["mmequignon", "jbaudoux", "TDu"],
"license": "AGPL-3",
"installable": True,
"auto_install": False,
"depends": ["shopfloor"],
"data": [
"data/shopfloor_scenario_data.xml",
],
"demo": [
"demo/stock_picking_type_demo.xml",
"demo/shopfloor_menu_demo.xml",
],
"post_init_hook": "post_init_hook",
"uninstall_hook": "uninstall_hook",
}
22 changes: 22 additions & 0 deletions shopfloor_single_product_transfer/data/shopfloor_scenario_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="scenario_single_product_transfer" model="shopfloor.scenario">
<field name="name">Single Product Transfer</field>
<field name="key">single_product_transfer</field>
<field name="options_edit">
{
"allow_create_moves": true,
"allow_get_work": true,
"allow_move_line_search_sort_order": true,
"allow_move_line_search_additional_domain": true,
"scan_location_or_pack_first": true,
"allow_unreserve_other_moves": true,
"allow_ignore_no_putaway_available": true,
"allow_alternative_destination": true,
"no_prefill_qty": true
}
</field>
</record>
</odoo>
18 changes: 18 additions & 0 deletions shopfloor_single_product_transfer/demo/shopfloor_menu_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="shopfloor_menu_demo_single_product_transfer" model="shopfloor.menu">
<field name="name">Single Product Transfer</field>
<field name="sequence">45</field>
<field name="profile_id" ref="shopfloor.profile_demo_1" />
<field
name="scenario_id"
ref="shopfloor_single_product_transfer.scenario_single_product_transfer"
/>
<field
name="picking_type_ids"
eval="[(4, ref('shopfloor_single_product_transfer.picking_type_single_product_transfer_demo'))]"
/>
</record>
</odoo>
20 changes: 20 additions & 0 deletions shopfloor_single_product_transfer/demo/stock_picking_type_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="picking_type_single_product_transfer_demo" model="stock.picking.type">
<field name="name">Single Product Transfer</field>
<field name="sequence_code">SPT</field>
<field name="sequence" eval="10" />
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="default_location_src_id" ref="stock.stock_location_stock" />
<field name="default_location_dest_id" ref="stock.stock_location_company" />
<field name="show_entire_packs" eval="1" />
<field name="use_create_lots" eval="0" />
<field name="use_existing_lots" eval="1" />
<field name="color" eval="5" />
<field name="code">internal</field>
<field name="show_operations" eval="1" />
<field name="display_completion_info" eval="1" />
</record>
</odoo>
85 changes: 85 additions & 0 deletions shopfloor_single_product_transfer/docs/diagram.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Diagram to generate with PlantUML (https://plantuml.com/)
#
# $ sudo apt install plantuml
# $ plantuml diagram.plantuml
#

@startuml
participant start
participant select_location
participant select_product
participant set_quantity

skinparam roundcorner 20
skinparam sequence {

ParticipantBorderColor #875A7B
ParticipantBackgroundColor #875A7B
ParticipantFontSize 17
ParticipantFontColor white

LifeLineBorderColor #875A7B

ArrowColor #00A09D
}

header <img:oca_logo.png>
title <size:35>Single Product Transfer scenario</size>

== start ==

alt #Lightgreen Successful cases
start -[#green]> select_location: **/start** \n(no ongoing move_line for user)
start -[#green]> set_quantity: **/start** \n(when an ongoing move_line is found for current user)
end

== select_location ==

alt #Pink Errors
select_location -[#red]> select_location: **/select_location**(barcode)\nif no stock in location (reserved or not)
select_location -[#red]> select_location: **/select_location**(barcode)\nif selected location doesn't match the scenario configuration
else #Lightgreen Successful cases
select_location -[#green]> select_product: **/select_location**(barcode)\nscanned location is ok (see above checks)
end

== select_product ==

alt #Pink Errors
select_product -[#red]> select_product: **/scan_product**(location_id, barcode)\nNo stock for product in location
select_product -[#red]> select_product: **/scan_product**(location_id, barcode)\nProduct scanned, but tracked by lot
select_product -[#red]> select_product: **/scan_product**(location_id, barcode)\nUnreserved stock for product\nallow_move_create disabled
select_product -[#red]> select_product: **/scan_product**(location_id, barcode)\nStock for product reserved by another move\nallow_unreserve_other_moves disabled
else #Lightgreen Successful cases
select_product -[#green]> set_quantity: **/scan_product**(location_id, barcode)\nValid product / lot / packaging scanned\n(see above checks)
select_product -[#green]> select_location: **/scan_product__action_cancel**()\n(User clicked the cancel button)
end

== set_quantity ==

note over set_quantity: general
alt #Pink Errors
set_quantity -[#red]> set_quantity: **/set_quantity**(selected_line_id, barcode)\nbarcode not found
else #Lightgreen Ask for confirmation
set_quantity -[#green]> select_location: **/set_quantity__action_cancel**(selected_line_id)\n(User clicked the cancel button)
end

note over set_quantity: product/lot/packaging scanned
alt #Pink Errors
set_quantity -[#red]> set_quantity: **/set_quantity**(selected_line_id, barcode)\nScanned product/lot not in selected line
set_quantity -[#red]> set_quantity: **/set_quantity**(selected_line_id, barcode)\nqty_done is already >= product_uom_qty
set_quantity -[#red]> set_quantity: **/set_quantity**(selected_line_id, barcode)\nnot_prefill_qty is disabled
else #Lightgreen Successful cases
set_quantity -[#green]> set_quantity: **/set_quantity**(selected_line_id, barcode, confirmation=False)\nall above checks are ok\n(increments qty for product / lot / packaging)
end

note over set_quantity: location scanned
alt #Pink Errors
set_quantity -[#red]> set_quantity: **/set_quantity**(selected_line_id, barcode, confirmation=False)\nscanned location is invalid
else #LightBlue Ask for confirmation
set_quantity -[#blue]> set_quantity: **/set_quantity**(selected_line_id, barcode, confirmation=False)\nscanned location is a child of menu's default dest location\nasks for confirmation
else #Lightgreen Successful cases
set_quantity -[#green]> select_location: **/select_location**(selected_line_id, barcode, confirmation=True)\nscanned location is a child of menu's default dest location\nposts the move
set_quantity -[#green]> select_location: **/select_location**(selected_line_id, barcode, confirmation=True)\nscanned location is a child of move_line's default dest location\nposts the move
end

@enduml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions shopfloor_single_product_transfer/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

import logging

from odoo import SUPERUSER_ID, api

from odoo.addons.shopfloor_base.utils import purge_endpoints, register_new_services

from .services.single_product_transfer import ShopfloorSingleProductTransfer as Service

_logger = logging.getLogger(__file__)


def post_init_hook(cr, registry):
_logger.info("Register routes for %s", Service._usage)
env = api.Environment(cr, SUPERUSER_ID, {})
register_new_services(env, Service)


def uninstall_hook(cr, registry):
_logger.info("Refreshing routes for existing apps")
env = api.Environment(cr, SUPERUSER_ID, {})
purge_endpoints(env, Service._usage)
24 changes: 24 additions & 0 deletions shopfloor_single_product_transfer/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * shopfloor_single_product_transfer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-20 04:45+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 4.17\n"

#. module: shopfloor_single_product_transfer
#: model:shopfloor.menu,name:shopfloor_single_product_transfer.shopfloor_menu_demo_single_product_transfer
#: model:shopfloor.scenario,name:shopfloor_single_product_transfer.scenario_single_product_transfer
#: model:stock.picking.type,name:shopfloor_single_product_transfer.picking_type_single_product_transfer_demo
msgid "Single Product Transfer"
msgstr "Trasfermento prodotto singolo"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * shopfloor_single_product_transfer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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: shopfloor_single_product_transfer
#: model:shopfloor.menu,name:shopfloor_single_product_transfer.shopfloor_menu_demo_single_product_transfer
#: model:shopfloor.scenario,name:shopfloor_single_product_transfer.scenario_single_product_transfer
#: model:stock.picking.type,name:shopfloor_single_product_transfer.picking_type_single_product_transfer_demo
msgid "Single Product Transfer"
msgstr ""
Loading
Loading