Skip to content

[FIX] stock: put in pack and unreserve#54328

Closed
nim-odoo wants to merge 1 commit intoodoo:12.0from
odoo-dev:12.0-opw-2288208-unreserve-nim
Closed

[FIX] stock: put in pack and unreserve#54328
nim-odoo wants to merge 1 commit intoodoo:12.0from
odoo-dev:12.0-opw-2288208-unreserve-nim

Conversation

@nim-odoo
Copy link
Copy Markdown
Contributor

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

- Create a product P, tracked by lot
- Add some stock with a lot
- Create an outgoing picking
- Set 10 units of P
- Set 2 done, Put in Pack
- Unreserve

An error occurs: 'It is not possible to unreserve more products of P
than you have in stock.'

It happens because the `lot_id` is removed from the copied
`stock.move.line`.

Commit eac8c06 makes sense for incoming pickings, but
not for internal or outgoing transfers.

opw-2288208
@nim-odoo nim-odoo self-assigned this Jul 10, 2020
@nim-odoo
Copy link
Copy Markdown
Contributor Author

robodoo r+

@nim-odoo
Copy link
Copy Markdown
Contributor Author

robodoo p=1

@nim-odoo nim-odoo requested a review from jpp-odoo July 10, 2020 13:02
robodoo pushed a commit that referenced this pull request Jul 10, 2020
- Create a product P, tracked by lot
- Add some stock with a lot
- Create an outgoing picking
- Set 10 units of P
- Set 2 done, Put in Pack
- Unreserve

An error occurs: 'It is not possible to unreserve more products of P
than you have in stock.'

It happens because the `lot_id` is removed from the copied
`stock.move.line`.

Commit eac8c06 makes sense for incoming pickings, but
not for internal or outgoing transfers.

opw-2288208

closes #54328

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses merging 👷 and removed merging 👷 labels Jul 10, 2020
@robodoo robodoo closed this Jul 10, 2020
@robodoo robodoo temporarily deployed to merge July 10, 2020 13:41 Inactive
@fw-bot fw-bot deleted the 12.0-opw-2288208-unreserve-nim branch July 24, 2020 17:46
AdriaGForgeFlow pushed a commit to ForgeFlow/odoo that referenced this pull request Jan 28, 2021
- Create a product P, tracked by lot
- Add some stock with a lot
- Create an outgoing picking
- Set 10 units of P
- Set 2 done, Put in Pack
- Unreserve

An error occurs: 'It is not possible to unreserve more products of P
than you have in stock.'

It happens because the `lot_id` is removed from the copied
`stock.move.line`.

Commit eac8c06 makes sense for incoming pickings, but
not for internal or outgoing transfers.

opw-2288208

closes odoo#54328

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants