add stock_inventory_product_exhausted: prevent for removing zero quantity stock quants. Add exhausted products to inventory adjustments

This commit is contained in:
Luis 2025-10-01 13:27:34 +02:00
parent e4050a6e31
commit 17cc64c522
15 changed files with 565 additions and 0 deletions

View 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