changeset 35b76125ccf4 in modules/stock_forecast:default
details:
https://hg.tryton.org/modules/stock_forecast?cmd=changeset&node=35b76125ccf4
description:
Fallback to unit price of 0 when creating forecast moves
issue10878
diffstat:
forecast.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r df61cde48b7b -r 35b76125ccf4 forecast.py
--- a/forecast.py Sun Oct 03 13:50:33 2021 +0200
+++ b/forecast.py Tue Oct 19 00:10:09 2021 +0200
@@ -440,7 +440,7 @@
distribution = self.distribute(delta, nb_packet)
unit_price = None
if self.forecast.destination.type == 'customer':
- unit_price = self.product.list_price
+ unit_price = self.product.list_price or 0
unit_price = Uom.compute_price(self.product.default_uom,
unit_price, self.uom)