Skip to content

[FIX] stock: add an automated way to fix unreserve issue#79180

Closed
amoyaux wants to merge 1 commit intoodoo:13.0from
odoo-dev:13.0-unreserve-actions-arm
Closed

[FIX] stock: add an automated way to fix unreserve issue#79180
amoyaux wants to merge 1 commit intoodoo:13.0from
odoo-dev:13.0-unreserve-actions-arm

Conversation

@amoyaux
Copy link
Copy Markdown
Contributor

@amoyaux amoyaux commented Oct 29, 2021

It happens that the stock.quant.reserved_quantity and stock.move.line.product_qty
for the same parameters are not equals (due to some bugs in the past)

It could implies that it doesn't exist enough reserved quantity on the
quant when a user try to unreserve a stock.move.line resulting in the
UserError 'It is not possible to unreserve more products of %s than you
have in stock'

However on current stable version (13.0 and 14.0) a lot of PR already
fixed a lot of issue as:
#69377
#66347
#61758
#54355
#43180
#70975
for example (there is more than that)

So the idea is to provide a way to unlock the database manually for
stable but not in the new version to be able to analyse them and find
possible bugs responssible for the desynchronization.

The server action check all the quants and their relative move line
to check if match correctly. If not it will remove the reservation
from both. It could remove the reservation from some pickings and
stock.move

related to #62139

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants