Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] shopfloor checkout scanning a lot and quantity done #785

Open
wants to merge 3 commits into
base: 14.0
Choose a base branch
from

Conversation

TDu
Copy link
Member

@TDu TDu commented Nov 30, 2023

No description provided.

@OCA-git-bot
Copy link
Contributor

Hi @sebalix, @simahawk, @guewen,
some modules you are maintaining are being modified, check this out!

@TDu TDu changed the title [14.0][FIX] shopfloor checkout scanning a lot and quantity done updated [14.0][FIX] shopfloor checkout scanning a lot and quantity done Nov 30, 2023
Copy link
Contributor

@sebalix sebalix left a comment

Choose a reason for hiding this comment

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

LG, maybe some clarification needed?

Comment on lines -568 to -630
# When lots are as units outside of packages, we can select them for
# packing, but if they are in a package, we want the user to scan the packages.
# If the product is only in one package though, scanning the lot selects
# the package.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure to understand in what this comment was wrong?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was not wrong, I thought it was clearer to have the explanation on each if cases

Copy link
Contributor

Choose a reason for hiding this comment

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

Both is good IMO, to get the big picture before entering in the "if/else" dance, and each block gets its own comment

Copy link
Member Author

Choose a reason for hiding this comment

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

But it is the same comment split so each comment is exactly were it is meaningful.

Copy link
Contributor

Choose a reason for hiding this comment

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

It was to get the big picture before reading all the code details. But OK

picking, selection_lines, packages, prefill_qty=prefill_qty, **kw
# The lot is only in one package
# Related lines are the one in the same package
related_lines = selection_lines.filtered(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know what means "related lines" here compared to "line_to_update" or "lines" below. Can you give a definition in a comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a comment above with the declaration of the variable

Copy link
Contributor

Choose a reason for hiding this comment

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

So if the related lines are the lines belonging to the same package than the lot line, we want to scan a package right? I don't know where this is happening.

@TDu TDu force-pushed the 14-sf-checkout-fix-bug-select-line branch from 4b21bf2 to 67b7642 Compare November 30, 2023 13:02
@simahawk
Copy link
Contributor

simahawk commented Dec 1, 2023

@sebalix @jbaudoux ping

Copy link

github-actions bot commented Apr 7, 2024

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 Apr 7, 2024
@jbaudoux jbaudoux added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Apr 8, 2024
@mmequignon mmequignon force-pushed the 14-sf-checkout-fix-bug-select-line branch from 67b7642 to 96c223e Compare October 10, 2024 17:17
TDu added 3 commits October 14, 2024 10:41
With the no-prefill-qty option not set.
When selecting a line by scanning a lot, all the lines with the same
product related to that lot. Have their quantity done set!

But only the line with the lot scanned should have the quantity done
updated.
With the no-prefill-qty option not set.
When selecting a line by scanning a lot, that is in a package.
All the lines in the package have their quantity done set!

But only the line with the lot scanned should have the quantity done
updated.
When scanning a lot, if the lot is on multiple lines only one of the
lines should have the quantity updated.
@mmequignon mmequignon force-pushed the 14-sf-checkout-fix-bug-select-line branch from 96c223e to 66ee1ca Compare October 14, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants