İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2582 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ara 24
2651
1
Eki 24
3047
2
Ağu 24
2250
0
Eki 22
1914
0
Haz 21
3945