Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 16 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

Allow to send the result of a query (made with the module sql_export) by mail.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
sql_export_mail_view_form sql.export form Inherits sql_export.sql_export_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (4)
  • cron_ids Many2many → ir.cron
    groups='base.group_system' args: 'ir.cron', 'cron_sqlquery_rel', 'sql_id', 'cron_id', 'Crons'
  • mail_condition Selection
    default='not_empty' args: [('not_empty', 'File Not Empty')]
  • mail_partner_ids Many2many → res.partner
    help='Add the partners who wants to receive the report by e-mail. You need to link the sql query with a cron to send a mail automatically' args: 'res.partner', 'mail_partner_sqlquery_rel', 'sql_id', 'partner_id'
  • mail_user_ids Many2many → res.users
    help='Add the users who want to receive the report by e-mail. You need to link the sql query with a cron to send mail automatically' args: 'res.users', 'mail_user_sqlquery_rel', 'sql_id', 'user_id', 'User to notify'
Public methods (5)
  • check_mail_user(self)
    @api.constrains('mail_user_ids')
  • check_no_parameter_if_sent_by_mail(self)
    @api.constrains('query_properties_definition', 'mail_user_ids')
  • create_cron(self)
  • get_email_address_for_template(self)
    Called from mail template. Collects email addresses from both users and partners.
  • send_mail(self, params=None)

Loading…

Loading…

Loading…

Loading…

Loading…