Consider "Shipping date" set in a sale as "Planned date" in a shipment

I need some help using shipping date correctly.

When I do the following:

  1. create a Sale with a “Shipping date” set (which for me means “do not ship before this date”)
  2. Process this Sale

a Shipment is created, but the “Planned date” of this shipment and all the moves is today.

I would expect the “Planned date” to be at the earliest the “Shipping date”.

Am I thinking wrong, is there a good reason for the current behaviour?

I have trytond-cron running and a task “Reschedule Customer shipments” created.
Do I miss something?

Thanks.

The sale set the planned shipping date of the shipment to the shipping date if it is after the earliest date that the product can be shipped (which is the lead time added to the sale date).
If no lead time is defined for the product then the system can not determine when the shipment can be planned so it does not plan it.

Thanks a lot for the quick answer and the explanation, works as expected now when a new Sale is created.

I have a follow-up question:
Already existing Shipments in state “waiting” keep their planned date when the lead time of a product changes, they are not rescheduled.

When I reset the Shipment to draft and then delete it, a new Shipment is created, based on the Sale, with the expected planned date.

Is there a possibility to reschedule all existing waiting shipments after the lead time of a product changed?
For example when a user set a wrong lead time by mistake and corrects it after creating some Sales?

No this is a case we did not think it needed automation.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.