Skip to content
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ addon | version | maintainers | summary
[stock_available_location_get_domain](stock_available_location_get_domain/) | 18.0.1.0.0 | | This is a technical helper module in order to reuse the standard _get_domain_locations() function for locations and not quants
[stock_available_unreserved](stock_available_unreserved/) | 18.0.2.0.0 | <a href='https://github.com/LoisRForgeFlow'><img src='https://github.com/LoisRForgeFlow.png' width='32' height='32' style='border-radius:50%;' alt='LoisRForgeFlow'/></a> | Quantity of stock available for immediate use
[stock_free_quantity](stock_free_quantity/) | 18.0.1.1.0 | | Stock Free Quantity
[stock_move_available_unreserved](stock_move_available_unreserved/) | 18.0.1.0.0 | <a href='https://github.com/aleboldro02'><img src='https://github.com/aleboldro02.png' width='32' height='32' style='border-radius:50%;' alt='aleboldro02'/></a> | Show unreserved available quantity on stock moves
[stock_picking_product_availability_inline](stock_picking_product_availability_inline/) | 18.0.1.0.0 | <a href='https://github.com/CarlosRoca13'><img src='https://github.com/CarlosRoca13.png' width='32' height='32' style='border-radius:50%;' alt='CarlosRoca13'/></a> | Show product availability in product drop-down of picking form view.

[//]: # (end addons)
Expand Down
90 changes: 90 additions & 0 deletions stock_move_available_unreserved/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
===============================
Stock Move Available Unreserved
===============================

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

.. |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--availability-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-availability/tree/18.0/stock_move_available_unreserved
:alt: OCA/stock-logistics-availability
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-availability-18-0/stock-logistics-availability-18-0-stock_move_available_unreserved
: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-availability&target_branch=18.0
:alt: Try me on Runboat

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

This module shows the unreserved available quantity on stock moves.

The value is computed from stock quants for the move product and source
location. Unlike the standard stock move availability, it is not capped
by the move demand.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-availability/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-availability/issues/new?body=module:%20stock_move_available_unreserved%0Aversion:%2018.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
-------

* Dealtech Srl

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

- `Dealtech Srl <https://dealtech.eu/>`__:

- Alessandro Boldrini

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

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

|maintainer-aleboldro02|

This module is part of the `OCA/stock-logistics-availability <https://github.com/OCA/stock-logistics-availability/tree/18.0/stock_move_available_unreserved>`_ 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_move_available_unreserved/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2026 Dealtech Srl - Alessandro Boldrini
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
15 changes: 15 additions & 0 deletions stock_move_available_unreserved/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2026 Dealtech Srl - Alessandro Boldrini
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Move Available Unreserved",
"summary": "Show unreserved available quantity on stock moves",
"version": "18.0.1.0.0",
"development_status": "Beta",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-availability",
"author": "Dealtech Srl, Odoo Community Association (OCA)",
"maintainers": ["aleboldro02"],
"license": "AGPL-3",
"depends": ["stock"],
"data": ["views/stock_move_views.xml"],
}
4 changes: 4 additions & 0 deletions stock_move_available_unreserved/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2026 Dealtech Srl - Alessandro Boldrini
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import stock_move
25 changes: 25 additions & 0 deletions stock_move_available_unreserved/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2026 Dealtech Srl - Alessandro Boldrini
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import api, fields, models


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

available_unreserved_quantity = fields.Float(
string="Available quantity",
compute="_compute_available_unreserved_quantity",
digits="Product Unit of Measure",
help="Unreserved quantity available for this product in the source location.",
)

@api.depends("product_id", "location_id")
def _compute_available_unreserved_quantity(self):
Quant = self.env["stock.quant"]
for move in self:
move.available_unreserved_quantity = (
Quant._get_available_quantity(move.product_id, move.location_id)
if move.product_id.is_storable and move.location_id
else 0.0
)
3 changes: 3 additions & 0 deletions stock_move_available_unreserved/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions stock_move_available_unreserved/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Dealtech Srl](https://dealtech.eu/):
- Alessandro Boldrini
3 changes: 3 additions & 0 deletions stock_move_available_unreserved/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module shows the unreserved available quantity on stock moves.

The value is computed from stock quants for the move product and source location. Unlike the standard stock move availability, it is not capped by the move demand.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading