跳至内容
菜单
此问题已终结

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.

形象
丢弃
编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
3
12月 24
2720
1
10月 24
3105
2
8月 24
2295
0
10月 22
1926
0
6月 21
3962