xsdata Odoo abstract model generator plugin
Project description
Odoo abstract model generator from xsd schemas using xsdata
xsdatabased replacement of generateds-odoo- heavily inspired by xsdata-plantuml
- explanations: YouTube Video
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbd3a1e2f1ec7cb8f80a871793092ae17c82c44b147aedddf539990ee532ed98
|
|
| MD5 |
2d69c00dfccd4671bf8188e143496491
|
|
| BLAKE2b-256 |
efcd067c6e87b9ac0abdfc8585644d6117de756d916abe0101403d8bb5968742
|
Provenance
The following attestation bundles were made for xsdata_odoo-0.9.0.tar.gz:
Publisher:
publish.yml on akretion/xsdata-odoo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xsdata_odoo-0.9.0.tar.gz -
Subject digest:
fbd3a1e2f1ec7cb8f80a871793092ae17c82c44b147aedddf539990ee532ed98 - Sigstore transparency entry: 229720298
- Sigstore integration time:
-
Permalink:
akretion/xsdata-odoo@1e1a10e56d65737cf791a8d2cd1a9a56f8192187 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/akretion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e1a10e56d65737cf791a8d2cd1a9a56f8192187 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f42088fe56b5b5dbf4cbdd8f8ddc0671c74aad6feab9b65c8335f17e169fc174
|
|
| MD5 |
46a0f03ae55da534953fa1d0be322c0e
|
|
| BLAKE2b-256 |
eb66c2afad00ae306f02b99da86180c548c679f0f38aba3720cf0f9b17a1156b
|
Provenance
The following attestation bundles were made for xsdata_odoo-0.9.0-py3-none-any.whl:
Publisher:
publish.yml on akretion/xsdata-odoo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xsdata_odoo-0.9.0-py3-none-any.whl -
Subject digest:
f42088fe56b5b5dbf4cbdd8f8ddc0671c74aad6feab9b65c8335f17e169fc174 - Sigstore transparency entry: 229720300
- Sigstore integration time:
-
Permalink:
akretion/xsdata-odoo@1e1a10e56d65737cf791a8d2cd1a9a56f8192187 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/akretion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1e1a10e56d65737cf791a8d2cd1a9a56f8192187 -
Trigger Event:
push
-
Statement type: