mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Commit 6c16913 changed the way we compute the immediately_usable_qty: instead of using the virtual stock, we used the sum of quants without reservations. But a quant may actually be reserved and still be available (for example it may be reserved for an internal move).
Fixes https://github.com/OCA/stock-logistics-warehouse/issues/79
Remove loop and use correct decorator
Restore the features of stock_available_immediately
The previous fix restored stock_available but then there was no way to exclude the incomming moves from the count. This belongs in stock_available_immediately, restoring it cleanly.
This commit also takes care to respect the distinction between templates and variants, so it should fix https://github.com/OCA/stock-logistics-warehouse/issues/73 too.
Restore the qty avail. to promise on variant treeview
PEP8
Stock available to promise ========================== This module proposes several options to compute the quantity available to promise for each product. This quantity is based on the projected stock and, depending on the configuration, it can account for various data such as sales quotations or immediate production capacity. This can be configured in the menu Settings > Configuration > Warehouse. Configuration ============= By default, this module computes the stock available to promise as the virtual stock. To take davantage of the additional features, you must which information you want to base the computation, by checking one or more boxes in the settings: `Configuration` > `Warehouse` > `Stock available to promise`. Usage ===== This module adds a field named `Available for sale` on the Product form. Various additional fields may be added, depending on which information you chose to base the computation on. Credits ======= Contributors ------------ * Lionel Sausin (Numérigraphe) <ls@numerigraphe.com> * many others contributed to sub-modules, please refer to each sub-module's credits Maintainer ---------- .. image:: http://odoo-community.org/logo.png :alt: Odoo Community Association :target: http://odoo-community.org This module is maintained by the OCA. 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. To contribute to this module, please visit http://odoo-community.org.