Add wizard to clean location of cancelled production
Consider the following stock levels:
* Part A: 10 pieces on stock, 0 pieces on production
* Part B: 10 pieces on stock, 0 pieces on production
* Product 1: 0 pieces on stock, 0 pieces on production
Create a production for Product 1:
* Input: 1x Part A, 1x Part B
* Output: 1x Product 1
Perform the following production state transitions:
* Draft -> Wait
* Waiting -> Assign (Part A and Part B are 'assigned')
* Assigned -> Run (Part A and Part B are 'done')
* Running -> Wait
* Waiting -> Draft
* Draft -> Cancel
The stock levels after these transitions are as follows:
* Part A: 9 pieces on stock, 1 pieces on production
* Part B: 9 pieces on stock, 1 pieces on production
* Product 1: 0 pieces on stock, 0 pieces on production
One would assume that all moves (input and output) are cancelled if the
corresponding production is cancelled. In this case however all products on the
input side are moved from the stock into production and stay there being marked
as 'done'. The output side is cancelled as expected.
Tryton version: 4.0