Skip to Content
Menu
This question has been flagged
1 Atsakyti
2473 Rodiniai

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.

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
gruod. 24
2481
1
spal. 24
2885
2
rugp. 24
2145
0
spal. 22
1827
0
birž. 21
3860