mirror of
https://github.com/bringout/oca-report.git
synced 2026-04-19 08:02:05 +02:00
Initial commit: OCA Report packages (45 packages)
This commit is contained in:
commit
2f4db400df
2543 changed files with 469120 additions and 0 deletions
|
|
@ -0,0 +1,78 @@
|
|||
<odoo noupdate="1">
|
||||
<record id="async_report_delivery" model="mail.template">
|
||||
<field name="name">Report Async: New Report Available</field>
|
||||
<field name="model_id" ref="base.model_ir_attachment" />
|
||||
<field name="subject">Your report is available, {{object.name}}</field>
|
||||
<field
|
||||
name="email_from"
|
||||
>{{object.company_id.partner_id.email_formatted}}</field>
|
||||
<field name="partner_to">{{ user.partner_id.id }}</field>
|
||||
<field name="body_html" type="html">
|
||||
<table
|
||||
border="0"
|
||||
cellpadding="0"
|
||||
cellspacing="0"
|
||||
style="background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"
|
||||
>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table
|
||||
border="0"
|
||||
cellpadding="0"
|
||||
cellspacing="0"
|
||||
width="590"
|
||||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"
|
||||
>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table
|
||||
border="0"
|
||||
cellpadding="0"
|
||||
cellspacing="0"
|
||||
width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"
|
||||
>
|
||||
<tr>
|
||||
<td
|
||||
valign="top"
|
||||
style="font-size: 13px;"
|
||||
>
|
||||
<t
|
||||
t-set="base_url"
|
||||
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"
|
||||
/>
|
||||
<t
|
||||
t-set="download_url"
|
||||
t-value="'%s/web/content/ir.attachment/%s/datas/%s?download=true' % (base_url, object.id, object.name, )"
|
||||
/>
|
||||
<div>
|
||||
Dear <t
|
||||
t-out="object.create_uid.partner_id.name or ''"
|
||||
/>,
|
||||
<br /><br />
|
||||
Your requested report, <t
|
||||
t-out="object.name"
|
||||
/>, is available for <b>
|
||||
<a
|
||||
t-attf-href="{{ download_url }}"
|
||||
>download</a>
|
||||
</b>.
|
||||
<br /><br />
|
||||
Have a nice day!<br />
|
||||
--<br /><t t-out="object.company_id.name" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</field>
|
||||
<field name="auto_delete" eval="True" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<odoo noupdate="1">
|
||||
<record id="job_function_report_async_run_report" model="queue.job.function">
|
||||
<field name="model_id" ref="report_async.model_report_async" />
|
||||
<field name="method">run_report</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue