Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2637 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
dic 24
2760
1
ott 24
3189
2
ago 24
2333
0
ott 22
1937
0
giu 21
4008