MailDesk docs
Odoo integrations

Save attachments to Documents

3 min read Odoo 18.0

Save an attachment from a received email into Odoo Documents, and attach a file from Documents to an email you write, without downloading and uploading files.

Who this is for: everyone who files email attachments in Odoo Documents (daily use) and MailDesk administrators (one-time setup per mailbox).

You need:

  • The MailDesk Documents Integration module (maildesk_mail_client_documents).
  • MailDesk Pro, and MailDesk Basic below it.
  • The Odoo Documents app. This is an Odoo Enterprise app.
  • Access to at least one Documents workspace, and a connected mailbox that syncs.

Which MailDesk edition includes this module is described in Plans and included features.

Before you begin

  • Install the module and check that Documents is installed. The module's requirements file lists the Python package pdfminer.six. Your Odoo administrator installs the packages as described in Install MailDesk.
  • Administrators: turn the integration on for each mailbox that needs it (Step 1).
  • Users: you can save into and attach from only the Documents workspaces you can already access. The normal Documents access rules apply. See Security and access rights.

Step 1: Turn on Documents for a mailbox (administrator)

  1. Open MailDesk ▸ Configuration ▸ Mailboxes ▸ Mailbox Accounts and open the mailbox.
  2. Open the Settings tab and find the card Documents Integration.
  3. Switch Enable on and set the options you need.
  4. Save the mailbox.

The Documents Integration card on the Settings tab of a mailbox account, with the Enable toggle, default folder, default tags and permission switches

What you should see: the card expands and shows Defaults and Permissions.

Group Options
Defaults Default Folder (the folder where saved attachments go), Default Tags (applied to documents saved from MailDesk)
Permissions Allow Save to Documents, Allow Attach from Documents

Step 2: Save an attachment to Documents

  1. Open a received email that has an attachment.
  2. On the attachment, click Save to Documents (the Documents icon).

A received email in MailDesk with the Documents button on its attachments

  1. In the window Choose a destination, pick the workspace folder. Your default folder and tags are already set; you can change them. The window also lists Documents currently in destination, so you can check that you are filing into the right place.
  2. Confirm.

The Save to Documents icon on an email attachment

What you should see: the file is in the folder you chose in Documents, and the attachment in MailDesk is marked as saved. MailDesk reuses the stored file; it does not copy it.

File with AI

Next to Save to Documents, an attachment can show a File with AI button. It opens the MailDesk AI panel, which helps you file the attachment. AI features belong to MailDesk Pro; see AI permissions and data access.

Step 3: Attach a Document to an email

  1. Click Compose in MailDesk, or reply to an email.
  2. In the composer, click Attach from Documents (the Documents icon next to the paperclip).

The MailDesk composer with the Attach from Documents button next to the paperclip

  1. In the picker, browse the workspaces, select one or more documents, and click Add from Documents.

The Add from Documents window, where you browse workspaces and select files

What you should see: the files appear as attachments in the composer.

The same button appears in the standard Odoo composer, so the steps are the same there.

The standard Odoo composer with the Attach from Documents button

Overview in MailDesk

The MailDesk inbox with emails and their attachments, ready to file into Documents

If it does not work

Symptom Check Safe next step
There is no Documents Integration card. Is the module installed? Is the Settings tab open? Install the module, then reload the mailbox form.
There is no Save to Documents button on attachments. Is Enable on for this mailbox? Is Allow Save to Documents on? Ask an administrator to turn them on.
There is no Attach from Documents button in the composer. Is Allow Attach from Documents on for the mailbox you write from? Ask an administrator to turn it on.
You cannot see a workspace or folder. Your access rights in Documents. Ask your Documents administrator for access to the workspace.

For other problems, see Troubleshooting.

Next step

Show linked emails in Odoo Chatter.