Commit Graph

429 Commits

Author SHA1 Message Date
Christophe Simonis 47c4728f43 [FIX] mail,website_sale: rename file_type to file_type_icon to avoid name conflict with file_type field added by document module
bzr revid: chs@openerp.com-20140228142233-i0mm9lav0czbydkk
2014-02-28 15:22:33 +01:00
Thibault Delavallée 0b2d085c1b [IMP] shop: added openchatter on product shop
- product.template now inherits from mail.thread
- added opencahtter on product.template form view
- added discussion thread + attachments in product website view
- added file_type field on ir_attachment, that replaces the javascript thing
from mail.js
- added a controller to comment a product.template

bzr revid: tde@openerp.com-20140106135727-uf0zaxav28pdx4sv
2014-01-06 14:57:27 +01:00
Thibault Delavallée 1aa92dbc46 [FORWARD] Forward port of saas-2 fixes until revision 9058 (revid tde@openerp.com-20131220162158-hbgktly09dv37958)
bzr revid: tde@openerp.com-20131220165519-2okhclp3qb3if1ey
2013-12-20 17:55:19 +01:00
Denis Ledoux abefabfa3e [FIX] mail: fix _get_default_from if no alias_name for user.
As alias_name is not anymore required, we should check that the alias_domain AND alias_name are set before choosing the alias as email_from of the mail.message

bzr revid: dle@openerp.com-20131220115213-ll8duh01csk0xy4t
2013-12-20 12:52:13 +01:00
Thibault Delavallée 896fab1b44 [IMP] [FIX] mail: mail_thread: routing: check for exact message_id.
When processing an incoming email, we try to find a parent for the email based on references. Before this merge, it was done using openerp-<model-<res_id> pattern. However it is buggy. Indeed having two OpenERP sending emails to each other leads to messages being inserted in a wrong thread (model and res_id of the first OpenERP for both instances).

Now we search for an exact match between the references and the stored message_ids. As each message_id can be considered as unique the number of collisions is lessened. This won't cause any issues with OpenERP >= 7.0.

A compatibility mode is implemented for <= 6.1: as in those versions the message_id is not stored, we fall back on the previous behavior for records having messages without message_id. This indicates that the record was created before 7.0.

Tests have been updated accordingly, and a test added for the compatibility mode.

bzr revid: tde@openerp.com-20131205100534-2rlyun8wqng3qa6f
2013-12-05 11:05:34 +01:00
Thibault Delavallée c553167ff8 [FIX] mail_message: do not overwrite 'False' message_id when creating a new mail message
bzr revid: tde@openerp.com-20131128133132-8oevlk1wyoqytebo
2013-11-28 14:31:32 +01:00
Thibault Delavallée 4f2e951cde [IMP] mail: mail_thread: routing: check for exact message_id.
WIP: will be improved, notably about what to do for partial match.

bzr revid: tde@openerp.com-20131128103921-q1a36otv9ptazehd
2013-11-28 11:39:21 +01:00
Christophe Simonis 6b7ccc16b7 [FIX] mail: mail_message: avoid crash when checking access rules against invalid ids
bzr revid: chs@openerp.com-20131028135050-4hqx129ouy7z5b03
2013-10-28 14:50:50 +01:00
Thibault Delavallée fbc6443692 [CLEAN] mail: cleaned some read -> browse + forgotten statement to remove
bzr revid: tde@openerp.com-20130913122956-6zkk9ucewbt6w407
2013-09-13 14:29:56 +02:00
Thibault Delavallée 38e75127d9 [MERGE] Syn with trunk
bzr revid: tde@openerp.com-20130906081534-n273weq3h1fvfh2b
2013-09-06 10:15:34 +02:00
Thibault Delavallée e6b85985a5 [MERGE] [FIX] mail: Chatter recipients display fixes.
bzr revid: tde@openerp.com-20130904114911-qbz31cu6675rt603
2013-09-04 13:49:11 +02:00
Thibault Delavallée eaf07ae5c4 [FIX] mail_message: fixed reply_to and email_from computation in create: take also False values, only undefined values trigger the default one
bzr revid: tde@openerp.com-20130828140845-uuv8ouoto4q7g96j
2013-08-28 16:08:45 +02:00
Thibault Delavallée 4779df339e [REF] mail_followers: cleaned notify methods, lessening the number of queries.
bzr revid: tde@openerp.com-20130827153840-fo9s2lc35fvld3fb
2013-08-27 17:38:40 +02:00
Thibault Delavallée b35a44f66d [IMP] mail_mail, mail_message: various improvements to try to improve message creation time
Replaced some read by browse
Moved get_reply_to from mail_mail to mail_message
Hint: specifying email_from, reply_to help to enhance computation time

[REF] mail: cleaned some tests, renamed a file, moved mail_group tests into a dedicated file

bzr revid: tde@openerp.com-20130827133058-ko0g0ib0f0jihmdk
2013-08-27 15:30:58 +02:00
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
Christophe Simonis 58868227f9 [MERGE] forward port of branch 7.0 up to revid 9382 chs@openerp.com-20130823131214-ipouwtnz8r16mlvv
bzr revid: chs@openerp.com-20130823143114-83tdjhbsdes0kydr
2013-08-23 16:31:14 +02:00
Martin Trigaux b03203fd3a [FIX] mail: check create access only for acess rights, not access rules (too permissive)
bzr revid: mat@openerp.com-20130821153918-pdtf4mhcdycfdf3p
2013-08-21 17:39:18 +02:00
Martin Trigaux a6410e1bcf [IMP] mail: beeing more permissive on the condition to post new message, allow also if have only the create access
bzr revid: mat@openerp.com-20130821143714-9a1isp0ylwko275k
2013-08-21 16:37:14 +02:00
Atul Patel (OpenERP) 1a382f268c [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20130812043810-y14dmqwvuxrxkuag
2013-08-12 10:08:10 +05:30
Thibault Delavallée 079ea21883 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130808083451-plvcks1kwjhh2vzi
2013-08-08 10:34:51 +02:00
Atul Patel (OpenERP) 2706328ca4 [IMP] mail: Pass current user partner id into datasets and get it into template. add author also for private mail.
bzr revid: atp@tinyerp.com-20130725071939-9lmuhfgte987nu03
2013-07-25 12:49:39 +05:30
Thibault Delavallée f1f2b2ba06 [IMP] mail: mail.message now has mail_server_id from template_id.
bzr revid: tde@openerp.com-20130722131725-i30xd4b03nui3hyw
2013-07-22 15:17:25 +02:00
Thibault Delavallée 32d0f6bce0 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130717074710-2jz58nqwe7hnyyij
2013-07-17 09:47:10 +02:00
Christophe Simonis aa133b4d29 [MERGE] forward port of branch saas-1 up to revid 8745 chs@openerp.com-20130613181503-82234mo34wxb0oap
bzr revid: chs@openerp.com-20130614091924-z5ta02kwhmwcrgox
2013-06-14 11:19:24 +02:00
Thibault Delavallée a1e942c0de [FIX] mail.compose.message: fixed reply_to from template in mass mailing.
bzr revid: tde@openerp.com-20130606142814-jyw76nhaeivotu6k
2013-06-06 16:28:14 +02:00
Thibault Delavallée 72f6a8c646 [FIX] mail.compose.message: supports user_signature of template. Note that in case of multiple wizards (send on ids that is not a singleton list), user_signature on one template is valid for all wizard.
bzr revid: tde@openerp.com-20130606123724-f7q3mwm81ek7mr5c
2013-06-06 14:37:24 +02:00
Thibault Delavallée 9c57f6e1cd [FIX] mail: various fixes
Mass mailing: emails due to mass mailing are not queued instead of sent immediately.
As most of cases go through mail_followers._notify(), a new argument is added that
allows to control the force_send (like what is done in email_template).
Chatter: better display of recipients when having a message_post due to mass mailing
(not always displaying logged a note).
Notified people: when having no subtype, just avoid notifying the followers but
take into account specified recipients (partner_ids).

bzr revid: tde@openerp.com-20130606102437-43s4xp96b5wa3r1q
2013-06-06 12:24:37 +02:00
Martin Trigaux ccb38117ee [MERGE] Forward porting of saas-1 until rev 8739
bzr revid: mat@openerp.com-20130605090453-e4mg37kms5j1r18n
2013-06-05 11:04:53 +02:00
Thibault Delavallée cdffc4db54 [FIX] project_issue: fixed write of date_action_last: it is possible to post a message without having access to write access rights on an issue, therefore using SUPERUSER_ID (e.g. portal user).
[FIX] mail_message, mail, project, task, issue: it is now possible to have model-specific access rule checking for mail.message related acces right / rules. Task and issue allow to create mail.message when the user has a read access on the related document, not only when having write access.

bzr revid: tde@openerp.com-20130528144447-3ivcom6r9x7q949b
2013-05-28 16:44:47 +02:00
Thibault Delavallée 2d8f1f4327 [FIX] [IMP] mail_message: adding a non-stored author_avatar field, allowing to display avatars in Chatter messages without having to write some hacks to display the avatars and author images. The field is not stored to avoid issues in a stable version.
bzr revid: tde@openerp.com-20130528143706-3973shwhganlohj8
2013-05-28 16:37:06 +02:00
Vidhin Mehta 2f15045af4 [FIX]Fixes on, need fixing issues by MAT.
bzr revid: vme@tinyerp.com-20130523060223-hupizjpulghv8gsy
2013-05-23 11:32:23 +05:30
Vidhin Mehta c745a1d882 [MERGE]Trunk.
bzr revid: vme@tinyerp.com-20130514120110-gi2oehiapff1n3p0
bzr revid: vme@tinyerp.com-20130523051758-70etk8qp90k8e9ou
2013-05-23 10:47:58 +05:30
Thibault Delavallée a394947699 [FIX] mail_message: fixed reference to a key not necessarily existing in a create dict.
bzr revid: tde@openerp.com-20130516140429-vlfc0o56v7ryd69l
2013-05-16 16:04:29 +02:00
Olivier Dony 9c08e12962 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9085
revision-id: odo@openerp.com-20130429105458-r89mnkx8okdxsdld

bzr revid: odo@openerp.com-20130429151410-54y94063gijyk16o
2013-04-29 17:14:10 +02:00
Thibault Delavallée e0ea2dbdcb [IMP] Chatter: first message is truncated after 100 characters, other messages after 300 characters; cleaned code about expan management.
bzr revid: tde@openerp.com-20130425104336-3xvdwgwanrutzinp
2013-04-25 12:43:36 +02:00
Thibault Delavallée 85a807a515 [REF] Chatter: refactored system for read more / read less, now based on html_email_clean instead of the expander library.
bzr revid: tde@openerp.com-20130423153645-k8vcb9hiuapzf7sg
2013-04-23 17:36:45 +02:00
Vidhin Mehta 75d69f5c8d [IMP]remove html tag from body in name_get
bzr revid: vme@tinyerp.com-20130419094938-1bmd3vu30cxsdyqd
2013-04-19 15:19:38 +05:30
Christophe Matthieu 14493f56ce [IMP] ir_ui_menu: trunk to 7.0 dynamic counters
bzr revid: chm@openerp.com-20130417133205-lx4lh53y6ak29cjc
2013-04-17 15:32:05 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Thibault Delavallée fe2ea997a2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130411103645-rmr3sa8p9ropx2gc
2013-04-11 12:36:45 +02:00
Raphael Collet 894eeef8e0 [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073708-gaxl2332umtedmg6
2013-04-11 09:37:08 +02:00
Quentin (OpenERP) 3bb51ac696 [MERGE] forward port of bugfixes made in 7.0, up to revision 8969.
bzr revid: qdp-launchpad@openerp.com-20130404095257-oek77sijuxjyi0aj
2013-04-04 11:52:57 +02:00
Thibault Delavallée 35b51a2efd [IMP] Chatter: improved footer of chatter messages: better differentiation of logged a note / send a message / system notification, with or without recipients.
bzr revid: tde@openerp.com-20130403145151-nvpeqdpp937079iu
2013-04-03 16:51:51 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Thibault Delavallée 5d59401b91 [MERGE] Sync with trunk, tried to resolve the conflicts without breakign everything.
bzr revid: tde@openerp.com-20130315120759-sf1o1sd80ycuuy7n
2013-03-15 13:07:59 +01:00
Thibault Delavallee 99063b421f [REV] mail_thread: message_process: reverted reply_to mechanism, now based on the reply_to-model contained in message_id.
bzr revid: tde@openerp.com-20130312133029-67g69s3ttscwhtoc
2013-03-12 14:30:29 +01:00
Thibault Delavallée 4665d10f05 [IMP] mail, email_template: better consistence of mail.compose.message mdoel ans 0 or res_id res_id for attachments on composer; generate_email_for_composer should avoid returning keys for void values.
bzr revid: tde@openerp.com-20130306134612-yazwi6cgwvw8suyw
2013-03-06 14:46:12 +01:00
Thibault Delavallée 6c3aa520c7 [IMP] mail_followers: improved _notify, to better manage notifications. An optional (to provide compatibility) parameter has been added, that allows to notify partners of a given messages. It checks whether a notification already exists, setting it back as unread, or create a notification pushed by email.
bzr revid: tde@openerp.com-20130226105755-gvkn1ocpwkcndzpl
2013-02-26 11:57:55 +01:00
Thibault Delavallée 0aaca4daa9 [IMP] mail: improved mass mailing. Correctly take into account email_to, email_cc, partner_to even if no template. Mass mailing is a no-subtype post with additional recipients manually notified. Added option (in technical features) to send to followers, or to directly create a mail_mail. Added some default values in mail_message. Added explicit management of email_from and reply_to. Having a reply_to bypasses the 'model-res_id' in message_id behavior allowing to construct threads. Added explicit recipient_ids field on mail_mail that replaces the recipient_ids parameter in mail_mail.send(). Updated tests accordingly.
bzr revid: tde@openerp.com-20130225164857-i635atksj7riq9nd
2013-02-25 17:48:57 +01:00
Thibault Delavallée ecde0aa380 [IMP] Chatter: now displays the 'To' that is the notified people of a given message.
bzr revid: tde@openerp.com-20130214085506-5akyw06ho9vq1xd9
2013-02-14 09:55:06 +01:00