# Production Planned Date and Planned Start Date autocompletion

**URL:** https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949
**Category:** Ideas
**Created:** [February 3, 2024, 3:17pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949 "2024-02-03T15:17:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [February 3, 2024, 3:17pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/1 "2024-02-03T15:17:35Z")

</div>

For planning production using only the production module without other modules such as production\_work:  
In production sometimes you will start with the Planned Start Date.  
I know when will start the production. So I set the Planned Start Date.

Then I calculate manually how long the production will take, and I set the Planned Date.  
But then I lose the Planned Start Date, as it is auto-completed with the value from the Planned Date.

I have read the opinion that @ced has regarding production planning in Tryton: it is better to use an external tool like Frepple.

Still I think some very simple planning can be done in Tryton, but right now it is very annoying to use the Planned Date and Planned Start Date because if I change one I lose the other.

As usual, for me personally I can override in a custom module this behavior, so I am not asking for help with this issue.

I would like to ask if there is any rationale for auto-completing the planned start date from the planned date.

If not then I would like to propose the following:

1. Let the user change the Planned Date and Planned Start Date freely.
2. Have a check that Planned start date is not after Planned Date.
3. If either is left empty at saving, then autocomplete the missing value from the other.

If I get positive feed-back I would like to create the merge request implementing these changes myself.

PS: I know that there are more production modules such as production\_work that may change the values of the production dates depending on work.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 3, 2024, 3:24pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/2 "2024-02-03T15:24:19Z")

</div>

Usually you know when you need the production to be done and from there you compute back when it should start depending on the time it takes.

For me the current behavior is mainly good because it makes the computation for the user. But I think we are missing the case where we do not know the lead time of the production. In such case I agree that we should not compute any dates.

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [February 3, 2024, 3:39pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/3 "2024-02-03T15:39:01Z")

</div>

> [@ced](#):
>
> Usually you know when you need the production to be done and from there you compute back when it should start depending on the time it takes.

I have this customer. He wants a custom production that he orders today to be ready also today, so I need to start a week ago.  
For me this is one case when you know when the delivery date should be so you can calculate backwards from there to know when to start.

My experience with all my suppliers is: I place an order taking into account the expected lead time and then the supplier gives me a delivery date based on order date + their order queue + lead time for my order.

> [@ced](#):
>
> For me the current behavior is mainly good because it makes the computation for the user. But I think we are missing the case where we do not know the lead time of the production. In such case I agree that we should not compute any dates.

I think we can have the same behavior, just not with on\_change, but to set the missing values on saving.

Do I have a go-ahead from you for such a merge request?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 3, 2024, 3:40pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/4 "2024-02-03T15:40:56Z")

</div>

> [@dotbit](#):
>
> I think we can have the same behavior, just not with on\_change, but to set the missing values on saving.

This will be bad design. The user need to know what he is saving.

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [February 3, 2024, 10:31pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/5 "2024-02-03T22:31:15Z")

</div>

> **[Draft: Set Planned Start Date only if lead time is available and it is not...](https://foss.heptapod.net/tryton/tryton/-/merge_requests/1199)**
>
> Following https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949 Closes

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 4, 2024, 8:49am UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/6 "2024-02-04T08:49:44Z")

</div>

Please fill and link to an issue.

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [February 4, 2024, 6:21pm UTC](https://discuss.tryton.org/t/production-planned-date-and-planned-start-date-autocompletion/6949/7 "2024-02-04T18:21:44Z")

</div>

> **[Set Planned Start Date only if lead time is available and it is not already...](https://foss.heptapod.net/tryton/tryton/-/issues/12992)**
>
> Planned date and Planned Start Date are set depending on which one is completed first. I propose to make Planned Start Date be set in a similar manner...
