[FIX] Schedule jobs even if their next time has passed.
[odoo/odoo.git] / addons / mrp / schedulers.py
index 917fcef..3d4d6a9 100644 (file)
@@ -198,7 +198,7 @@ class mrp_procurement(osv.osv):
                     if reste > 0:
                         qty += op.qty_multiple - reste
                     newdate = DateTime.now() + DateTime.RelativeDateTime(
-                            days=op.product_id.seller_delay)
+                            days=int(op.product_id.seller_delay))
                     if op.product_id.supply_method == 'buy':
                         location_id = op.warehouse_id.lot_input_id
                     elif op.product_id.supply_method == 'produce':