-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from gisce/56739_reencuar_enviament_correus
Reencuar enviament de correus erroni per limitacio de 30 al min
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
from oopgrade.oopgrade import load_data | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version: | ||
return | ||
|
||
logger = logging.getLogger('openerp.migration') | ||
|
||
##UPATAR UN XML SENCER## | ||
logger.info("Updating XML poweremail_mailbox_cronjobs.xml") | ||
load_data( | ||
cursor, 'poweremail', 'poweremail_mailbox_cronjobs.xml', idref=None, mode='update' | ||
) | ||
logger.info("XMLs succesfully updated.") | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
|
||
migrate = up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data noupdate="1"> | ||
<!-- Totes les accions en mode bach en un sol cron --> | ||
<record model="ir.cron" id="ir_cron_reenviar_emails_error" forcecreate="1"> | ||
<field name="name">Reenviar emails amb error</field> | ||
<field name="active" eval="0"/> | ||
<field name="user_id" ref="base.user_admin"/> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="doall" eval="0"/> | ||
<field name="nextcall" eval="time.strftime('%Y-%m-%d 00:00:00')"/> | ||
<field name="model" eval="'poweremail.mailbox'"/> | ||
<field name="function" eval="'_cronjob_resend_emails_error'"/> | ||
<field name="args" eval="()"/> | ||
</record> | ||
</data> | ||
</openerp> |