Commit Graph

4 Commits

Author SHA1 Message Date
Lionel Sausin
749f69e669 [IMP] Decouple the quantity for templates and variants
There are cases where we dot NOT want to simply sum the quantities of all the
variants. For example when dealing with manufacturing capacities, we may have
to chose between variants because we can't make ALL of them with the same
components.

So instead of a simple non-modular implementation, we'll let each module define
his own implementation of how to compute the product template's quantity
available for sale.

Conflicts:
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
2016-03-21 14:36:11 +01:00
Atchuthan, Sodexis
7599471de7 [9.0][PORT] Stock available immediately 2016-02-10 11:42:16 +05:30
Lionel Sausin
aa6478d244 Fix the beta lint checks of Travis 2015-09-16 09:35:18 +02:00
Lionel Sausin
3f45564185 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.
2015-09-09 15:03:40 +02:00