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

URIUniversalCommunication can not be multiple URI #60

Open
mconstabel opened this issue Jan 13, 2025 · 0 comments
Open

URIUniversalCommunication can not be multiple URI #60

mconstabel opened this issue Jan 13, 2025 · 0 comments

Comments

@mconstabel
Copy link

Hello,

electronic_address: Container = MultiField(
        URIUniversalCommunication, required=False, profile=BASIC

so it seems it can store multiple URI.

if "uri" in uri_list:
    for uri in d.trade.agreement.seller.uri:
        uri_data = URIUniversalCommunication(uri_ID = ("UR", uri.get("name", "")) )
        doc.trade.agreement.seller.electronic_address.add( uri_data )

But if I use more than one URI, len(uri_list) > 1, there is an error.

URIUniversalCommunication': This element is not expected. Expected is (

According to EN 16931 URIUniversalCommunication is only one adress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant