add stock_inventory_product_exhausted: prevent for removing zero quantity stock quants. Add exhausted products to inventory adjustments
This commit is contained in:
parent
e4050a6e31
commit
17cc64c522
15 changed files with 565 additions and 0 deletions
6
stock_inventory_product_exhausted/readme/BUGTRACKER.rst
Normal file
6
stock_inventory_product_exhausted/readme/BUGTRACKER.rst
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smash it by providing detailed and welcomed
|
||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_product_exhausted%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.
|
||||
1
stock_inventory_product_exhausted/readme/CONFIGURE.rst
Normal file
1
stock_inventory_product_exhausted/readme/CONFIGURE.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
The module requires no additional configuration. The `include_exhausted_products` field defaults to `False` to maintain compatibility with the original behavior.
|
||||
21
stock_inventory_product_exhausted/readme/CONTRIBUTORS.rst
Normal file
21
stock_inventory_product_exhausted/readme/CONTRIBUTORS.rst
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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-yourusername| image:: https://github.com/yourusername.png?size=40px
|
||||
:target: https://github.com/yourusername
|
||||
:alt: yourusername
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-yourusername|
|
||||
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_inventory_product_exhausted>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
3
stock_inventory_product_exhausted/readme/DESCRIPTION.rst
Normal file
3
stock_inventory_product_exhausted/readme/DESCRIPTION.rst
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This module extends the functionality of the `stock_inventory` module from the OCA/stock-logistics-warehouse repository to include exhausted products (with zero quantity) in inventory adjustments.
|
||||
|
||||
In recent versions of Odoo, when a product reaches zero available quantity, its `stock.quant` is automatically deleted. This module allows creating quants with zero quantity for exhausted products when creating a new inventory adjustment, facilitating the physical counting of these products.
|
||||
3
stock_inventory_product_exhausted/readme/DEVELOPMENT.rst
Normal file
3
stock_inventory_product_exhausted/readme/DEVELOPMENT.rst
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This is a beta version, the data model and design can change at any time without warning.
|
||||
Only for development or testing purpose, do not use in production.
|
||||
`More details on development status <https://odoo-community.org/page/development-status>`_
|
||||
6
stock_inventory_product_exhausted/readme/FEATURES.rst
Normal file
6
stock_inventory_product_exhausted/readme/FEATURES.rst
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
* **Configurable field**: Includes a boolean field `include_exhausted_products` to enable/disable the functionality
|
||||
* **Default behavior**: Maintains the original behavior of the base module when the option is disabled
|
||||
* **Support for all selection types**: Works with manual selection, by category, specific product, or all products
|
||||
* **Storable products only**: Creates quants only for products of type `product`, not for services
|
||||
* **Prevents duplicates**: Does not create duplicate quants if they already exist for the product and location
|
||||
* **User interface**: Field visible in the inventory adjustment form
|
||||
21
stock_inventory_product_exhausted/readme/USAGE.rst
Normal file
21
stock_inventory_product_exhausted/readme/USAGE.rst
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
To use this module:
|
||||
|
||||
#. Go to **Inventory > Operations > Inventory Adjustments**
|
||||
#. Create a new inventory adjustment
|
||||
#. Configure the desired locations and product selection
|
||||
#. **Enable** the "Include Exhausted Products" field if you want to include products without stock
|
||||
#. Click on "Start Inventory"
|
||||
|
||||
Use cases
|
||||
---------
|
||||
|
||||
**With the field enabled:**
|
||||
|
||||
* Zero quantity quants will be created for products that have no stock in the selected locations
|
||||
* Allows physically counting products that are exhausted in the system
|
||||
* Useful for complete inventories where you want to verify that there really is no stock of certain products
|
||||
|
||||
**With the field disabled:**
|
||||
|
||||
* Standard behavior of the original module
|
||||
* Only products that already have existing quants are included
|
||||
Loading…
Add table
Add a link
Reference in a new issue