Skip to content

[16.0][MIG] shopfloor_gs1#966

Open
rousseldenis wants to merge 13 commits into
OCA:16.0from
acsone:16.0-add_gs1-dro
Open

[16.0][MIG] shopfloor_gs1#966
rousseldenis wants to merge 13 commits into
OCA:16.0from
acsone:16.0-add_gs1-dro

Conversation

@rousseldenis
Copy link
Copy Markdown

@rousseldenis rousseldenis commented Jan 6, 2025

@rousseldenis rousseldenis changed the title 16.0 add gs1 dro [16.0][MIG] shopfloor_gs1 Jan 6, 2025
@rousseldenis rousseldenis added this to the 16.0 milestone Jan 6, 2025
simahawk and others added 9 commits March 24, 2025 10:14
If you are specifically searching for a type
and this type is not supported by our AI mapping,
just don't search for it.
This is kind of mandatory because otherwise
the GS1 parsing will default to all available AIs
and can give back unexpected results
(eg: search for 'package' and get an empty 'product' back)
As products barcode in Odoo are stored in GTIN-13 (EAN-13), and as
GS1 contains the GTIN-14 representation, don't mix them in tests
Copy link
Copy Markdown

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LGTM
@rousseldenis can you rebase and cleanup? 🙏

Comment thread shopfloor_gs1/utils.py
Comment on lines +38 to +43
"""
We must return the date value if set
We must return the formatted GTIN if set
as the library will transform the GTIN 14 into
a GTIN 13 one. That one is the barcode
set in Odoo.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
"""
We must return the date value if set
We must return the formatted GTIN if set
as the library will transform the GTIN 14 into
a GTIN 13 one. That one is the barcode
set in Odoo.
"""
Determine the final value for the given parsed element.
Returns
* date value if set
* formatted GTIN if set
The library will transform the GTIN 14 into
a GTIN 13, which is the one used by Odoo.

@simahawk
Copy link
Copy Markdown

simahawk commented Oct 8, 2025

One more thing: as the v14 PR was never merged, IMO we can squash the fixup commit ;)

# >= 2.3.0 required to use 'GS1Message.parse_hri' method
# and next version 3.0.0 has been refactored bringing
# incompatibility issues (to check later).
"biip"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

the pin of the lib is lost here. It's mandatory as there's no other 2.x version that is suitable

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 8, 2026

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 Feb 8, 2026
@github-actions github-actions Bot closed this Mar 15, 2026
@rousseldenis rousseldenis reopened this Mar 16, 2026
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants