Save attachments to Documents
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)
- Open MailDesk ▸ Configuration ▸ Mailboxes ▸ Mailbox Accounts and open the mailbox.
- Open the Settings tab and find the card Documents Integration.
- Switch Enable on and set the options you need.
- Save the mailbox.
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
- Open a received email that has an attachment.
- On the attachment, click Save to Documents (the Documents icon).
- 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.
- Confirm.
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
- Click Compose in MailDesk, or reply to an email.
- In the composer, click Attach from Documents (the Documents icon next to the paperclip).
- In the picker, browse the workspaces, select one or more documents, and click Add from Documents.
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.
Overview in MailDesk
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.