TIP: You can type at any time to perform a new search.
Attachment Queue Email
attachment_queue_email · OCA/server-tools
Security findings
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Generic Modules
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-09-28 13:41:36
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Sébastien Alix, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- openupgradelib, requests
- System dependencies
- None
- Required by
- None
- Description
Abstract module for importing emails attachments. Each email's attachment matching a given **"Attachment Condition"** will be imported creating a new `attachment.queue` object. These `attachment.queue` objects are files wrapped with additional fields (mainly a **Filed Type** and a **State**) making them ready to be processed by a custom module as you can read in the [attachment_queue](https://github.com/OCA/server-tools/tree/18.0/attachment_queue) documentation.
Code Analysis
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_email_server_form |
fetchmail.server | form | Inherits mail.view_email_server_form | |
view_fetchmail_attachment_condition_form |
view_fetchmail_attachment_condition_form | fetchmail.attachment.condition | form | New |
view_fetchmail_attachment_condition_tree |
view_fetchmail_attachment_condition_tree | fetchmail.attachment.condition | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (2)
-
fetchmail_attachment_condition_idMany2one → fetchmail.attachment.conditionhelp='The Fetchmail attachment condition used to create this attachment'string='FetchMail condition' args: 'fetchmail.attachment.condition' -
fetchmail_server_idMany2one → fetchmail.serverhelp='The email server used to create this attachment'readonly=Truerelated='fetchmail_attachment_condition_id.server_id'store=Truestring='Email Server' args: 'fetchmail.server'
-
message_new(self, msg_dict, custom_values=None)@api.modelCreate Attachments Queues objects from the received email's attachments. -
prepare_data_from_basic_condition(self, cond, msg_dict)@api.model
New fields (8)
-
company_idMany2one → res.companydefault=<expr>required=Truestring='Company' args: 'res.company' -
email_fromCharhelp="If empty, catches the emails from every senders.\nOtherwise catches the emails where the sender's email contains the given characters" -
email_subjectCharhelp='If empty, catches the emails with every kind of Subjects.\nOtherwise catches the emails where the Subject contains the given characters' -
email_toCharhelp='If empty, catches the email no matter the recipient.\nOtherwise catches the emails where the recipients emails contains the given characters.' -
file_extensionCharhelp="The extension (or part of the name) of the sought files. If empty, all the email's attachments will be imported." -
file_typeSelectionhelp="The 'file type' is transmited to the 'Attachment Queue' objects created from the selected emails attachments.\nIt will allow Odoo to recognize what do do with them once created."selection=[] -
nameCharrequired=Truestring='Condition Name' -
server_idMany2one → fetchmail.serverstring='Server Mail' args: 'fetchmail.server'
No public methods.
New fields (1)
-
attachment_condition_idsOne2many → fetchmail.attachment.conditionhelp="Files attached to the emails matching these conditions will be imported in Odoo as 'Attachment Queue' objects"string='Attachment Condition' args: 'fetchmail.attachment.condition', 'server_id'
-
onchange_attachment_condition(self)@api.onchange('attachment_condition_ids')