-
-
Notifications
You must be signed in to change notification settings - Fork 305
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][FIX] base_ubl: schemeID for GTIN is 0160 #892
Conversation
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. |
@OCA/edi-maintainers Can we merge this simple fix? |
base_ubl/models/ubl.py
Outdated
barcode_xpath = line_node.xpath( | ||
"cac:Item/cac:StandardItemIdentification/cbc:ID[@schemeID='GTIN']", | ||
"cac:Item/cac:StandardItemIdentification/cbc:ID[@schemeID='0160']", |
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.
I think you can simplify it by using "cac:Item/cac:StandardItemIdentification/cbc:ID[@schemeID='0160'|@schemeID='GTIN']",
Can you test? (It would be awesome to use an old file and a new file in tests in order to ensure that everything works fine
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.
doen't work with |
but works with or
. I don't even need to repeat @schemeID
. I added a test for the 2 possibilities
02489d0
to
5ecd42f
Compare
@OCA/edi-maintainers someone to merge it PLZ? |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at d4f8e4d. Thanks a lot for contributing to OCA. ❤️ |
Added support for 0160 schemeID on top of GTIN