Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2748 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
dec. 24
2991
1
oct. 24
3432
2
aug. 24
2549
0
oct. 22
2052
0
iun. 21
4119