Turning Validated Invoice back to draft does not increase stock

Hello there,

I am facing a weird issue on dolibarr 8.0.6

When validating an invoice everything works as expected and the correct number of products is removed from stock as it should. But when I try to edit a validated invoice, turning it back to draft status, although it is being noted that the stock will be increased it just never happens.

When I validate the invoice again it just removes the number of products again which causes a serious stock balance problem obviously.

Is this a bug of my dolibarr version or is there any kind of configuration I should have done for this to work properly?

Seems like bug to me, have you tried latest stable version.