Commit Graph
36 Commits
Author SHA1 Message Date
Yannick Tivisse f6c0418a80 [IMP] mail: Send plaintext emails on discussion with external user/partner
When there are no available action buttons on the email (as Follow, View Task,
Convert to Opportunity), i.e. when the user/partner is not an employee, and
when the message subtype is 'Discussion', send a plaintext mail instead of
a formatted one.

Use case: Strange to receive a mail like this when you're on a lead and you
receive formatted mails.
2016-03-07 15:55:53 +01:00
Denis Ledoux 85b39df834 [FIX] mail: odoo link in notification email
This is the forward port of the below revision:
135ad9e954

That should have been done in the below forward-port:
c298cf3250

opw-667335
2016-01-21 17:39:05 +01:00
Martin Trigaux c298cf3250 [MERGE] Forward port of 9.0 up to 7892d99f 2015-12-18 16:15:08 +01:00
Thibault Delavallée 135ad9e954 [FIX] mail: odoo link in notification email
Put the whole adresse, to avoid having it prefixed by a domain.
2015-12-11 10:29:40 +01:00
Denis Ledoux 4bebbfdcf5 [FIX] mail: jinja2 code compatible with wysiwyg for notifications
When editing an email template with the wysiwyg,
the `<` and `>` operators are automatically converted
to `&lt;` and `&gt;`, even for the Jinja2 conditions,
therefore breaking these conditions, and the render
of the email templates.

We avoid to use these operators in the email
template, so users can customize the notification
email template without having an advanced
knowledge on how to edit an email template containing
Jinja2 code.

Besides, the line return at the end of the email template,
just after the `% endif`,
is done on purpose as well: the wysiwyg adds automatically,
at the time of this revision,
`<p></p>` at the end of the email template source, but
this cannot be added on the same line than `% endif`,
otherwise this is considered as Jinja2 code, and it's not.

opw-659113
2015-12-10 16:58:15 +01:00
Christophe Simonis 0a07be8190 [MERGE] forward port of branch 9.0 up to 87a8896 2015-11-03 13:14:23 +01:00
Thibault Delavallée b52069754d [IMP] mail: notification template
The template used for notifications is updated. The general layout
is now

header: logo -- action buttons, contextual actions
separator
body
signature
Sent by company using Odoo
2015-11-02 11:50:14 +01:00
Thibault Delavallée 9e53e2173a [FIX] mail: small issues layout of notifications 2015-10-30 15:44:15 +01:00
Thibault Delavallée a36de1efad [FIX] mail: notification email cleaning
- remove / udpate some paddings. Indeed some part of the notification emails
  are badly aligned.
- postprocess the notification email to remove the content coming from odoo.
  This ensure that action buttons present in some emails are not forwarded to
  other people, notably customers. This is done by adding a div holding the
  whole notification emails, with a summary = o_mail_notification. A summary
  is used instead of a class or id because some html clients (like gmail)
  strip classes, ids, ... summary seems to be kept in several clients.
2015-10-26 10:28:46 +01:00
Raphael Collet f739c38d58 [IMP] mail: trigger garbage collection of attachments from model ir.autovacuum 2015-09-30 16:29:59 +02:00
Aaron Bohy a0cbf891af [REM] *: remove chat menu and timeline view 2015-09-01 20:57:13 +02:00
Thibault Delavallée 01ab75f597 [IMP] mail: notification emails with button
Notification emails have been redesigned. They notably include buttons
allowing to perform some action directly from the email.

The notification creation and sending has been partially rewritten
and improved. The purpose is to lessen the number of rendering to perform
when sending emails to recipients. Recipients are first categorized into
groups. Basic groups are partners and users. The notification template
is then rendered twice, one for followers and one for not-followers. In most
cases there will be few rendering to perform. Through inheritance it
is possible to further categorize users. For example HR users / officers
that have approve / refuse buttons in their email.

A custom data structure is used to store data about buttons and actions.
URLs, follow / unfollow are added in the structure and used in the
template to render the email for a given group.

New routes are added in mail. Those allow to perform some action, like
going to a form in create mode, following / unfollowing, executing a method,
sending a signal for a workflow. Those routes are for users only and rely
on classic access rights.

A generic route for viewing records is added. It replaces the old redirect
action. According to some specific action given by the already-existing
get_access_action, the record will be visible for everybody (forum, blog)
or restricted (going on the Inbox / login / form view, according to access
rights).

The next commit will add the various inherits necessary to add the actions
in the main addons.
2015-08-28 17:30:42 +02:00
Thibault Delavallée d931aa3825 [RENAME] mail, portal: updated actions and views xml ids
for channel-related stuff. mail.channel views as well as timeline views
and actions have been renamed. Now the names follow the guidelines and
will be used in the upcoming refactoring of mail and chat.
2015-07-09 11:13:02 +02:00
Thibault Delavallée 9cd9aaaa17 [IMP] mail: new internal-only subtype feature.
Starting from now, subtypes can be internal. This means that only employees
(group_user members) can see the messages with this subtype. This feature
replaces and enhances the 'log a note = no subtype = internal only'
feature.

Public and portal users cannot see internal messages. This allows to have
subtypes and a follow mechanism that works for employees and is not
visible for external people.

Its first use will be for Crm Activities, allowing to have custom
subtypes visible only for salesman and not send to the customer.
2015-07-01 12:52:52 +02:00
Denis Ledoux 58c1963c9a [IMP] mail: app specific notifications 2014-09-17 14:23:02 +02:00
Amit Vora bf3d4a7d94 [MRG] merge with main branch
bzr revid: avo@tinyerp.com-20140414071801-3eaa6iqryfrolxbt
2014-04-14 12:48:01 +05:30
Amit Vora cfbd8ae9f8 [IMP] change field name notificatio_email_send to notify_email and none selection key instead of never
bzr revid: avo@tinyerp.com-20140409101604-1l8ltrcpjps8pazi
2014-04-09 15:46:04 +05:30
Thibault Delavallée d834e1b66d [IMP] mail: jump to the Messaging menu after installation
bzr revid: tde@openerp.com-20140409074730-eirq7st1ya6g0ooc
2014-04-09 09:47:30 +02:00
Chirag Dodiya (OpenERP) fa30038c2c [MRG]Merge with lp:openobject-addons
bzr revid: cod@tinyerp.com-20140321050817-31v8k14za5w60pjh
2014-03-21 10:38:17 +05:30
Thibault Delavallée d3ea25c0ba [IMP] crm: added sequence on subtypes
bzr revid: tde@openerp.com-20140221112915-1o9pk3gjohtl558w
2014-02-21 12:29:15 +01:00
Mahendra Barad caa3510ea4 [IMP] Mail Improvements
bzr revid: kjo@tinyerp.com-20131218131805-e97d5tmq2tr6pvh2
2013-12-18 18:48:05 +05:30
Christophe Simonis 5343c48c5f [MERGE] forward port of branch saas-1 up to revid 8760 chs@openerp.com-20130823143114-83tdjhbsdes0kydr
bzr revid: chs@openerp.com-20130823154655-blm2wyfivmg8qi2z
2013-08-23 17:46:55 +02:00
Thibault Delavallée d874d9980d [FIX] mail: fixed wrong parsing of multipart/mixed emails.
alternative mode is computed when browsing the parts, not from
the message content type.

Added tests.

Also added some notification_email_send to none to avoid sending
emails in demo/data/update.

bzr revid: tde@openerp.com-20130823120611-0n4ull3c8gvwug2u
2013-08-23 14:06:11 +02:00
Thibault Delavallée f3f2d72e04 [REV] [IMP] mail: mail.catchall.alias is now only a system parameter; removed from configuration (because much too technical) + udpated tests that could crash on an existing instance.
bzr revid: tde@openerp.com-20130517131109-aosyv23p7rz5sjg5
2013-05-17 15:11:09 +02:00
Thibault Delavallée fcea61b6eb [IMP] mail: added a cron job to delete mail attachments (lost user input or reports generated on-the-fly). They have: res_model = mail.compose.message; res_id 0; more than one day of inactivity.
bzr revid: tde@openerp.com-20130307132517-4xivu90dzn3o744a
2013-03-07 14:25:17 +01:00
Olivier Dony 5542fcfb58 [FIX] mail: incorrect model in cron job config, method moved to mail.mail
bzr revid: odo@openerp.com-20121221204141-j8ke5r1vi89vpcys
2012-12-21 21:41:41 +01:00
Thibault Delavallée ce923903b5 [IMP] [REVIEW] [DOC] addons: added some comments in the various data files about subtypes.
bzr revid: tde@openerp.com-20121203114009-obtca9gf3t7b909y
2012-12-03 12:40:09 +01:00
Olivier Dony a331b9e8ac [FIX] update_notifications: typo
bzr revid: odo@openerp.com-20121126171346-g3xrdtvlp8s8z31n
2012-11-26 18:13:46 +01:00
Thibault Delavallée d8a67f02f8 [FIX] project: fixed auto-follow for task and cleaned code. Also fixed subtype name and related models, as well as comment, now Discussions.
bzr revid: tde@openerp.com-20121102152430-mww1cqcjiluuhtvv
2012-11-02 16:24:30 +01:00
Antony Lesuisse 3c26ec305a [IMP] mail: move the code from publisher_warranty to mail
bzr revid: stw@openerp.com-20121004044624-hwa3kztl58zrjguh
2012-10-04 06:46:24 +02:00
Thibault Delavallée 64672b1764 [CLEAN] mail: comment xml_id is now mt_comment. Propagated change. Slighty cleaned code in base_status.
bzr revid: tde@openerp.com-20120919114353-8s9lo6tp78tnwj56
2012-09-19 13:43:53 +02:00
Thibault Delavallée 9ec025be0e [CLEAN] mail message subtype: cleaned model and views.
bzr revid: tde@openerp.com-20120919110035-724052iqfkkafm73
2012-09-19 13:00:35 +02:00
Sanjay Gohel (Open ERP) ce39ffe927 [IMP]changed as per new spec update and make it work for crm changes done in crm
bzr revid: sgo@tinyerp.com-20120912112245-3cp03024fiqb47qs
2012-09-12 16:52:45 +05:30
Amit Patel (OpenERP) f36dd4c891 [IMP]:improved test case
bzr revid: apa@tinyerp.com-20120906105914-iwoi15ghgtibt2lr
2012-09-06 16:29:14 +05:30
Foram Katharotiya (OpenERP) aa9fa89423 [IMP] improve demo data of crm and add demo data in project
bzr revid: fka@tinyerp.com-20120829131532-vpvaaq0mbwdfktyk
2012-08-29 18:45:32 +05:30
Thibault Delavallée e267063735 [REF] mail module: moved some data to a new data folder.
bzr revid: tde@openerp.com-20120503125746-7a4x62x7qmj6uduz
2012-05-03 14:57:46 +02:00