Skip to content

[FW][FIX] stock: forbid to modify product on done move line#43178

Closed
fw-bot wants to merge 1 commit intoodoo:saas-13.1from
odoo-dev:saas-13.1-11.0-import_done_move_line-arm-1ToE-fw
Closed

[FW][FIX] stock: forbid to modify product on done move line#43178
fw-bot wants to merge 1 commit intoodoo:saas-13.1from
odoo-dev:saas-13.1-11.0-import_done_move_line-arm-1ToE-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Contributor

@fw-bot fw-bot commented Jan 13, 2020

It happens that people modify the product on done stock.move.line
(it's not possible without customisation, at least allow to import or
to modify product and lot_id in the same view).

During the write on stock.move.line only the lot,locations,package and
owner are update on the quant. Not the product since it's not suppose to
be modify. It leads to a stock.move.line with a correct information but
a total mess on the quants with a lot updated and the previous product.
Since the product is not modified, the product on the quant and the
product on the lot linked to the same quant are different.

Task: 2119471

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: #43150
Forward-Port-Of: #42608

It happens that people modify the product on done stock.move.line
(it's not possible without customisation, at least allow to import or
to modify product and lot_id in the same view).

During the write on stock.move.line only the lot,locations,package and
owner are update on the quant. Not the product since it's not suppose to
be modify. It leads to a stock.move.line with a correct information but
a total mess on the quants with a lot updated and the previous product.
Since the product is not modified, the product on the quant and the
product on the lot linked to the same quant are different.

Task: 2119471
X-original-commit: f2a4f70
@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Jan 13, 2020

This PR targets saas-13.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jan 13, 2020
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 13, 2020
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Jan 13, 2020
robodoo pushed a commit that referenced this pull request Jan 13, 2020
It happens that people modify the product on done stock.move.line
(it's not possible without customisation, at least allow to import or
to modify product and lot_id in the same view).

During the write on stock.move.line only the lot,locations,package and
owner are update on the quant. Not the product since it's not suppose to
be modify. It leads to a stock.move.line with a correct information but
a total mess on the quants with a lot updated and the previous product.
Since the product is not modified, the product on the quant and the
product on the lot linked to the same quant are different.

closes #43178

Task: 2119471
X-original-commit: f2a4f70
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
@robodoo robodoo closed this Jan 13, 2020
@robodoo robodoo temporarily deployed to merge January 13, 2020 11:04 Inactive
@fw-bot fw-bot deleted the saas-13.1-11.0-import_done_move_line-arm-1ToE-fw branch January 27, 2020 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI 🤖 Robodoo has seen passing statuses forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants