Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c403cf41da | ||
| 6c3052902d | |||
| e2400b75e3 | |||
| cbee1f4815 |
7
sale.py
7
sale.py
@@ -80,7 +80,8 @@ class Sale(metaclass=PoolMeta):
|
|||||||
if (sale.state in cls._states_cached
|
if (sale.state in cls._states_cached
|
||||||
and sale.untaxed_amount_cache is not None
|
and sale.untaxed_amount_cache is not None
|
||||||
and sale.tax_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
|
untaxed_amount[sale.id] = sale.untaxed_amount_cache
|
||||||
total_discount[sale.id] = sale.total_discount_cache
|
total_discount[sale.id] = sale.total_discount_cache
|
||||||
if compute_taxes:
|
if compute_taxes:
|
||||||
@@ -344,8 +345,8 @@ class Line(metaclass=PoolMeta):
|
|||||||
else:
|
else:
|
||||||
self.bought_pizza = False
|
self.bought_pizza = False
|
||||||
|
|
||||||
def get_production(self):
|
def get_production(self, product_quantities ):
|
||||||
"Return production for the sale line"
|
"Return production for the sale line"
|
||||||
Production = super(Line, self).get_production()
|
Production = super(Line, self).get_production(product_quantities)
|
||||||
|
|
||||||
return Production
|
return Production
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[tryton]
|
[tryton]
|
||||||
version=6.4
|
version=7.0.0
|
||||||
depends:
|
depends:
|
||||||
ir
|
ir
|
||||||
res
|
res
|
||||||
|
|||||||
Reference in New Issue
Block a user