Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2639 Visualizações

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
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
dez. 24
2772
1
out. 24
3195
2
ago. 24
2341
0
out. 22
1939
0
jun. 21
4009