13 Commits

Author SHA1 Message Date
ferran-73
59d675a2e7 [14.0][FIX] stock_available: dict.record.type is undefined 2022-12-19 12:05:25 +01:00
Florian da Costa
5370b80747 [MIG] stock_available: Migration to 14.0 2020-12-26 15:00:37 +01:00
ps-tubtim
b546d23d27 [MIG] stock_available: Migration to 13.0 2020-12-24 22:19:28 +01:00
Tony Gu
f45e59528a [Fix] use the same view id for differnt view using in product and product template 2020-12-24 22:19:28 +01:00
Sergio Teruel
5f885c5548 [MIG] stock_available: Migration to v12.0 2020-12-24 22:19:28 +01:00
Valentino
8dca8ed263 [ADD] Use same decorator on product.product as on product.template tree view. 2020-12-24 22:19:28 +01:00
Alexandre Saunier
8577b7e13a [FIX] Improve migration to 11.0 2020-12-24 22:19:28 +01:00
Kiko Peiro
de44676e01 [MIG] stock_available: Migration to 11.0 2020-12-24 22:19:28 +01:00
David Vidal
a5ca2e154a [MIG] stock_available_sale: Migration to 10.0 2020-12-24 22:19:28 +01:00
SodexisTeam
3ca3ea1061 [10.0][MIG] stock_available & stock_available_immediately (#219) 2020-12-24 22:19:28 +01:00
Laetitia Gangloff
6576d1fb2c stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2020-12-24 22:19:28 +01:00
Atchuthan, Sodexis
3cdb01ba16 [9.0][PORT] Stock available 2020-12-24 22:19:28 +01:00
Lionel Sausin
3cce4ff7e8 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
2020-12-24 22:19:28 +01:00