TIP: You can type at any time to perform a new search.

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
OCA/queue:
OCA/server-tools:
odoo/odoo:
- web
- bus
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 info_outline

Views touched (3)
XML IDNameModelTypeStatus
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_id Many2one → fetchmail.attachment.condition
    help='The Fetchmail attachment condition used to create this attachment' string='FetchMail condition' args: 'fetchmail.attachment.condition'
  • fetchmail_server_id Many2one → fetchmail.server
    help='The email server used to create this attachment' readonly=True related='fetchmail_attachment_condition_id.server_id' store=True string='Email Server' args: 'fetchmail.server'
Public methods (2)
  • message_new(self, msg_dict, custom_values=None)
    @api.model
    Create Attachments Queues objects from the received email's attachments.
  • prepare_data_from_basic_condition(self, cond, msg_dict)
    @api.model

New fields (8)
  • company_id Many2one → res.company
    default=<expr> required=True string='Company' args: 'res.company'
  • email_from Char
    help="If empty, catches the emails from every senders.\nOtherwise catches the emails where the sender's email contains the given characters"
  • email_subject Char
    help='If empty, catches the emails with every kind of Subjects.\nOtherwise catches the emails where the Subject contains the given characters'
  • email_to Char
    help='If empty, catches the email no matter the recipient.\nOtherwise catches the emails where the recipients emails contains the given characters.'
  • file_extension Char
    help="The extension (or part of the name) of the sought files. If empty, all the email's attachments will be imported."
  • file_type Selection
    help="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=[]
  • name Char
    required=True string='Condition Name'
  • server_id Many2one → fetchmail.server
    string='Server Mail' args: 'fetchmail.server'
Public methods (0)

No public methods.

New fields (1)
  • attachment_condition_ids One2many → fetchmail.attachment.condition
    help="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'
Public methods (1)
  • onchange_attachment_condition(self)
    @api.onchange('attachment_condition_ids')