Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
3627 Näkymät

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. 

Avatar
Hylkää
Tekijä

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.

Tekijä

Thanks,
it works fine

Ok.. :)

Paras vastaus

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

Avatar
Hylkää
Tekijä Paras vastaus

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


Avatar
Hylkää
Paras vastaus

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).


Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 25
1541
3
helmik. 24
3291
By Product Ratkaistu
3
toukok. 24
1864
1
jouluk. 23
3163
2
syysk. 25
1312