Reviewers: ,


Please review this at http://codereview.tryton.org/230005/

Affected files:
  M sale.py


Index: sale.py
===================================================================
--- a/sale.py
+++ b/sale.py
@@ -107,7 +107,8 @@
         cost_line = {}
product_ids = [line['product'] for line in values.get('lines') or []
                 if line.get('product')]
- stockable = any(product.salable for product in product_obj.browse(product_ids))
+        stockable = any(product.type in ('stockable', 'consumable')
+            for product in product_obj.browse(product_ids))
         if cost and currency_id and stockable:
             if (values.get('currency')
                     and currency_id != values['currency']):


--
[email protected] mailing list

Reply via email to