Skip to content

[14.0][FIX] shopfloor_reception: Ensure state assign of remaining move#882

Closed
mt-software-de wants to merge 1 commit into
OCA:14.0from
mt-software-de:14-fix-shopfloor_reception-split-move-state
Closed

[14.0][FIX] shopfloor_reception: Ensure state assign of remaining move#882
mt-software-de wants to merge 1 commit into
OCA:14.0from
mt-software-de:14-fix-shopfloor_reception-split-move-state

Conversation

@mt-software-de

@mt-software-de mt-software-de commented Apr 3, 2024

Copy link
Copy Markdown

If there is not all processed for one move, we have to ensure that the state of the remaining move is still assigned.
Otherwise the last remaining qty of this move will be not split into a own transfer.

return selected_line.move_id.extract_and_action_done()

moves = self.filtered(lambda m: m.state == "assigned")

cc @jbaudoux @TDu @mmequignon

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @JuMiSanAr, @mmequignon,
some modules you are maintaining are being modified, check this out!

@mt-software-de

Copy link
Copy Markdown
Author

@TDu @mmequignon @jbaudoux
why did we choose to call the recompute_state?
I think that's not necessary since we calling action_assign immediately afterwards.

new_move._action_assign()

@mt-software-de mt-software-de changed the title [FIX] shopfloor_reception: Ensure state assign of remainig move [FIX] shopfloor_reception: Ensure state assign of remaining move Apr 4, 2024
@mt-software-de

Copy link
Copy Markdown
Author

ping @jbaudoux @TDu

@jbaudoux jbaudoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good according to the test but we need to be careful because all tests seem to rely on the fact that move lines are created by the picking type configuration.
In our case, the picking type is configured to not create move lines. The main difference is that the move line is created by the user and the quantity todo is 0. This could have an impact on partial processing.
Can you extend the tests to cover our real usage of the module ?

@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 13, 2024
@github-actions github-actions Bot closed this Nov 17, 2024
@jbaudoux jbaudoux reopened this Nov 17, 2024
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 24, 2024
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 30, 2025
@github-actions github-actions Bot closed this May 4, 2025
@jbaudoux jbaudoux reopened this May 4, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @mmequignon, @JuMiSanAr,
some modules you are maintaining are being modified, check this out!

@jbaudoux

jbaudoux commented May 4, 2025

Copy link
Copy Markdown
Contributor

Cc @rousseldenis

@mt-software-de

Copy link
Copy Markdown
Author

It looks good according to the test but we need to be careful because all tests seem to rely on the fact that move lines are created by the picking type configuration.
In our case, the picking type is configured to not create move lines. The main difference is that the move line is created by the user and the quantity todo is 0. This could have an impact on partial processing.
Can you extend the tests to cover our real usage of the module ?

I try to extend the Test this week. Then it could be merged and Forward ported.

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label May 11, 2025
@mt-software-de
mt-software-de force-pushed the 14-fix-shopfloor_reception-split-move-state branch from 4db05de to 931fa2f Compare June 22, 2025 10:44
@mt-software-de

Copy link
Copy Markdown
Author

It looks good according to the test but we need to be careful because all tests seem to rely on the fact that move lines are created by the picking type configuration. In our case, the picking type is configured to not create move lines. The main difference is that the move line is created by the user and the quantity todo is 0. This could have an impact on partial processing. Can you extend the tests to cover our real usage of the module ?

I checked it again and i am now a little confused. I think the test reflects exactly what's happening. A purchase is created and confirmed, which creates a transfer with moves and move lines. The move line is then only partially processed, which creates a new completed move. The old move must then reflect the remaining quantity with the state assigned. Or am i wrong?

@jbaudoux

Copy link
Copy Markdown
Contributor

It looks good according to the test but we need to be careful because all tests seem to rely on the fact that move lines are created by the picking type configuration. In our case, the picking type is configured to not create move lines. The main difference is that the move line is created by the user and the quantity todo is 0. This could have an impact on partial processing. Can you extend the tests to cover our real usage of the module ?

I checked it again and i am now a little confused. I think the test reflects exactly what's happening. A purchase is created and confirmed, which creates a transfer with moves and move lines. The move line is then only partially processed, which creates a new completed move. The old move must then reflect the remaining quantity with the state assigned. Or am i wrong?

@mt-software-de The question was what will happen if the picking type is configured to not create move lines which is your use case. As there are no tests with this configuration, you better ensure there are no regression

@mt-software-de mt-software-de changed the title [FIX] shopfloor_reception: Ensure state assign of remaining move [14.0][FIX] shopfloor_reception: Ensure state assign of remaining move Jun 23, 2025
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 26, 2025
@github-actions github-actions Bot closed this Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants