diff --git a/CHANGELOG b/CHANGELOG index 06cff4e4d3..6918e8aa19 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Do not check consumable + Version 4.4.0 - 2017-05-01 * Bug fixes (see mercurial logs for details) @@ -9,4 +11,4 @@ Version 4.0.0 - 2016-05-02 * Add Python3 support Version 3.8.0 - 2015-11-02 -* Initial release \ No newline at end of file +* Initial release diff --git a/sale.py b/sale.py index c74cffce2a..7adb938f47 100644 --- a/sale.py +++ b/sale.py @@ -90,6 +90,7 @@ class Sale: def filter_line(line): return (line.product and line.product.type == 'goods' + and not line.product.consumable and line.quantity > 0 # Use getattr as supply_on_sale comes from sale_supply module and not getattr(line, 'supply_on_sale', False))