Don't check line with supply_on_sale
issue5058 review22561003
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -5,6 +5,7 @@ depends:
|
||||
sale
|
||||
stock
|
||||
extras_depend:
|
||||
sale_supply
|
||||
stock_supply
|
||||
xml:
|
||||
sale.xml
|
||||
|
||||
Reference in New Issue
Block a user