Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2555 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 24
2613
1
říj 24
3021
2
srp 24
2226
0
říj 22
1872
0
čvn 21
3907