Skip to main content

Import Res ID

Beta License: LGPL-3 GetFluvo/addons

Adds a Document XML ID field, res_external_id, to messages (mail.message) and attachments (ir.attachment), to link them to their document by the XML ID of that document.

Messages and attachments point to their document with a model name and a database id, which an import file cannot know. With this field, chatter messages and attachments can be imported for records imported earlier.

Table of contents

Use Cases / Context

When migrating to Odoo, the history of the records, the chatter messages and the attachments, has to be imported too. Without this module the import file needs the database id of every document, which is only known after the documents are imported.

Usage

Import messages or attachments with a res_external_id column holding the complete XML ID of the document, as module.name. The model and the id of the document are set from it:

body

message_type

res_external_id

attachment_ids/id

<p>Called the customer</p>

comment

legacy.partner_42

legacy.attachment_7

The field can also be given to create() and write(), and is filled in exports with the first XML ID of the document.

  • An XML ID that does not exist stops the import with an error, instead of creating a message or attachment that is not linked to anything.

  • The usual access rights apply to the document. Only administrators can move an existing message to another document.

  • Import the attachments first, linked to the document with res_external_id, then the messages that refer to them with attachment_ids/id.

Bug Tracker

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

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

Credits

Authors

  • Fluvo

Contributors

  • bosd

Other credits

Based on the idea and the res_external_id field of the import_res_id module of easier_import by Thibault Francois. This is a new implementation.

Maintainers

This module is part of the GetFluvo/addons project on GitHub.

You are welcome to contribute.

Metadata

Release files for odoo-addon-import-res-id 19.0.1.0.0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-import-res-id 19.0.1.0.0.1
File Interpreter ABI Platform Actions
odoo_addon_import_res_id-19.0.1.0.0.1-py3-none-any.whl Python 3 none any Details for odoo_addon_import_res_id-19.0.1.0.0.1-py3-none-any.whl

Release files / odoo_addon_import_res_id-19.0.1.0.0.1-py3-none-any.whl

Download URL odoo_addon_import_res_id-19.0.1.0.0.1-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78473b0a184200518fe26824cd770832390c0c342c37111c9683e81985a9e1e4
BLAKE2b-256 checksum
How to use checksums
252cc54700e5b11225480931327a208413a8c9625a3150a4f2221426300328cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for odoo-addon-import-res-id 19.0.1.0.0.1

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.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for odoo_addon_import_res_id-19.0.1.0.0.1-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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.

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