Tryton - Issues

 

Issue6977

Title Zero quantity is updated with expected_quantity when saving new inventory line
Priority bug Status chatting
Superseder Nosy List ced, mrichez, tbruyere, yangoon
Type Components stock
Assigned To Keywords
Reviews

Created on 2017-11-30.10:41:41 by mrichez, last changed by ced.

Messages
msg37105 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2017-11-30.15:03:49
It is a side effect of the test in update_values4complete. Maybe the test should take care of the special case when quantities are zero.
msg37102 (view) Author: [hidden] (mrichez) Date: 2017-11-30.11:10:07
This is happening only with quantity = 0, otherwise it's ok.
msg37101 (view) Author: [hidden] (yangoon) Date: 2017-11-30.11:00:47
JFTR: this works in 4.0 as expected, i.e. quantity is kept on saving. Looks like a regression was introduced (client side?).
msg37099 (view) Author: [hidden] (mrichez) Date: 2017-11-30.10:41:41
We use inventory for correcting stock errors. Sometimes a product has still a stock quantity in Tryton, but actually warehouse stock is empty. So we create an inventory, and then a new inventory line with missing product and quantity = 0. When saving, quantity is updated with expected quantity. Quantity has to be updated again with 0 and then it's ok.
History
Date User Action Args
2017-11-30 15:03:49cedsetnosy: + ced
messages: + msg37105
2017-11-30 11:10:07mrichezsetmessages: + msg37102
2017-11-30 11:00:47yangoonsetstatus: unread -> chatting
nosy: + yangoon
messages: + msg37101
2017-11-30 10:41:41mrichezcreate

Showing 10 items. Show all history (warning: this could be VERY long)