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

After Manufacturing order done , I had to add new lines to same manufacturing orders and found that it had reserved the original ones with no qty consumed and also reserved the new added lines. Trying to unreserve MO but it does not work. 


In inventory stock report it shows reserved qty but not identified which app is causing this reserve 


Finally , I am not able to unreserve the reserved qty. 

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank You for your reply,
I created new server action as descried below but the action created is not appearing in inventory location

Please click "Create Contextual Action" then it will appear. Screenshot added along with answer.

Tác giả

Thanks,
it works fine

Ok.. :)

Câu trả lời hay nhất

Enable debug mode, go to Settings->Technical->Sever Actions


Please create the following server action,

Action Name : Unreserve Quant

Model : Quants

Action to Do : Execute Python Code

Code : 

for record in records:
  if record.reserved_quantity > 0:
    record.write({'reserved_quantity':0})


Go to --> Inventory and unreserve

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

Thank you for your reply, 

I hade changed the qty several time during MO process and now the MO is done but the qty still reserved


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

When you want to replace a component then remove the qty requirement and the qty reserved for the component not to be used. (Requirement qty to the right, reserved to the left).


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1409
3
thg 2 24
3024
By Product Đã xử lý
3
thg 5 24
1730
1
thg 12 23
2981
2
thg 1 25
1192