Commit Graph
76 Commits
Author SHA1 Message Date
f488dc58c3 [IMP] mail: allow to use stand alone activities as reminders
This commit allows to create personal reminders and to manage them using
activities. It is done using activities not necessarily linked to a record
but only to a user. Reminders can be used for example as a personal todo
list.

Technically we choose to model a reminder as an activity related to no
record. This means having a void res_id and model. An activity type is
added to classify reminders in it.

Settings reminder as done is not done like classic activities. Indeed classic
activities are unlinked and a message is logged on the related document.
As there is no document for reminders those are archived instead. It means
an active field is added as well as an override of toggle_archive to update
systray counter.

Activities systray widget is improved to display reminders in activities
list. This entry leads to a kanban view of activities allowing their
management. It is also possible to create them directly from the systray
allowing a quick creation of reminders.

This commit is related to task ID 41745. Closes #22143 .

Co-authored-by: Dharmang Soni <dpr@odoo.com>
Co-authored-by: Xavier Dollé <xdo@odoo.com>
2018-03-27 13:26:41 +02:00
Fabrice Henrion 87217da66a [IMP] mail: update demo data
To new SF phone number
Closes #16711
2017-05-09 13:05:07 +02:00
Jérome Maes 1f3da58cfe [MOV] base,portal: make portal module empty
The goal is to prepare the removal of
'portal' module.

- demo portal user is moved into base
- 'is_portal' field on res.group too
- remaining security rule are moved to base too
- mail template is moved to website_portal
2017-03-23 09:59:58 +01:00
Aline Preillon 2950ffaa86 [IMP] mail: improve notification management, either email either inbox
Currently partners have a boolean field to choose whether to receive
notifications only in their Odoo inbox or to receive them in their inbox
and by email. This leads to several issues :

 * if a customer is configured to not receive emails he will not receive
   any notification on sales orders, leads, ... This is not clearly
   indicated to the salesman and it is not easy to know how to change
   that behavior
 * if an user chooses to receive emails and does not use its inbox a lot
   of notifications stay in Odoo. The user has to manually set them as
   done to make them disappear which is redundant.

This commit changes that behavior. From now on customers will always
receive all notifications by email. Indeed Odoo is not a customer oriented
mailbox. Moreover sales orders or discussions on leads send to customers
should always be sent by email as it is the standard communication
mechanism. Users will be able to choose to receive notifications in Odoo
or by email. The choice is no longer inbox or inbox + email, but inbox
or email. Choosing one option or the other one depends on the way the
user wants to work.

Technically the field is moved on the users model and selection keys
are renamed. Notification process is modified

 * notified_partner_ids contains as before specified recipients as well
   as followers matching the subtype
 * customers and users working with emails are notified. During that
   process customers notifications are marked as done to be able to
   track the email state without having needaction. Users notifications
   are currently deleted as we do not track their email state.

The removal of partner field implies changes in various addons that
define partner data with this field set in the values.
2017-02-21 16:42:11 +01:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Thibault Delavallée cb8c2d2b7e [IMP] tools: sanitizer: quote detection
Quote detection is now done in the sanitizer itself. It tags nodes that are
inside quotes (signature, text quotes, email quotes). The purpose is to remove
html_email_clean and have all the html cleaning / sanitizing inside a single
function. When a node is tagged, data-o-mail-quote is set on the node.
This attribute is added in the whitelist of valid attributes for the
sanitizer.

[REM] Support of shortening messages. The read more / read less will only
display or hide detected quotes and signatures. Shortening messages above
a given amount of characters is not supported anymore. Indeed it adds much
complexity to the sanitizer without adding much value to the result. The
primary purpose of the sanitizer is indeed to remove noise and unnecessary
content.

[TESTS] a lot of test are not necessary anymore, as read more / read less
display will be moved in the front-end and as the shortening has been
removed.Tests have therefore been cleaned and simplified.

[DEMO] mail: small demo update to include a bit quote detection
2016-03-03 15:44:56 +01:00
Aaron Bohy c51af45384 [FIX] mail: various UI improvements
- vertically center date and messages separators in threads
- remove notifications in DM and livechat
- order mail demo data so that messages appear ordered (they are ordered by id)
- make sure that DM are pinned (they weren't on the receiver side)
- don't display DM until a message has been sent
- validate message body
- undo snackbar fine tuning
- fix Firefox scroll bug on sidebar rendering (the scroll position was often
  lost when the sidebar was re-rendered, seemingly because the width of the
  thread changed for a brief moment)
2015-11-17 10:06:18 +01:00
Yannick Tivisse c3a24af6a0 [REM] Remove res_partner_9, replace him by res_partner_12 2015-08-25 19:27:24 +02:00
Yannick Tivisse e35c166ea4 [REM] Remove res_partner_23, replace him by res_partner_12 2015-08-25 19:27:23 +02:00
Yannick Tivisse 0f3f8dec9b [REM] Remove res_partner_22, replace him by res_partner_1 2015-08-25 19:27:23 +02:00
Yannick Tivisse 1d75b68a2b [REM] Remove res_partner_21, replace him by res_partner_4 2015-08-25 19:27:23 +02:00
Yannick Tivisse dd12eb4fd8 [REM] Remove res_partner_20 2015-08-25 19:27:23 +02:00
Yannick Tivisse a0c82f9450 [REM] Remove res_partner_19, replace him by res_partner_2 2015-08-25 19:27:22 +02:00
Yannick Tivisse 706255eec1 [REM] Remove res_partner_17, replace him by res_partner_12 2015-08-25 19:27:22 +02:00
Yannick Tivisse bc80026f48 [REM] Remove res_partner_16, replace him by res_partner_1 2015-08-25 19:27:22 +02:00
Yannick Tivisse 2fa4e7c6a3 [REM] Remove res_partner_15, replace him by res_partner_3 2015-08-25 19:27:22 +02:00
Yannick Tivisse bdfc1a56b8 [REM] Remove res_partner_14, replace him by res_partner_4 2015-08-25 19:27:22 +02:00
Yannick Tivisse dfbc51135c [REM] Remove res_partner_13, replace him by res_partner_2 2015-08-25 19:27:21 +02:00
Yannick Tivisse f9dd6d70b9 [REM] Remove res_partner_11, replace him by res_partner_3 2015-08-25 19:27:21 +02:00
Yannick Tivisse 259f0c88bd [REM] Remove res_partner_8, replace him by res_partner_12 2015-08-25 19:27:21 +02:00
Yannick Tivisse 9c71ef9e90 [REM] Remove res_partner_7, replace him by res_partner_4 2015-08-25 19:27:21 +02:00
Yannick Tivisse 8b4a3e9ca4 [REM] Remove res_partner_6, replace him by res_partner_1 2015-08-25 19:27:21 +02:00
Yannick Tivisse ed97a70b10 [REM] Remove res_partner_5, replace him by res_partner_3 2015-08-25 19:27:21 +02:00
Thibault Delavallée 88b8cd0587 [REF] mail: model update for NewChatter
Main changes :
- mail.notification model is removed. People do not receive notifications
anymore. Instead two ways of following documents exist
  - using a channel; messages will be displayed on the channel itself
  in a near future commit
  - following with its partner; messages will all be considered as
  needaction, using a new m2m table. People should receive less
  needaction messages by following less records by themselves.
There is no more read / unread state anymore. Instead only needaction
messages are considered. Todo (Favorites) messages still exist, and are
stores on a new m2m table instead of using decorated notifciations.
- the main filter for documents is not message_unread anymore, but
message_needaction. A lot of views and filters have been updated
accordingly.
- the vote feature has been removed
2015-08-21 12:11:56 +02:00
Thibault Delavallée 4b122ad41d [MIGR] mail: migration to the new API 2015-04-27 10:36:15 +02:00
Jaydeep Barot 5bc04994f3 [IMP] typo error message and validateError and typo in chatter msg
bzr revid: jar@tinyerp.com-20140421065009-4j8z0awc9t4b82tb
2014-04-21 12:20:09 +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
Atul Patel (OpenERP) 33b99c8a07 [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20140218055618-r36w29vat7zig9ar
2014-02-18 11:26:18 +05:30
Stephane Wirtel bea411bb98 [IMP] Backport one feature from website: this feature allows to specify a file
path on the field tag fetching the right file instead of using the base64
encoded file in the field.

<field name="image" type="base64" file="base/static/img/main_partner-image.png" />

bzr revid: stw@openerp.com-20140109154550-a04qybctzaaqtrlr
2014-01-09 16:45:50 +01:00
Mahendra Barad caa3510ea4 [IMP] Mail Improvements
bzr revid: kjo@tinyerp.com-20131218131805-e97d5tmq2tr6pvh2
2013-12-18 18:48:05 +05:30
Anand Patel (OpenERP) 6eb9e93ba1 [IMP]Improve code for message[mail]
bzr revid: pan@tinyerp.com-20121129062415-7kl6kggkf4dbo1rd
2012-11-29 11:54:15 +05:30
Thibault Delavallée 99a3ef8860 [CLEAN] Demo data: fixed some typos, cleaned a bit before merging.
bzr revid: tde@openerp.com-20121120102325-5xts5n801p9islgy
2012-11-20 11:23:25 +01:00
Thibault Delavallée d6639ba1e6 [MOV] admin and demo avatar: moved from mail to server.
bzr revid: tde@openerp.com-20121120091854-ksun8xc0ya79olil
2012-11-20 10:18:54 +01:00
Thibault Delavallée 5b32736597 [CLEAN] mail: cleaned a bit the demo data.
bzr revid: tde@openerp.com-20121119101953-np1gw8e7qhfhncgq
2012-11-19 11:19:53 +01:00
Thibault Delavallée b444043aea [IMP] mail demo data: removed a few warnings.
bzr revid: tde@openerp.com-20121119093705-netx11bsa1gsmrei
2012-11-19 10:37:05 +01:00
Thibault Delavallée 79c275c0ca [CLEAN] mail: cleaned demo data about files and noupdate: fixed some typos.
bzr revid: tde@openerp.com-20121119092457-lgiijzl4c6c90nuk
2012-11-19 10:24:57 +01:00
Thibault Delavallée 618829ccd9 [FIX] mail_demo: fixed attachment_ids.
bzr revid: tde@openerp.com-20121116171541-3rbe6kq04maa1z7e
2012-11-16 18:15:41 +01:00
Thibault Delavallée 61835e0080 [IMP] mail, crm: improved demo data.
bzr revid: tde@openerp.com-20121116153141-n8nxkg6g8uypex1a
2012-11-16 16:31:41 +01:00
Thibault Delavallée 2a61424ddb [FIX] mail, crm demo data: back to noupdate.
bzr revid: tde@openerp.com-20121116081657-kyua3pggy84awx4p
2012-11-16 09:16:57 +01:00
Fabien Pinckaers fa93a1d65e [IMP] demo data
bzr revid: fp@openerp.com-20121115222751-y25pkf50caeajwg1
2012-11-15 23:27:51 +01:00
Fabien Pinckaers 3a8353a302 [IMP] demo data
bzr revid: fp@openerp.com-20121115220945-fws0ue11f9d05ttj
2012-11-15 23:09:45 +01:00
Thibault Delavallée 8539249bdb [IMP] mail, crm: demo data largely updated.
bzr revid: tde@openerp.com-20121115182641-99ndilbr5m4x1oft
2012-11-15 19:26:41 +01:00
Christophe Matthieu 3918c05a37 [MERGE] from trunk
bzr revid: chm@openerp.com-20121115101056-m96xojis7lky8xcn
2012-11-15 11:10:56 +01:00
Thibault Delavallée 9f0f87f82b [FIX] mail: removed demo data that should not have been merged at rev 8004.
bzr revid: tde@openerp.com-20121114161607-n14fzx8jxygyfy8g
2012-11-14 17:16:07 +01:00
Thibault Delavallée 9c7951c84d [FIX] Fixed last merge... forgot a tag in mail_demo;
bzr revid: tde@openerp.com-20121114154739-ls35o0zfx8ckdlgk
2012-11-14 16:47:39 +01:00
Thibault Delavallée 48ce331544 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121114154021-vsllo3keszi9732d
2012-11-14 16:40:21 +01:00
Christophe Matthieu 52349a7525 [IMP] mail and crm: demodata for search (has attachment) and expandable
bzr revid: chm@openerp.com-20121114150047-f2d30euntwjurnt4
2012-11-14 16:00:47 +01:00
Christophe Matthieu eb6dc15b7f [IMP] mail and crm: demodata with favorite notification
bzr revid: chm@openerp.com-20121114134259-wtj5v6kplgu8ptvl
2012-11-14 14:42:59 +01:00
Christophe Matthieu d282df466c [FIX] mail: do not display record_name when the user is on a document
bzr revid: chm@openerp.com-20121114132517-6c5rfiikkuchcmxx
2012-11-14 14:25:17 +01:00
Christophe Matthieu a43662d125 [IMP] mail: change the header title and description for each mailbox and group discussion
bzr revid: chm@openerp.com-20121114122033-dl70fqty2kbd5gj1
2012-11-14 13:20:33 +01:00