79199377

Date: 2024-11-18 09:40:09
Score: 3
Natty:
Report link

I did some research and with the help of @CZoellner. This is how I've updated the onhand quantity in model stock.quant

env['stock.quant']._update_available_quantity(record.x_studio_tools,record.x_studio_stock_location,1).

Thank you @CZoellner

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @CZoellner
  • User mentioned (0): @CZoellner
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dape