Skip to Content
Menu
This question has been flagged

I am building a "leftover" module, I added a boolean column "use leftover" on move_raw_ids (stock.move relation). 

_inhirit = 'stock.move'
use_leftover = fields.Boolean(default=False)

What I want is when use_leftover is true, then Consumed should be zero, but To consume as it should be. Also, I don't want to change the quantity on hand and forecasted.

Avatar
Discard
Author Best Answer

I found the answer. if I make the state of stock_move "cancel", on hand and forecasted will not change

Avatar
Discard
Related Posts Replies Views Activity
3
Dec 24
1722
1
Oct 24
1909
2
Aug 24
1581
0
Oct 22
1407
0
Jun 21
3407