Don't check line with supply_on_sale

issue5058
review22561003
This commit is contained in:
Cédric Krier
2015-10-21 18:28:07 +02:00
parent 80dfb49d16
commit 484f6ed8d2
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -89,7 +89,9 @@ class Sale:
def filter_line(line):
return (line.product
and line.product.type == 'goods'
and line.quantity > 0)
and line.quantity > 0
# Use getattr as supply_on_sale comes from sale_supply module
and not getattr(line, 'supply_on_sale', False))
def get_delta(date):
'Compute quantity delta at the date'
+1
View File
@@ -5,6 +5,7 @@ depends:
sale
stock
extras_depend:
sale_supply
stock_supply
xml:
sale.xml