Fix delta computation
This commit is contained in:
1 parent
ef16b670d4
commit
9bc170b22e
1 file changed
+1
-1
+1
-1
@@ -221,7 +221,7 @@ class ForecastLine(OSV):
|
||||
move_obj = self.pool.get('stock.move')
|
||||
uom_obj = self.pool.get('product.uom')
|
||||
delta = line.forecast.to_date - line.forecast.from_date
|
||||
delta = delta.days
|
||||
delta = delta.days + 1
|
||||
nb_packet = int(line.quantity/line.minimal_quantity)
|
||||
distribution = self.distribute(delta, nb_packet)
|
||||
unit_price = False
|
||||
|
||||
Reference in new issue
Block a user