4 Commits
6.4 ... 7.0

2 changed files with 5 additions and 4 deletions

View File

@@ -80,7 +80,8 @@ class Sale(metaclass=PoolMeta):
if (sale.state in cls._states_cached
and sale.untaxed_amount_cache is not None
and sale.tax_amount_cache is not None
and sale.total_amount_cache is not None):
and sale.total_amount_cache is not None
and sale.total_discount_cache is not None):
untaxed_amount[sale.id] = sale.untaxed_amount_cache
total_discount[sale.id] = sale.total_discount_cache
if compute_taxes:
@@ -344,8 +345,8 @@ class Line(metaclass=PoolMeta):
else:
self.bought_pizza = False
def get_production(self):
def get_production(self, product_quantities ):
"Return production for the sale line"
Production = super(Line, self).get_production()
Production = super(Line, self).get_production(product_quantities)
return Production

View File

@@ -1,5 +1,5 @@
[tryton]
version=6.4
version=7.0.0
depends:
ir
res