Commit Graph

10 Commits

Author SHA1 Message Date
Jasmin Solanki
bbb8974698 [IMP] stock_available: black, isort, prettier 2022-01-21 16:58:21 +05:30
Florian da Costa
3f69e2b738 Add depends_context to quantity computed field 2022-01-21 16:58:11 +05:30
ps-tubtim
c06023fb4d [IMP] stock_available: black, isort 2022-01-21 16:58:11 +05:30
Sergio Teruel
62bb120732 [MIG] stock_available: Migration to v12.0 2022-01-21 16:58:11 +05:30
Kiko Peiro
b0519bf0e4 [MIG] stock_available: Migration to 11.0 2022-01-21 16:58:10 +05:30
François Honoré
6accb1f899 [ADD] Add search function for immediately_usable_qty computed field + related unit test
Increase version number of the module
2022-01-21 16:58:10 +05:30
Cédric Pigeon
8178b608e4 [10.0]stock_available: improve computation performance
[CHG] improve code regarding code review

[ADD] add test

[CHG] optimize stock computation by avoiding to call useless compute
2022-01-21 16:58:10 +05:30
SodexisTeam
cbec46f9aa [10.0][MIG] stock_available & stock_available_immediately (#219) 2022-01-21 16:58:10 +05:30
Lionel Sausin
61f064db9b Revert changes to computation of _immediately_usable_qty
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
2022-01-21 16:58:10 +05:30
Giovanni francesco Capalbo
d25b3043c5 [FIX] searching on products, leaving full calculations
not using internal qty_available that seems not to
take in consideration reserved quants.

[ADD] Tests
2022-01-21 16:58:10 +05:30