Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2889 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ธ.ค. 24
3323
1
ต.ค. 24
3687
2
ส.ค. 24
2716
0
ต.ค. 22
2162
0
มิ.ย. 21
4286