-
-
Notifications
You must be signed in to change notification settings - Fork 209
[16.0][IMP] shopfloor: Add a parser to searches #1001
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
[16.0][IMP] shopfloor: Add a parser to searches #1001
Conversation
d3d6094 to
19363ab
Compare
5889c0b to
bd7b26b
Compare
As a some barcodes can represent more than one kind of record, add a helper to parse and return values.
06f95d7 to
426acd9
Compare
| return None | ||
|
|
||
| def expiration_date_from_scan(self, barcode): | ||
| # TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still TODO ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's following @simahawk
For the time being, we don't search for expiration dates but we need to have a handler to get a parse result for dates from GS1
|
/ocabot merge minor |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 5d6c6c0. Thanks a lot for contributing to OCA. ❤️ |
In some flows like GS1, a barcode representation can contain multiple content (e.g.: product, lot, expiration date, ...).
In current flows, we allow only one record return from the searches based on barcode scan.
In order to change the behavior when some extra data is found in barcodes, we add the parsed result in the search result.
e.g.: For reception flows, if we scan a GS1 and the lot is not found, we want to pre-fill expiration date for instance