Follow the below steps to fix the bug for odoo stock issue.
In order to implement it you need to follow below steps:
Debug mode
Technical/server actions
Create
Action name: e.g. fix unreserved qty
model: ir.actions.server
Action to do: “execute python code”
copy/paste the fix underneath the pre-existing code
“save”
“create contextual action”
Refresh page
Action/fix “fix unreserved qty”
Wait for it to load
“remove contextual action”
Action/delete
It happens because the reserved quantity in your inventory does not reflect the one on your pickings. It’s probably due to a small configuration change while some pickings where open.
An easy way to remove it is to create a server action that executes this code
https://gist.github.com/jaa-odoo/8eb0a7250e1cecb2e412563ae6346052
Solution Code.
It should repair all the inconsistencies in your data.
Fix Decimal for stock unreversed issue.
https://gist.github.com/jaa-odoo/a6315513bf7b2d8525a60c6f36c0f897
code