Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[REF] stock: Improve backorder confirmation wizard, modifying it to v… Task#53930 #468

Closed keylor2906 closed 2 years ago

keylor2906 commented 2 years ago

Task: https://www.vauxoo.com/web#id=53930&action=1928&model=project.task&view_type=form&cids=1&menu_id=1490

[REF] stock: Improve backorder confirmation wizard, modifying it to validate picking one by one and option to commit after each one, this is to improve performance when validating a batch with a lot of pickings.

Description of the issue/feature this PR addresses: When having a lot of pickings inside a batch, and mostly all are partially validated and need to generate a backorder, if one of the pickings has an error of concurrency then all process is stopped and has to begin anew. If the process already had 1 hour, then it has to wait another hour to reach the point were the error was caught.

Current behavior before PR: All pickings of the batch are validated at same time and the changes commit after all are done.

Desired behavior after PR is merged: Being able to commit after each picking is done, so in case of having an error it starts anew from the picking that was being validated instead of the first one. And also try another time to validate the picking in case the error was a concurrency error.

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

hbto commented 2 years ago

@moylop260 Could you please Endorse This MR?

Regards.

moylop260 commented 2 years ago

Excellent!

👍