Skip to content

Commit

Permalink
Changed email and cron templates and other minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cubells committed Nov 17, 2016
1 parent 7f3fe6e commit 4abd4dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion event_email_reminder/README.rst
Expand Up @@ -23,7 +23,7 @@ You can use cron arguments to modify three options in this position

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/199/8.0
:target: https://runbot.odoo-community.org/runbot/199/9.0


Bug Tracker
Expand Down
11 changes: 5 additions & 6 deletions event_email_reminder/data/event_email_reminder_data.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Sergio Teruel <sergio.teruel@tecnativa.com>
© 2016 Vicent Cubells <vicent.cubells@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<openerp>
<data noupdate="1">
<odoo noupdate="1">

<record id="event_email_reminder_template" model="mail.template">
<field name="name">Event Email Reminder</field>
Expand Down Expand Up @@ -47,13 +47,12 @@ ${object.company_id.name or ''}
<field name="active" eval="True"/>
<field name="model" eval="'event.event'"/>
<field name="function" eval="'run_event_email_reminder'"/>
<field name="args" eval="'(5, False, False, None)'"/>
<field name="args" eval="'(7, False, False, None)'"/>
<field name="doall" eval="False"/>
<field name="interval_number">1</field>
<field name="interval_number">7</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
</record>

</data>
</openerp>
</odoo>

2 changes: 1 addition & 1 deletion event_email_reminder/models/event.py
Expand Up @@ -17,7 +17,7 @@ def run_event_email_reminder(
self, days=7, draft_events=False, near_events=False,
template_id=None):
"""Enqueue mail with a summary of events that begin on days parameter
:param int days: number of days to reminder when events star
:param int days: number of days to reminder when events start
:param bool draft_events: filter by draft events too
:param bool near_events:
If you want receive the events which start between now and
Expand Down

0 comments on commit 4abd4dd

Please sign in to comment.