From cd7ab541b7c2f2e9b9afabbb8e7b1b685dcd0e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 4 Aug 2011 16:06:45 +0200 Subject: [PATCH] removed trailing whitespaces --- forecast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forecast.py b/forecast.py index 88f26534e2..158e967b65 100644 --- a/forecast.py +++ b/forecast.py @@ -257,7 +257,7 @@ class ForecastLine(ModelSQL, ModelView): unit_price = False if line.forecast.destination.type == 'customer': unit_price = line.product.list_price - unit_price = uom_obj.compute_price(line.product.default_uom, + unit_price = uom_obj.compute_price(line.product.default_uom, unit_price, line.uom) moves = [] @@ -280,7 +280,7 @@ class ForecastLine(ModelSQL, ModelView): def cancel_moves(self, lines): move_obj = Pool().get('stock.move') - move_obj.write([m.id for l in lines for m in l.moves], + move_obj.write([m.id for l in lines for m in l.moves], {'state': 'cancel'}) move_obj.delete([m.id for l in lines for m in l.moves]) @@ -413,7 +413,7 @@ class ForecastComplete(Wizard): stock_destination=[forecast.destination.id], stock_date_start=data['form']['from_date'], stock_date_end=data['form']['to_date']): - return product_obj.products_by_location([forecast.location.id], + return product_obj.products_by_location([forecast.location.id], with_childs=True, skip_zero=False) def _set_default_products(self, data):