Attachment Queue Email
attachment_queue_email · OCA/server-tools
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
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
documentation.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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')