mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: add model to save log of sending files to institutions
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<data noupdate="0">
|
||||
<record model="ir.cron" id="autosend_traveller_report">
|
||||
<field name="name">Automatic Send Traveller Report</field>
|
||||
<field name="active" eval="True" />
|
||||
<field name="active" eval="False" />
|
||||
<field name="interval_number">1</field>
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
<field name="interval_type">days</field>
|
||||
@@ -13,9 +13,9 @@
|
||||
<field name="model_id" ref="model_traveller_report_wizard" />
|
||||
<field
|
||||
name="nextcall"
|
||||
eval="datetime.now(pytz.timezone('UTC')).strftime('%Y-%m-%d 03:00:00')"
|
||||
eval="datetime.now(pytz.timezone('UTC')).strftime('%Y-%m-%d 16:57:00')"
|
||||
/>
|
||||
<field name="code">model.send_file_gc_async()</field>
|
||||
<field name="code">model.send_file_institution_async()</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="channel_gc_file_send" model="queue.job.channel">
|
||||
<field name="name">gc_file_send</field>
|
||||
<record id="channel_institution_file_send" model="queue.job.channel">
|
||||
<field name="name">institution_file_send</field>
|
||||
<field name="parent_id" ref="queue_job.channel_root" />
|
||||
</record>
|
||||
</data>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
>
|
||||
<field name="model_id" ref="pms_l10n_es.model_traveller_report_wizard" />
|
||||
<field name="method">send_file_async</field>
|
||||
<field name="channel_id" ref="pms_l10n_es.channel_gc_file_send" />
|
||||
<field name="channel_id" ref="pms_l10n_es.channel_institution_file_send" />
|
||||
<field name="retry_pattern" eval="{1: 10, 5: 30, 10: 60, 15: 300}" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user