Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2674 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 24
2810
1
thg 10 24
3247
2
thg 8 24
2405
0
thg 10 22
1970
0
thg 6 21
4020