Skip to main content

DMS FILE API

Beta License: AGPL-3

This module exposes an API-Key authenticated API to create dms files as attachments in partners and crm leads, focusing on the directory structure given by the inherited module “dms_res_model_root_directory”.

Table of contents

Configuration

To give access to the API to a structure, go to

  • Settings > Technical (debug mode) > Auth API Key

  • Click create and select a user, save.

  • Communicate the API-KEY to those in need to use the API.

Usage

### Create files

Example of curl to create a dms file with two variables to fill: - API_KEY: authorized key from the odoo server’s API-KEY (see previows paragraph) - ODOO_URL: target ODOO server’s URL

Tickets can be created with either one of the following parameters, but not both: - partner_id - crm_lead_id

  • “files” is an array of documents, each one with the following fields: - filename: name of the file - content: base64 encoded file

CONTENT=$(base64 test_pdf.pdf)

curl -X POST \
  -H "accept: application/json" \
  -H "api-key: $APIKEY" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --arg content "$CONTENT" \
        '{
            crm_lead_id: "New Ticket",
            category: "this is an API created ticket",
            attachments: [
              {
                filename: "test_pdf.pdf",
                content: $content,
              }
            ]
          }')" \
  "$ODOO_URL/api/documentation"

Known issues / Roadmap

There are no issues for the moment.

Bug Tracker

Bugs are tracked on GitLab Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • SomIT SCCL

  • Som Connexio SCCL

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo12-addon-dms-file-api 12.0.0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoo12-addon-dms-file-api 12.0.0.1.0
File Size Uploaded Provenance
odoo12-addon-dms_file_api-12.0.0.1.0.tar.gz 28.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for odoo12-addon-dms-file-api 12.0.0.1.0
File Interpreter ABI Platform
odoo12_addon_dms_file_api-12.0.0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 58.7 kB

Release files / odoo12-addon-dms_file_api-12.0.0.1.0.tar.gz

Download URL odoo12-addon-dms_file_api-12.0.0.1.0.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc2d9395fcc3fa50f476db6a3546a8043dd33095bf38b5e77b7467ef5410f64
BLAKE2b-256 checksum
How to use checksums
398c7fece00c5bceea899ec85f9416b6a0c5fd325b9d5a85a672b1ac2825bcfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.2

Release files / odoo12_addon_dms_file_api-12.0.0.1.0-py2.py3-none-any.whl

Download URL odoo12_addon_dms_file_api-12.0.0.1.0-py2.py3-none-any.whl
Size 30.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
49e0ffa6112839ed0ede3b65cbc7fd187f6b8dcafb17cdd4b9effa7dcc9b76ef
BLAKE2b-256 checksum
How to use checksums
5df6ae9577add2040548c383ecfabae2bca443dac039cf68730b51ff42440b46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.2

Security for odoo12-addon-dms-file-api 12.0.0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

12.0.0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page