Do not check consumable

issue6482
review34101002
This commit is contained in:
Cédric Krier
2017-05-30 23:50:42 +02:00
parent 6a706fc85c
commit da62f0723b
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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
* Initial release
+1
View File
@@ -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))