Browse Source

Merge pull request #16 from Yajo/mail_sent

[ADD] New module mail_sent.
pull/22/head
Pedro M. Baeza 9 years ago
parent
commit
6fe673f635
  1. 61
      mail_sent/README.rst
  2. 0
      mail_sent/__init__.py
  3. 20
      mail_sent/__openerp__.py
  4. 34
      mail_sent/i18n/es.po
  5. 30
      mail_sent/i18n/mail_sent.pot
  6. BIN
      mail_sent/static/description/icon.png
  7. 172
      mail_sent/static/description/icon.svg
  8. 32
      mail_sent/views/mail.xml

61
mail_sent/README.rst

@ -0,0 +1,61 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
==========
Sent mails
==========
This module was written to extend the functionality of mails to support seeing only sent messages
and allow you to easily check them.
Usage
=====
To use this module, you need to:
* Go to *Messaging > Messaging > Sent*.
* If you wish to see only unread ones, click on the counter bubble (if any).
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/205/8.0
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 `here <https://github.com/OCA/
social/issues/new?body=module:%20 mail_sent%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
* Thanks to `Danny Allen <http://dannya.com/>`_ and `Openclipart
<https://openclipart.org>`_ for `the icon
<https://openclipart.org/detail/110941/folder-sent-mail>`_.
Contributors
------------
* Rafael Blasco <rafabn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.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 http://odoo-community.org.

0
mail_sent/__init__.py

20
mail_sent/__openerp__.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Sent mails",
"summary": "Provide a view of sent mails",
"version": "8.0.1.0.0",
"category": "Social Network",
"website": "https://odoo-community.org/",
"author": "Antiun Ingeniería, S.L., Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"mail",
],
"data": [
"views/mail.xml",
],
}

34
mail_sent/i18n/es.po

@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_sent
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-29 16:49+0200\n"
"PO-Revision-Date: 2015-09-29 16:50+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.8.4\n"
"Last-Translator: \n"
"Language: es\n"
#. module: mail_sent
#: model:ir.actions.client,help:mail_sent.action
msgid ""
"<p><b>No sent messages.</b></p>\n"
" <p>This list contains messages sent by you.</p>\n"
" "
msgstr ""
"<p><b>No hay mensajes enviados.</b></p>\n"
"<p>Esta lista contiene mensajes enviados por usted.</p>"
#. module: mail_sent
#: model:ir.actions.client,name:mail_sent.action
#: model:ir.ui.menu,name:mail_sent.menu
msgid "Sent"
msgstr "Enviados"

30
mail_sent/i18n/mail_sent.pot

@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_sent
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-29 14:47+0000\n"
"PO-Revision-Date: 2015-09-29 14:47+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: mail_sent
#: model:ir.actions.client,help:mail_sent.action
msgid "<p><b>No sent messages.</b></p>\n"
" <p>This list contains messages sent by you.</p>\n"
" "
msgstr ""
#. module: mail_sent
#: model:ir.actions.client,name:mail_sent.action
#: model:ir.ui.menu,name:mail_sent.menu
msgid "Sent"
msgstr ""

BIN
mail_sent/static/description/icon.png

After

Width: 100  |  Height: 100  |  Size: 4.3 KiB

172
mail_sent/static/description/icon.svg

@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:cc="http://web.resource.org/cc/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns1="http://sozi.baierouge.fr"
id="svg1"
sodipodi:docname="folder_sent_mail.svg"
viewBox="0 0 60 60"
sodipodi:version="0.32"
version="1.0"
y="0"
x="0"
inkscape:version="0.38.1"
sodipodi:docbase="/home/danny/flat/scalable/filesystems"
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-width="1016"
pagecolor="#ffffff"
inkscape:zoom="4.9119411"
inkscape:window-x="0"
borderopacity="1.0"
inkscape:cx="22.559197"
inkscape:cy="35.151018"
inkscape:window-y="0"
inkscape:window-height="685"
inkscape:pageopacity="0.0"
/>
<path
id="path938"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#333333;stroke-width:3.125;fill:#b3b3b3"
transform="translate(-.25448 3.5627)"
d="m5.433 8.4867c-0.5262 0-0.9687 0.4425-0.9687 0.9687v4.8746c-0.0012 0.025-0.0313 0.038-0.0313 0.063v37c0 0.884 0.71 1.594 1.5938 1.594h37.281c0.884 0 1.594-0.71 1.594-1.594v-37c0-0.884-0.71-1.594-1.594-1.594h-14.719v-3.3436c0-0.5262-0.442-0.9687-0.968-0.9687h-22.188z"
/>
<rect
id="rect922"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#333333;stroke-width:3.2351;fill:#7f7f7f"
rx="1.5953"
transform="matrix(1 0 -.35965 .93309 -.25448 3.5627)"
width="40.476"
sodipodi:stroke-cmyk="(0 0 0 0.8)"
y="23.398"
x="25.032"
height="33.45"
sodipodi:fill-cmyk="(0 0 0 0.5)"
/>
<g
id="g843"
transform="translate(-.088511)"
>
<path
id="path589"
sodipodi:nodetypes="ccccc"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#333333;stroke-linecap:round;stroke-width:19.058;fill:#bfbfbf"
d="m69.819 119.6h303.75v171.31h-303.75l-0.001-171.31z"
transform="matrix(.096220 0 -.039720 .10059 17.496 20.836)"
/>
<path
id="path590"
sodipodi:nodetypes="ccc"
style="stroke-linejoin:round;stroke:#333333;stroke-linecap:round;stroke-width:19.058;fill:none"
d="m69.819 119.6l150.12 90.41 153.63-90.41"
transform="matrix(.096220 0 -.039720 .10059 17.496 20.836)"
/>
</g
>
<path
id="path968"
style="stroke-linejoin:round;fill-rule:evenodd;stroke:#333333;stroke-linecap:round;stroke-width:3.125;fill:#7f7f7f"
d="m-32.86 34.838c7.889-17.305 21.249-13.233 21.377-13.233v5.726l7.6976-9.225-7.7616-7.762v5.79s-18.514-4.327-21.313 18.704z"
sodipodi:nodetypes="ccccccc"
transform="translate(60.821 -6.362)"
sodipodi:stroke-cmyk="(0 0 0 0.8)"
/>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
<dc:title
>folder sent mail</dc:title
>
<dc:date
>2011-01-31T01:00:19</dc:date
>
<dc:description
>Originally uploaded by Danny Allen for OCAL 0.18 - this is one icon from the flat theme</dc:description
>
<dc:source
>https://openclipart.org/detail/110941/folder-sent-mail-by-anonymous</dc:source
>
<dc:creator
>
<cc:Agent
>
<dc:title
>Anonymous</dc:title
>
</cc:Agent
>
</dc:creator
>
<dc:subject
>
<rdf:Bag
>
<rdf:li
>flat</rdf:li
>
<rdf:li
>icon</rdf:li
>
<rdf:li
>theme</rdf:li
>
</rdf:Bag
>
</dc:subject
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

32
mail_sent/views/mail.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="action" model="ir.actions.client">
<field name="name">Sent</field>
<field name="tag">mail.wall</field>
<field name="res_model">mail.message</field>
<field name="context">{
'default_model': 'res.users',
'default_res_id': uid,
'thread_model': 'res.partner',
}</field>
<field name="params" eval="&quot;{
'domain': [
('author_id.user_ids', 'in', [uid]),
],
'view_mailbox': True,
'read_action': 'read',
'show_compose_message': False,
}&quot;"/>
<field name="help" type="html">
<p><b>No sent messages.</b></p>
<p>This list contains messages sent by you.</p>
</field>
</record>
<menuitem id="menu"
action="action"
parent="mail.mail_feeds"
groups="base.group_user"/>
</data>
</openerp>
Loading…
Cancel
Save