تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2633 أدوات العرض

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
ديسمبر 24
2760
1
أكتوبر 24
3189
2
أغسطس 24
2333
0
أكتوبر 22
1937
0
يونيو 21
4007