Skip to main content

xsdata Odoo abstract model generator plugin

Project description

Odoo abstract model generator from xsd schemas using xsdata

codecov PyPI pyversions PyPI version

Install

$ # Install with cli support
$ pip install xsdata[cli]
$ pip install git+https://github.com/akretion/xsdata-odoo

Generate Abstract Odoo Models

Odoo Abstract Models for the Microsoft Purchase Order demo schema:

$ xsdata generate tests/fixtures/po/po.xsd --output=odoo
Parsing schema po.xsd
Compiling schema po.xsd
Builder: 6 main and 1 inner classes
Analyzer input: 6 main and 1 inner classes
Analyzer output: 5 main and 1 inner classes
Generating package: generated.po

Odoo Abstract Models for the Brazilian Electronic Invoices (NF-e):

$ export XSDATA_SCHEMA=nfe; export XSDATA_VERSION=40; export XSDATA_SKIP="^ICMS.ICMS\d+|^ICMS.ICMSSN\d+"; export XSDATA_LANG="portuguese"
$ # assuming you are in an akretion/nfelib clone or you downloaded the NFe schemas in nfelib/schemas/nfe/v4_0:
$ xsdata generate nfelib/nfe/schemas/v4_0 --package nfelib.nfe.odoo.v4_0 --output=odoo
Generating package: init
Generating package: nfelib.nfe.odoo.v4_0.xmldsig_core_schema_v1_01
Generating package: nfelib.nfe.odoo.v4_0.tipos_basico_v4_00
Generating package: nfelib.nfe.odoo.v4_0.leiaute_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.leiaute_cons_sit_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.cons_reci_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.cons_sit_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.leiaute_cons_stat_serv_v4_00
Generating package: nfelib.nfe.odoo.v4_0.cons_stat_serv_v4_00
Generating package: nfelib.nfe.odoo.v4_0.envi_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.leiaute_inut_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.inut_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.proc_inut_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.proc_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.ret_cons_reci_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.ret_cons_sit_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.ret_cons_stat_serv_v4_00
Generating package: nfelib.nfe.odoo.v4_0.ret_envi_nfe_v4_00
Generating package: nfelib.nfe.odoo.v4_0.ret_inut_nfe_v4_0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xsdata_odoo-0.9.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xsdata_odoo-0.9.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file xsdata_odoo-0.9.0.tar.gz.

File metadata

  • Download URL: xsdata_odoo-0.9.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xsdata_odoo-0.9.0.tar.gz
Algorithm Hash digest
SHA256 fbd3a1e2f1ec7cb8f80a871793092ae17c82c44b147aedddf539990ee532ed98
MD5 2d69c00dfccd4671bf8188e143496491
BLAKE2b-256 efcd067c6e87b9ac0abdfc8585644d6117de756d916abe0101403d8bb5968742

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsdata_odoo-0.9.0.tar.gz:

Publisher: publish.yml on akretion/xsdata-odoo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xsdata_odoo-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: xsdata_odoo-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xsdata_odoo-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f42088fe56b5b5dbf4cbdd8f8ddc0671c74aad6feab9b65c8335f17e169fc174
MD5 46a0f03ae55da534953fa1d0be322c0e
BLAKE2b-256 eb66c2afad00ae306f02b99da86180c548c679f0f38aba3720cf0f9b17a1156b

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsdata_odoo-0.9.0-py3-none-any.whl:

Publisher: publish.yml on akretion/xsdata-odoo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page