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-1.0.1.tar.gz (20.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-1.0.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xsdata_odoo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b264f6311719b222756a4884f98a57fb1c23698ea0636c5565bf9cf5d5dedcfa
MD5 9485ecafa877bf838d0d91fe2fd79d99
BLAKE2b-256 031e77a3087342ac8162dcdf681b014db1a8801b825e16fd53a129820e2266ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsdata_odoo-1.0.1.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-1.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for xsdata_odoo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e98dbe00e9cb5a3d8d9a9b330a48a658ca135f93b6b911b0d3a30d3567b57b25
MD5 7a64ab36a074d24b41ce227c163e4947
BLAKE2b-256 86d25f9584c05011a43f280ab5a7446cb14a8bcee1b1392632aa293a0d4ace9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsdata_odoo-1.0.1-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