Commit Graph

9 Commits

Author SHA1 Message Date
Atchuthan, Sodexis
f6189a5ed0 [FIX] replaced attribute digits_compute to digits for new API 2016-11-21 18:54:50 +05:30
Atchuthan, Sodexis
fded3db3a4 [FIX] moved field potential_qty to stock_available module 2016-11-04 16:30:17 +05:30
Cyril Gaudin
cb496f9088 bom stock: small improvements and add test for field choice 2016-03-22 12:03:55 +01:00
Laetitia Gangloff
8fbf97a674 stock_available / stock_available_mrp : add possibility to choose which field use to compute potential 2016-03-22 12:03:52 +01:00
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
Alexandre Fayolle
7cc0b2beab product_available improvements
* fix the dependencies for the computed field

* use api.multi instead of api.one to avoid calling
  super()._immediately_usable_qty in a loop (this improves perfs on a tree view
  display)
2016-03-21 12:11:19 +01:00
Atchuthan, Sodexis
081adb63c5 [9.0][PORT] Stock available 2016-02-10 11:41:48 +05:30
Lionel Sausin
fe44a2cbe3 PEP8 2015-09-10 15:25:49 +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