Skip to content

[16.0][ADD] shopfloor_reception_stock_available(_mobile) - #1305

Open
nicolas-delbovier-acsone wants to merge 3 commits into
OCA:16.0from
acsone:16.0-add-shopfloor_reception_stock_available
Open

nicolas-delbovier-acsone wants to merge 3 commits into
OCA:16.0from
acsone:16.0-add-shopfloor_reception_stock_available

Conversation

@nicolas-delbovier-acsone

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Oct 19, 2026 •

Copy link
Copy Markdown

Business Rationale

When a product's immediately_usable_qty is negative, it indicates that current demand (e.g., confirmed sale orders) exceeds available stock. During reception:

  • Incoming items for negative stock products are urgent.
  • Surfacing this negative quantity directly to warehouse operators on their mobile devices allows them to prioritize processing these reception lines first or route the incoming stock to a more "dynamic" location instead of standard putaway.
image

cc @jbaudoux

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @jbaudoux, @mmequignon, @TDu, @sebalix, @simahawk,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor Module shopfloor mod:shopfloor_reception_stock_available Module shopfloor_reception_stock_available mod:shopfloor_reception_stock_available_mobile Module shopfloor_reception_stock_available_mobile labels Oct 19, 2026

@jbaudoux jbaudoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the uom ?

@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-add-shopfloor_reception_stock_available branch from 25b986f to 83ad240 Compare October 19, 2026 14:19
Comment thread shopfloor/actions/data.py Outdated

@lmignon lmignon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little comment but looks great otherwise.

@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-add-shopfloor_reception_stock_available branch from 83ad240 to 4d3d9ab Compare October 20, 2026 12:31
Shopfloor based on `stock_available` module.""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add at least me as maintainer (jbaudoux)

Comment thread shopfloor/actions/data.py
Comment on lines +187 to +193
def _add_quants_context(self, record):
# Incoming moves should not restrict their quants computations
# to origin location
if record.location_id.usage != "supplier":
record = record.with_context(location=record.location_id.id)

return record

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what was that used for, outside receptions?

What about reception of returns from customer?

The immediately_usable_qty should be bound to the warehouse of the picking type. The warehouse needs to be given in the context.

…oming stock records

When serializing `stock.move` and `stock.move.line` records, `record.location_id.id`
was injected into the evaluation context unconditionally. For incoming moves from
suppliers (`usage == 'supplier'`), setting this location context forces downstream
quant and stock availability computations to evaluate against the vendor virtual location.
@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-add-shopfloor_reception_stock_available branch from 4d3d9ab to 530510c Compare October 22, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_reception_stock_available_mobile Module shopfloor_reception_stock_available_mobile mod:shopfloor_reception_stock_available Module shopfloor_reception_stock_available mod:shopfloor Module shopfloor series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants