mirror of https://github.com/OCA/social.git
mail_print module
parent
2f40debd84
commit
ec739b4157
|
@ -0,0 +1,45 @@
|
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:alt: License: AGPL-3
|
||||
|
||||
==========
|
||||
Mail Print
|
||||
==========
|
||||
|
||||
This module makes pdf reports from the Emails, so the user will be able to print them.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
* go to ...
|
||||
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/social/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Rami Alwafaie <rami.alwafaie@initos.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © initOS GmbH 2016
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © initOS GmbH 2016
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
'name': "Print Emails",
|
||||
'summary': """
|
||||
PDF Reports to print the emails
|
||||
""",
|
||||
'author': "initOS GmbH, Odoo Community Association (OCA)",
|
||||
'website': "http://www.initos.com",
|
||||
'version': '8.0.1.0.0',
|
||||
'license': 'AGPL-3',
|
||||
'depends': [
|
||||
'report',
|
||||
'mail',
|
||||
],
|
||||
'data': [
|
||||
'report.xml',
|
||||
'views/mail_message_report.xml',
|
||||
],
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_print
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-06-10 13:16+0000\n"
|
||||
"PO-Revision-Date: 2016-06-10 15:18+0100\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
|
||||
#. module: mail_print
|
||||
#: view:website:mail_print.mail_message
|
||||
msgid "Attachments"
|
||||
msgstr "Anhänge"
|
||||
|
||||
#. module: mail_print
|
||||
#: view:website:mail_print.mail_message
|
||||
msgid "Date:"
|
||||
msgstr "Datum:"
|
||||
|
||||
#. module: mail_print
|
||||
#: model:ir.actions.report.xml,name:mail_print.mail_message_pdf
|
||||
msgid "Email"
|
||||
msgstr "Email"
|
||||
|
||||
#. module: mail_print
|
||||
#: view:website:mail_print.mail_message
|
||||
msgid "From:"
|
||||
msgstr "Von:"
|
||||
|
||||
#. module: mail_print
|
||||
#: view:website:mail_print.mail_message
|
||||
msgid "Subject:"
|
||||
msgstr "Betreff:"
|
||||
|
||||
#. module: mail_print
|
||||
#: view:website:mail_print.mail_message
|
||||
msgid "To:"
|
||||
msgstr "An:"
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<report
|
||||
id="mail_message_pdf"
|
||||
model="mail.message"
|
||||
string="Email"
|
||||
report_type="qweb-pdf"
|
||||
name="mail_print.mail_message"
|
||||
file="mail_print.mail_message"
|
||||
/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,60 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="mail_message">
|
||||
<t t-call="report.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="report.internal_layout">
|
||||
<div class="page">
|
||||
<style>
|
||||
.table1 {width: 50%}
|
||||
.table2 {width: 100%}
|
||||
.font {font-family: Helvetica, sans-serif;font-size: 10pt}
|
||||
.bold {font-weight: bold}
|
||||
.space {padding-right: 0.3em;}
|
||||
</style>
|
||||
<table class="table1 table-condensed">
|
||||
<tr>
|
||||
<td class="font bold"><span>From:</span></td>
|
||||
<td class="font"><u><span t-field="o.email_from"/></u></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="font bold"><span>To:</span></td>
|
||||
<td class="font" t-foreach="o.partner_ids" t-as="p"><span t-field="p.name"/> <t t-if="p.email"> <u><span t-field="p.email"></span></u></t></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="font bold"><span>Subject:</span></td>
|
||||
<td class="font"><span t-field="o.subject"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="font bold"><span>Date:</span></td>
|
||||
<td class="font"><span t-field="o.date"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style ="height: 1cm"> </div>
|
||||
<table class="table2 table-condensed">
|
||||
<tr>
|
||||
<td class="font"><span t-field="o.body"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<t t-if="o.attachment_ids" >
|
||||
<div style ="height: 2cm"> </div>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td class="font bold"><span>Attachments</span></td>
|
||||
</tr>
|
||||
<tr t-foreach="o.attachment_ids" t-as="l">
|
||||
<td class="font"><span t-field="l.name"/></td>
|
||||
<td class="font"><span class="space" t-field="l.file_size"></span><span>Bytes</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue