Skip to content

[FW][FIX] mrp: split call to write on stock move#70702

Closed
fw-bot wants to merge 1 commit intoodoo:saas-14.2from
odoo-dev:saas-14.2-14.0-reservation-sync-mrp-whe-vIEV-fw
Closed

[FW][FIX] mrp: split call to write on stock move#70702
fw-bot wants to merge 1 commit intoodoo:saas-14.2from
odoo-dev:saas-14.2-14.0-reservation-sync-mrp-whe-vIEV-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Contributor

@fw-bot fw-bot commented May 11, 2021

You can, in a production order, change the quantity done of a stock move
raw and change its initial demand ('To Consume' field) in the same
transaction. This can lead to some issue as changing the quantity done
will update the stock move line and changing the initial demand will
unreserve the stock move thus impacting the stock move lines too.

This commit will split the values to update of a stock in move in case
the two fields have to be updated. First the stock move lines, then the
initial demand.

opw : 2451298

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

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

Forward-Port-Of: #69377

@robodoo robodoo added conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot labels May 11, 2021
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented May 11, 2021

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented May 11, 2021

Ping @Whenrow, @agr-odoo
Cherrypicking 83d53fd of source #69377 failed

stderr:

18:00:17.334712 git.c:344               trace: built-in: git cherry-pick 83d53fd01c0ba41e1ded08b12fea3d04b8fb9b3d
error: could not apply 83d53fd01c0... [FIX] mrp: split call to write on stock move
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
----------
status:

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label May 11, 2021
You can, in a production order, change the quantity done of a stock move
raw and change its initial demand ('To Consume' field) in the same
transaction. This can lead to some issue as changing the quantity done
will update the stock move line and changing the initial demand will
unreserve the stock move thus impacting the stock move lines too.

This commit will split the values to update of a stock in move in case
the two fields have to be updated. First the stock move lines, then the
initial demand.

This commit also remove the default_product_uom_qty in the move_raw_ids
fields. This ensure the onchanges do not create/edit any stock move lines
with some reserved quantity.

opw : 2451298

X-original-commit: d1e4972
@agr-odoo agr-odoo force-pushed the saas-14.2-14.0-reservation-sync-mrp-whe-vIEV-fw branch from 2195404 to b854ab4 Compare May 17, 2021 08:33
@Whenrow
Copy link
Copy Markdown
Contributor

Whenrow commented May 18, 2021

robodoo r+

robodoo pushed a commit that referenced this pull request May 18, 2021
You can, in a production order, change the quantity done of a stock move
raw and change its initial demand ('To Consume' field) in the same
transaction. This can lead to some issue as changing the quantity done
will update the stock move line and changing the initial demand will
unreserve the stock move thus impacting the stock move lines too.

This commit will split the values to update of a stock in move in case
the two fields have to be updated. First the stock move lines, then the
initial demand.

This commit also remove the default_product_uom_qty in the move_raw_ids
fields. This ensure the onchanges do not create/edit any stock move lines
with some reserved quantity.

opw : 2451298

closes #70702

X-original-commit: d1e4972
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
@robodoo robodoo closed this May 18, 2021
@robodoo robodoo temporarily deployed to merge May 18, 2021 09:41 Inactive
@fw-bot fw-bot deleted the saas-14.2-14.0-reservation-sync-mrp-whe-vIEV-fw branch June 1, 2021 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants