Created on 2021-06-08.09:07:02 by sylviegar, last changed 3 weeks ago by ced.
The standard is to not display the warehouse in list views (like for company) to keep simple view by default for the majority who have only one warehouse. The warehouse can be added in different view with customize view or by implementing https://discuss.tryton.org/t/per-user-list-view-definition/3729.
Anyway this is out of the issue topic, I close this one.
I confirm that there is no problem if the advance plan is generated for all warehouses.
Is it possible to add the warehouse in the view ?
I do not think the generate plans should delete plan for warehouses that were not requested.
But the production supply should not delete productions from none requested warehouses (issue10531) (and the supply wizard should ask for the warehouses (issue10532)).
So can you confirm that there is no problem if the early plan is generated for all the warehouses?
I reproduced the same error, it seems that the open plans are only deleted on the selected warehouse, however the deleted production movements do not have a defined warehouse.
Wouldn't it be the solution to also delete open plans that no longer have an origin?
I did the following actions:
- launching the planner
- launching the early planning
Everything is OK
- Launching the planner
- launching the ealry planning
Empty lines appear
I guess it is because the production order was deleted after the generation of the early planning.
I just checked in the database and all the exits have an origin.
I have an example where the origin is production,835 but the id 835 does not exist in the production table
There can be issues without any origin if there are stock moves planned that are not linked to a shipment or a production.
I generated a new plan after the planner calculation. I had no issues in process or completed, they were all in open status. So I have about 250 empty lines out of more than 1000 open requests. If all open lines had been deleted I should have no empty lines. Do you have any idea about this problem?
I do not really see any problem. Open early planning are deleted when a new plan is generated. So of course you need to generate a new one once the planner is run.
For processing early planning we can not delete them as they are processing so we keep the information.
in the module stock_quantity_early_planning the lines in open status are not deleted at each launch.
The problem is that at each launch of the planner the production requests are deleted but the link is stored in the origin field of the stock_quantity_early_plan table, so I have a large number of empty lines in the stock_quantity_early_planning screen.
The problem also exists on the other statuses from the moment the production has not been validated, the link points to a record that no longer exists
status: testing -> invalid
|2021-06-28 08:41:08||sylviegar||set||messages: + msg68441|
nosy: + 2cadz
|2021-06-09 10:54:12||sylviegar||set||messages: + msg68164|
|2021-06-09 10:37:59||ced||set||messages: + msg68163|
|2021-06-09 10:23:20||sylviegar||set||messages: + msg68162|
status: need-eg -> testing
|2021-06-09 09:42:38||sylviegar||set||messages: + msg68160|
nosy: + ced
status: unread -> need-eg
title: stock_quantity_early_planning -> Origin delete from early planning