Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2570 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
gru 24
2633
1
paź 24
3034
2
sie 24
2238
0
paź 22
1897
0
cze 21
3925