Commit Graph

936 Commits

Author SHA1 Message Date
Olivier Dony 8ac110c4dd [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5098 rev-id: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
bzr revid: dle@openerp.com-20131009131902-a93nsbou4w8y0vlx
bzr revid: chs@openerp.com-20131009175454-j06y1ngylfbqyrpj
bzr revid: dle@openerp.com-20130918160049-fo88fl7uyhfoofkv
bzr revid: dle@openerp.com-20130924130544-kmkyr0d73cusvdav
bzr revid: odo@openerp.com-20131011134433-nyfjipvlql4xu127
2013-10-11 15:44:33 +02:00
Turkesh Patel (Open ERP) 40f189adfb [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20131009093540-y9ueph05ah04gixg
2013-10-09 15:05:40 +05:30
Denis Ledoux d32c663fbe [FIX]mail: mail_thread, trying to send a message in the chatter while the emails where all mal-formed raised an error.
bzr revid: dle@openerp.com-20131008111845-tx3bpp8snfl03cnk
2013-10-08 13:18:45 +02:00
ajay javiya (OpenERP) 46fdb4ee83 [IMP]: Change warning message if login user is not an employee and try to post internal note
bzr revid: aja@tinyerp.com-20130927094215-nf4mvdkz4mqr7543
2013-09-27 15:12:15 +05:30
ajay javiya (OpenERP) 6b4a1a3d55 [IMP]: Rename log a note to Log an internal note
bzr revid: aja@tinyerp.com-20130926132322-pvu18fr5w24lc18m
2013-09-26 18:53:22 +05:30
ajay javiya (OpenERP) 2f708369cb [IMP][REM]: Improve code and remove unused method
bzr revid: aja@tinyerp.com-20130924133041-0j2k8qc5ubjxwghx
2013-09-24 19:00:41 +05:30
ajay javiya (OpenERP) 712eee6e3d [ADD]: Warning message if user try to post a internal comment and he/she is not an employee
bzr revid: aja@tinyerp.com-20130924105210-rrfk2z6du7hiblr6
2013-09-24 16:22:10 +05:30
ajay javiya (OpenERP) cbe9d337a5 [IMP]: reduce rpc call , add options 'display_log_button' on field,
[REM]: unwanted record rule

bzr revid: aja@tinyerp.com-20130923133201-zclwecr2n596e989
2013-09-23 19:02:01 +05:30
Thibault Delavallée 1d76129a22 [FIX] mass_mailing:
- fixed forgottent import of mail_thread in mass_mailing, to enable bounce and replied tracking
- fixed replied computation in message_route_process, adding the original email in parameters
- fixed form view of campaign, to add edit and dlete now that clicking on it redirects to the waves
- added track field on mail_mail, to avoid creating too mush entries in mail.mail.statistics
- fixed mass_mailign controller

bzr revid: tde@openerp.com-20130916114706-b9zyhp0ha6mr9fzg
2013-09-16 13:47:06 +02: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 ed62d1dac7 [REF] mass_mailing: first refactor
Mail statistics are now stored onto a separated object (mail.mail.statistics), allowing to
handle emails separately from statistics (among other removing mail.mail entries while keeping
statistics).

Everything linnked to opened/replied/bounce is not managed by mass_mailing, removed added code
in mail module.

bzr revid: tde@openerp.com-20130913115408-322cyjipdg680as6
2013-09-13 13:54:08 +02:00
Thibault Delavallée ce8c987089 [IMP] mail, email_template, mass_mailing: improvev mass mailing management in mail.compose.message + form view cleanings + some fixes in mail_mail about set_opened/replied/bounced, now checking that ids effectively exist
bzr revid: tde@openerp.com-20130910151901-nhuwvtrkbwekyh7x
2013-09-10 17:19:01 +02:00
Thibault Delavallée 903ca548c7 [IMP] mass_mailing: added kanban views for mass_mailing, implemented segment for campaigns. Moved sparkline and gauge widgets to web.
Segment: template, date, mails.
Campaign: grouped statistics.

bzr revid: tde@openerp.com-20130903145936-nwy250w1suxmtbl3
2013-09-03 16:59:36 +02:00
Thibault Delavallée 21d57f5e9d [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130826085410-qngwkw6eyxol4192
2013-08-26 10:54:10 +02:00
Turkesh Patel (Open ERP) 155d152b90 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20130826053724-dzymzruugarkfv34
2013-08-26 11:07:24 +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
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
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
Turkesh Patel (Open ERP) 9162b740e9 [MRG] merge lp:openobject-addons
bzr revid: tpa@tinyerp.com-20130813104102-11sp0qb2iupu0xyq
2013-08-13 16:11:02 +05:30
Thibault Delavallée 982915b7d0 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130807145147-ltn86n2a87q8y88g
2013-08-07 16:51:47 +02:00
Thibault Delavallée 2eece10cd4 [FIX] mail_mail: computation of reply_to after create to avoid
interfering with automatic message_id creation of mail_message
[FIX] mail_thread: fixed issues with private messages through mailgateway
(wrong route checking, variable erasing)
[TEST] mail: added test for the second bug

bzr revid: tde@openerp.com-20130807142418-3h5qxdt3ekosj9x6
2013-08-07 16:24:18 +02:00
Thibault Delavallée fd100054cc [FIX] mail_mail: fixed reply_to computation (before create was leading to a wrong message_id to the embedded mail_message); mail_thread; fixed private discussion not going through the route checking; improved replying through mailgateway now incrementing the replied field of mail_mail.
bzr revid: tde@openerp.com-20130807130118-yggvmontssofxt0q
2013-08-07 15:01:18 +02:00
Thibault Delavallée 38a534dee0 [IMP] mail: first implementation of tracking and bounce management.
Added 2 fields on mail_mail to count read/bounce.
Added bounce alias bounce-mail_id-model-res_id.
Added message_receive_bounce method that try to incremetn message_bounce field.

bzr revid: tde@openerp.com-20130806151143-7dw6xlj8n7mh0nqe
2013-08-06 17:11:43 +02:00
Turkesh Patel (Open ERP) b210c4de66 [MRG] merge with lp:openobject-addons, changes of stage state task merged in this changes
bzr revid: tpa@tinyerp.com-20130726124542-dl3f1g0jgmb8gjan
2013-07-26 18:15:42 +05:30
Thibault Delavallée e0e3d98557 [IMP] mail: refactored check_mail_message_access
bzr revid: tde@openerp.com-20130723144507-bwwegheqofs7x1ox
2013-07-23 16:45:07 +02:00
Thibault Delavallée 68d1c2928f [CLEAN] Cleaning befor merging
No need to use an image for edition -> use webtypo font instead
Small code cleaning in js / python

bzr revid: tde@openerp.com-20130723095509-knp45uvmlfmr27v9
2013-07-23 11:55:09 +02:00
Christophe Simonis bf29a2ebc7 [MERGE] forward port of branch 7.0 up to revid 9302 chs@openerp.com-20130718111616-apacuhc2qhquobtc
bzr revid: dle@openerp.com-20130627104833-b9zgtu8urj43f12b
bzr revid: mat@openerp.com-20130702135856-kmg7d8anw17nkbd8
bzr revid: chs@openerp.com-20130718115928-wpa84dqh8tcq31zt
2013-07-18 13:59:28 +02:00
Paramjit Singh Sahota 54837802ac Improved code.
bzr revid: psa@tinyerp.com-20130715113736-ww4wffkajnwkk961
2013-07-15 17:07:36 +05:30
Paramjit Singh Sahota 670710b88e [IMP] Improved code and passed the data according to the format as suggest (partner_id, partner_name, {'is_editable': True/False, 'is_uid': True/False}) and done changes according this changes.
bzr revid: psa@tinyerp.com-20130715080106-63dbeh3mhgiqppzv
2013-07-15 13:31:06 +05:30
Paramjit Singh Sahota 6694183dcb [IMP] Improved code and added
{'is_editable': True/False, 'is_uid': True/False}
-- where is_editable will be True if uid is in technical group
-- where is_uid will be True if uid is in partner.user_ids.

bzr revid: psa@tinyerp.com-20130712133920-96l6axns7yynyz9e
2013-07-12 19:09:20 +05:30
Paramjit Singh Sahota 3ed5c9e838 [MERGE] Sync with lp:openobject-addons
bzr revid: psa@tinyerp.com-20130711110346-63ouy2j3zp5sndcr
2013-07-11 16:33:46 +05:30
Turkesh Patel (Open ERP) e4fd9bb105 [IMP] improved view and code to show default alias for job
bzr revid: tpa@tinyerp.com-20130704083631-e0cyn2fxpqfhg5hb
2013-07-04 14:06:31 +05:30
RGA(OpenERP) 07282840ac [FIX] fetch mail should uncode attached filename too
bzr revid: rgaopenerp-20130703092937-jqrj76i3gzro9isx
2013-07-03 14:59:37 +05:30
Martin Trigaux d2d72d8416 [MERGE] forward port of saas-1 up to revision 8749 (mat@openerp.com-20130702135856-kmg7d8anw17nkbd8)
bzr revid: mat@openerp.com-20130702144646-y1wqs5mz4rzoh50g
2013-07-02 16:46:46 +02:00
Paramjit Singh Sahota cc2632f9c7 [MERGE] Sync with lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130628045057-iapbncjjao6tiew6
2013-06-28 10:20:57 +05:30
Thibault Delavallée e3c729e1a6 [CLEAN] Cleaned last commit.
bzr revid: tde@openerp.com-20130627145519-533br1ho1da3d4f0
2013-06-27 16:55:19 +02:00
Thibault Delavallée bf4ada34b4 [REF] mail_thread: message_track now uses browse records instead of read results.
Updated addons accordingly.
Updated tests to test corner cases using False / null browse records.

bzr revid: tde@openerp.com-20130627144647-swbj77i84vo9ii0v
2013-06-27 16:46:47 +02:00
Paramjit Singh Sahota 74bbd696f7 [MERGE] Sync with lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130626065359-z17dk91q9c0rgfaw
2013-06-26 12:23:59 +05:30
Thibault Delavallée 3994ea12e9 [CLEAN] Misc cleaning before merging (some code cleaning, added comments).
bzr revid: tde@openerp.com-20130625092606-l8bqt3ce2xz4zm9t
2013-06-25 11:26:06 +02:00
Thibault Delavallée e6ee1d315e [CLEAN] Misc cleaning before merging
bzr revid: tde@openerp.com-20130624162457-8y8eqwebwolvcdc6
2013-06-24 18:24:57 +02:00
Thibault Delavallée fd90140d7b [REF] mail_thread: refactored message_route improvement, to be closer to the original code + call to a new method that checks the route, instead of doing everything in one method.
bzr revid: tde@openerp.com-20130624151827-hxwaelefs540pvca
2013-06-24 17:18:27 +02:00
Thibault Delavallée b7f4ddb880 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130621092424-supbxu8mwm2qtu6b
2013-06-21 11:24:24 +02:00
Thibault Delavallée ff00a84d33 [FIX] mail: fixed a glitch in message_subscribe sometimes overriding specified subtypes
bzr revid: tde@openerp.com-20130620135718-qi0d8fpqvombq3v1
2013-06-20 15:57:18 +02:00
Thibault Delavallée cd9efe1f99 [FIX] mail: take into account default_ context values for auto subscribe
bzr revid: tde@openerp.com-20130619123829-gr1rkgp490bdci9u
2013-06-19 14:38:29 +02:00
Paramjit Singh Sahota 7428cac4af [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130617113826-hb6zbv73t3h2hmij
2013-06-17 17:08:26 +05:30
Thibault Delavallée 7b7dfb955f [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130617095141-74uttqtw60iorl5g
2013-06-17 11:51:41 +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
Christophe Simonis 6a9adbca62 [MERGE] forward port of branch 7.0 up to revid 9236 mat@openerp.com-20130613160953-itt79mu5xrl7suv4
bzr revid: chs@openerp.com-20130613181503-82234mo34wxb0oap
2013-06-13 20:15:03 +02:00
Thibault Delavallée 41311b9f33 [FIX] mail: fixed id of record in a loop (record.id, not all ids).
bzr revid: tde@openerp.com-20130613095228-b4r8kca7hkjd6ppa
2013-06-13 11:52:28 +02:00
Thibault Delavallée 2652bd586d [FIX] mail: message_subscribe_users: refactoring of the algorithm to achieve better computation time.
Previous implementation did a search on mail.followers with subtype_ids=False, leading
to a very bad computation time. This search is now avoided.

bzr revid: tde@openerp.com-20130613082029-lmd63s3mqwxasy4j
2013-06-13 10:20:29 +02:00
Paramjit Singh Sahota 01fcf4686e [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130612130222-ro7iun4a23qqjefj
2013-06-12 18:32:22 +05:30
Thibault Delavallée fc44f25d3a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130612123429-a4mp0wiicdhlvk0m
2013-06-12 14:34:29 +02:00
Thibault Delavallée 43d08b898f [MERGE] [IMP] 'Social Aspects' Task
Purpose:
- mail is now focused on messaging; partner document is now a classic document, without specific behavior; removed the concept of 'my followers' from mail;
- hr adds social features to mail: employee profile is used to display internal messages; employees can follow other employees, comment and react on their profile messages;
- display suggestion of Groups and Employees to follow in the Inbox, using a new widget. The purpose is to promote social interactions between employees and to improve the visibility of groups;

mail:
- add suggestions.Group widget that allows to display a list of suggested groups to follow; this widget is displayed in the Inbox;
- display 'Partner profile of' or 'News from' when reading messages from a partner profile / employee profile in the Inbox;
- 'Compose a new message or Write to my followers' is not present anymore when hr is not installed, because this social aspect comes with HR;
- mail_thread: add a search function on message_is_follower;
- mail_group: implement suggested groups behavior;
- res_partner: removed specific code changing message_post with type='email' to a private discussion between author and destination partner; partner document behaves like a classic document;
- res_users: add 'display_groups_suggestions' field that controls the display of suggested groups to follow;
- res_users: writing on a res.users object is considered as a private discussion; when Hr is not installed, only aliases should be able to post on a user;

hr_employee:
- when creating an employee, post a message on its profile and push it to every employees of the same company;
- add follow/unfollow and message and follower count on employee kanban view;
- implement suggested employee behavior;
- HR improves the basic Inbox by adding the 'Compose a new message or Write to my followers';
- allow to post on an employee profile when having read access right if the user that posts is an employee;

HR:
- add suggestions.Employee widget that allows to display a list of suggested employees to follow; this widget is displayed in the Inbox;
- res_users: add 'display_employees_suggestions' field that controls the display of suggested employees to follow;
- res_users: do not welcome new users anymore, welcome new employees instead
- res_users: incoming emails are still considered as private messages (using aliases); however messages posted on user profile are redirected to the related employee profiles (used for 'Write to my followers')

bzr revid: tde@openerp.com-20130612121258-j38do5opsot2ur7c
2013-06-12 14:12:58 +02:00
Thibault Delavallée 99dd06cfd0 [FIX] [HACK] Delocate code about mail_thread inheritance from portal to mail_thread, because of the inheritance graph bug in trunk to sovle that makes this code not visible for hr.employee.
bzr revid: tde@openerp.com-20130612113630-ao1dxpv0ax5n4xje
2013-06-12 13:36:30 +02:00
Denis Ledoux 75ed151ad9 [FIX]mail: mail_thread, method message_capable_models was not returning all message capable models
bzr revid: dle@openerp.com-20130611133314-pq9bmj7af61k7swe
2013-06-11 15:33:14 +02:00
Thibault Delavallée dff9e6f8d8 [FIX] mail: fixed hasattr on hasattr.
bzr revid: tde@openerp.com-20130610154809-uro1vnbpe90ip1d4
2013-06-10 17:48:09 +02:00
Paramjit Singh Sahota 8d19463d12 1. Improved code for the oe_partner which is overlapping the edit followers image and partners name when the image is displayed.
2. Merged lp:openobject-addons.

bzr revid: psa@tinyerp.com-20130607122251-gn567auxz4ny1nu3
bzr revid: psa@tinyerp.com-20130610072250-pfxkmbcutl672877
2013-06-10 12:52:50 +05:30
Thibault Delavallée 5601fbd78c [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130606135313-u3mbe1a8yeussnck
2013-06-06 15:53:13 +02:00
Thibault Delavallée a216e70e85 [FIX] [IMP] mail: allow to use message_post on models not having message_post method defined.
mail.compose.message wizard and messaage_process now check that the active model
has message_post defined. Otherwise using thread_model context key that is better
managed in message_post, it is possible to use mail_thread.message_post() with a
thread_model and thread_id that should not allow message_post otherwise.

Hint: look for backport into 7.0

bzr revid: tde@openerp.com-20130606123230-d7ql14yydzfrlc7h
2013-06-06 14:32:30 +02:00
Paramjit Singh Sahota 52b02c879b [IMP] Improved code without disturbing the others methods and solved the issue of unfollowing the specific user by specific id.
bzr revid: psa@tinyerp.com-20130605131031-bppkpzdwmi8sp4f7
2013-06-05 18:40:31 +05:30
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
Paramjit Singh Sahota 388a3e14a1 [ImP] method name change and removed the access call which is not needed bcz the system is calling it self.
bzr revid: psa@tinyerp.com-20130604094722-2b8i6ba7blz1g2rc
2013-06-04 15:17:22 +05:30
Thibault Delavallée 25544c2289 [FIX] mail_alias: aliases proposed in empty list fixed.
Check only aliases that effectively create new records (not aliases used for updating).
When having several possible aliases, do not display any alias, because we do not have
any information about the correct alias to display.

bzr revid: tde@openerp.com-20130530124128-w7lz1jsrspyu38dv
2013-05-30 14:41:28 +02:00
Martin Trigaux d626d3cb61 [MERGE] backport saas-1 rev 8728
[FIX] mail, project, project_issue, crm_lead: fixed 'XX Created' subtype not triggered because of condition
based on state=new and not state=draft.
For tasks, issues and leads, no generic 'Document created' message is posted anymore
because of the 'XX Created' message with subtype automatically logged.
Generic creation message is logged before automatic subscription to enable
message pushing to responsibles.

bzr revid: mat@openerp.com-20130529143022-wy76srwb2nwkspe3
2013-05-29 16:30:22 +02:00
Thibault Delavallée d4dbd3524c [FIX] mail, project, project_issue, crm_lead: fixed 'XX Created' subtype not triggered because of condition
based on state=new and not state=draft.
For tasks, issues and leads, no generic 'Document created' message is posted anymore
because of the 'XX Created' message with subtype automatically logged.
Generic creation message is logged before automatic subscription to enable
message pushing to responsibles.

bzr revid: tde@openerp.com-20130529131458-9709ffrsy479hwy3
2013-05-29 15:14:58 +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
Paramjit Singh Sahota 1c7ce4aa37 [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130522064934-9ief76qy3lynwqt9
bzr revid: psa@tinyerp.com-20130527131734-mnqn4fir6b3pzogt
2013-05-27 18:47:34 +05:30
Thibault Delavallée 3f5c738084 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522110325-hos9ocph7yo9ae7w
bzr revid: tde@openerp.com-20130522143206-uv1f6lj6xsenzj6u
2013-05-22 16:32:06 +02:00
Thibault Delavallée cd278d83ab [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130522103305-yi5ql1chdx9qxxlx
bzr revid: tde@openerp.com-20130522114236-qi2s3i2dl2lemdvh
2013-05-22 13:42:36 +02:00
Thibault Delavallée a05b0bebbe [FORWARD] Forward port of 7.0 branch until revision 9143.
bzr revid: tde@openerp.com-20130521122359-b5vii7gv8arluz06
2013-05-21 14:23:59 +02:00
Thibault Delavallée ac3f8a7615 [FIX] mail_thread: fixed bug in contact check, comparing int to list of browse is not a good idea.
bzr revid: tde@openerp.com-20130517151309-v0x32829dpwr0dw6
2013-05-17 17:13:09 +02:00
Thibault Delavallée 88e3505554 [IMP] mail_alias: added reference to the parent record.
The parent record is the record that holds the alias. It is different
from the record updated or created using the alias. For example
projects have aliases whose parent is the given projet, and that creates
new task inside the project.
Updated alias creation and management accordingly.
This ownership concept is used to compute the 'followers' contact
settings of aliases.

bzr revid: tde@openerp.com-20130516164207-1zr0q6abw6a34ndf
2013-05-16 18:42:07 +02:00
Martin Trigaux 0c5bd1acd6 [IMP] mail: clean code
bzr revid: mat@openerp.com-20130508133224-y0mtl3421yfoka2p
2013-05-08 15:32:24 +02:00
Thibault Delavallée ea0316e3f1 [FIX] [FIX] mail: fixed subscription of an already subscribed follower erasing already existing subtypes + added tests
bzr revid: tde@openerp.com-20130508102304-p52bq0qux9s7rses
2013-05-08 12:23:04 +02:00
Thibault Delavallée a576c23043 [FIX] empty list menu tip: do not display 'False' aliases.
bzr revid: tde@openerp.com-20130507130149-qd1rjfrphin6ds59
2013-05-07 15:01:49 +02:00
Martin Trigaux 1fdf64b309 [IMP] search on field message_is_follower
bzr revid: mat@openerp.com-20130502123945-z3sg64sotgd5q98n
2013-05-02 14:39:45 +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 c08b877370 [FIX] mail: fixed redirection action that was not redirecting to the discussion when failing to open the document.
bzr revid: tde@openerp.com-20130429093329-w0qxiiipx1mkz6qt
2013-04-29 11:33:29 +02:00
Thibault Delavallée 0691000b61 [IMP] account_invoice: now have its _get_formview_action method. _get_formview_action is the renaming of _get_document_action, by the way.
bzr revid: tde@openerp.com-20130426144019-w4tq4of7rdkyqbah
2013-04-26 16:40:19 +02:00
Thibault Delavallée b61c12d28e [MERGE] Revisions 9000 ... 9002 of 7.0 branch
bzr revid: tde@openerp.com-20130426132847-mr8e0yuxao582bs6
2013-04-26 15:28:47 +02:00
Thibault Delavallée 0dada27fcd [MERGE] Revisions 8997 ... 8999 of 7.0 branch.
bzr revid: tde@openerp.com-20130426132721-02lkoc41fms9ve1k
2013-04-26 15:27:21 +02:00
Vishmita Jadeja (openerp) 4847ba7997 [Merge]Merge lp:openobject-addons
bzr revid: vja@tinyerp.com-20130418051753-az8hip1buttp1ykk
2013-04-18 10:47:53 +05:30
Martin Trigaux 67bffc62c4 [IMP] clean code
bzr revid: mat@openerp.com-20130417151721-fmwd143gazkldvu3
2013-04-17 17:17:21 +02:00
Thibault Delavallée a75cc23573 [REF] mail: refactored system to generate links in signatures. A new server action is used that choose to redirect to the document or to the Inbox (Portal or Classic Inbox, depending on the user).
bzr revid: tde@openerp.com-20130417122225-faf0bb5vyhbcx7ys
2013-04-17 14:22:25 +02:00
Martin Trigaux cadddbdf81 [IMP] overwrite get_suggested_thread for anonymous
bzr revid: mat@openerp.com-20130417104504-k0us58cta22goblj
2013-04-17 12:45:04 +02:00
Martin Trigaux 56a5a3280f [MERGE] Latest trunk
bzr revid: mat@openerp.com-20130417072750-dp6pjn14vy6hitsp
2013-04-17 09:27:50 +02:00
Thibault Delavallée a68e7fe9eb [FIX] mail_thread: message_process: fixed body of bounced emails.
bzr revid: tde@openerp.com-20130416153809-d5xbjqw6i7l7x4av
2013-04-16 17:38:09 +02:00
Thibault Delavallée c2f02f6798 [FIX] mail, crm: fixed some access rights issues when using chatter on a document without access rights with portal users.
bzr revid: tde@openerp.com-20130417085927-wg07siehk2uhrkpu
2013-04-17 10:59:27 +02:00
Thibault Delavallée c1a0489156 [FIX] Chatter: fixed calls to refactored methos.
bzr revid: tde@openerp.com-20130416134405-nxtwbvxbz77pxufx
2013-04-16 15:44:05 +02:00
Thibault Delavallée 7f6a475590 [IMP] [REF] mail_thread: refactored a bit message_parse, message_route and various find_partner methods.
Now handles private aliases (alias_contact as partners or followers).
message_route now works in 2 steps :
1/ finding all possible routes, as before
2/ checks and filtrates those routes, by finding the most
relevant message author and using it to check alias contact settings.
Also refactored the various partner finding method in one method
that checks in res.partner, for: partners, partners that are users,
partners that follow a given document.

bzr revid: tde@openerp.com-20130416132813-zcm1r5kx0dwrfeic
2013-04-16 15:28:13 +02:00
Thibault Delavallée f35246e81c [MERGE] Sync with trunk, to benefit from freshly forward-ported 7.0 bugfixes.
bzr revid: tde@openerp.com-20130411082704-qce7e1moyo2sxz0c
bzr revid: tde@openerp.com-20130411141158-lk7lsf2haqbjit1u
2013-04-11 16:11:58 +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
Paramjit Singh Sahota 1a2e7c01ff [MERGE] Merged lp:openobject-addons
bzr revid: psa@tinyerp.com-20130411123808-1bmkyv5h042r672a
2013-04-11 18:08:08 +05:30
Paramjit Singh Sahota 5bbffbc39c [IMP] Improved code and made the EDIT followers visible when 'Technical Features' are given and it is in 'DEBUG mode'.
bzr revid: psa@tinyerp.com-20130411123537-2wzb468o7o0dno8c
2013-04-11 18:05:37 +05:30
Thibault Delavallée f8a2299525 [MERGE] [FIX] mail, email_template: fix attachment duplication and clean attachment management
The way attachments are linked to the document has been cleaned. Posting method message_post may receives 2 arguments:
- attachment_ids: those linked to the wizard model (mail.compose.message) are linked to the document (res_model, res_id)
- attachments: the tuples are used to create new attachments linked to the document
The wizard does not set the res_model and res_id of attachments anymore, delegating this job to message_post.

The mail.message and mail.compose.message now use their respective attachment_ids field when possible. This is done instead of reading/creating new attachments based on the attachments tuple each time a mail.compose.message is processed. Email templates now also use attachment_ids, in particular when generating emails, instead of using the attachments tuple. Only reports are still generated on the fly and put into attachments instead of attachment_ids.

A cron job has been added to unlink 'lost' attachments. Those are attachments:
- linked to 'mail.compose.message'
- with res_id=0 (due Chatter used in minimal mode or reports generated by templates before the wizard has an ID)
- with no activity for more than one day (create_date and write_date)

bzr revid: tde@openerp.com-20130411112033-mqph9vjlcjkoolfs
2013-04-11 13:20:33 +02:00
Thibault Delavallée 8c7cf300eb [MERGE] [FIX] mail: bettersuggested recipients based on email address. It tries to find a partner that is in the related document followers, or a user, or the first partner with matching email.
bzr revid: tde@openerp.com-20130411104151-wi5ru54b362pv957
2013-04-11 12:41:51 +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
Thibault Delavallée f994529725 [IMP] mail: finding partner based on email: improved code for suggested partners, added somme comments and tests.
bzr revid: tde@openerp.com-20130411101720-mumz152dsxvv1xbj
2013-04-11 12:17:20 +02:00
Raphael Collet 894eeef8e0 [MERGE] from trunk
bzr revid: rco@openerp.com-20130411073708-gaxl2332umtedmg6
2013-04-11 09:37:08 +02:00
Paramjit Singh Sahota 7df8cdd0d6 [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130409045814-01qtqmktkcz9lw5f
2013-04-09 10:28:14 +05:30
Paramjit Singh Sahota 1769067ddd [IMP] Improved code and removed unwanted 'None'.
bzr revid: psa@tinyerp.com-20130409043932-z5c8hupbhrednwa0
2013-04-09 10:09:32 +05:30
Thibault Delavallée 8b97805621 [FIX] mail: fixed some translation issues.
Document created text was not translatable
Subtype was fetched without context, therefore not translated
Removed odd override of _t introduced in mail_followers at revision 7885

bzr revid: tde@openerp.com-20130408092447-3ri41v6xluuj0wha
2013-04-08 11:24:47 +02:00
Martin Trigaux b9352e9eea [MERGE] Latest trunk
bzr revid: mat@openerp.com-20130405141758-2a0nzmg8cbwe7145
2013-04-05 16:17:58 +02:00
Martin Trigaux c593c0cfe8 [FIX] do not show suggestions for anonymous
bzr revid: mat@openerp.com-20130405141618-zosargns9o355v7y
2013-04-05 16:16:18 +02:00
Paramjit Singh Sahota e61d6bae16 [IMP] Improved code and passed user_id=None as optional field.
bzr revid: psa@tinyerp.com-20130405134425-3xfbbv3vapq1un68
2013-04-05 19:14:25 +05:30
Paramjit Singh Sahota fcb015d277 [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130405133030-u1lr42lly3dqvr37
2013-04-05 19:00:30 +05:30
Thibault Delavallée c41cc328bb [IMP] mail_thread: in empty list help, do not display alias info when alias domain is not configured.
bzr revid: tde@openerp.com-20130405115830-wv64k3z20t8m1odx
2013-04-05 13:58:30 +02:00
Thibault Delavallée d50b159f81 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130405111048-kqxll4mdwnsq2r8o
2013-04-05 13:10:48 +02:00
Thibault Delavallée 1804c558e7 [IMP] mail: empty list help: take first created alias by default, because this should be the configuration data like 'sales'.
bzr revid: tde@openerp.com-20130405110702-51yt8on1t3c2v54o
2013-04-05 13:07:02 +02:00
Martin Trigaux 87e3fe92bd [FIX] remove strange unicode char
bzr revid: mat@openerp.com-20130405074322-fiy3merl5kfuvlc2
2013-04-05 09:43:22 +02:00
Paramjit Singh Sahota 7e2e37b7c9 [IMP] Added *None* where message_subscribe is used.
bzr revid: psa@tinyerp.com-20130404095528-l58jnpxiw8l5nuqf
2013-04-04 15:25:28 +05:30
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
Paramjit Singh Sahota 9a2a45c768 [IMP] Improved code and removed unwanted code.
As suggested by tde in his comment
>>  **What's the purpose of defining a new 'check_access_right' ? Limiting to 'group_no_one' does not seems a viable solution. Instead, access rights on mail.followers entries should be correctly written (please check it is the case). I think having an asynchronous call just to check access rights is not necessary. In debug mode, always display the button.**

bzr revid: psa@tinyerp.com-20130404084724-meqsx35jdvk56z2c
2013-04-04 14:17:24 +05:30
Martin Trigaux ee1c4c18c9 [IMP] sort on id
bzr revid: mat@openerp.com-20130404082028-0klv136soo0oba73
2013-04-04 10:20:28 +02:00
Paramjit Singh Sahota b32cc3b442 [IMP] Improved code
1) Edit Subscriptions of -> Edit Subscription (without 's') of
2) Instead of defining a new 'apply_edited_subtype', you can use 'message_subscribe' that has an optional 'subtype_ids' parameter that already allows to manage subtypes of a subscription.
3) In _get_subscription_data: do not use context when it is not necessary. Please add a parameter user_id=None that will be used instead of uid to find user_pid.
4) Instead of defining a new 'on_apply_subtype', can't you reuse 'do_update_subscription' with maybe some update to handle the classic use / edit widget ?
The above changes has been done.

bzr revid: psa@tinyerp.com-20130404070723-5v1v35fte6vl2b2j
2013-04-04 12:37:23 +05:30
Martin Trigaux 8d8eb553ce [ADD] suggestions for employees to follow
bzr revid: mat@openerp.com-20130403142716-lmsz9hwkg7tathly
2013-04-03 16:27:16 +02:00
Christophe Matthieu 8c67d4150b [PROGRESS]
bzr revid: chm@openerp.com-20130403142206-i4oirpl41usx4qg0
2013-04-03 16:22:06 +02:00
Martin Trigaux 851e6c1f5a [REF] cleaning js code
bzr revid: mat@openerp.com-20130403122408-fbbybeczf6xqwjvc
2013-04-03 14:24:08 +02:00
Thibault Delavallée 37bec9643d [FIX] mail: fixed recipients of private discussion, that were not correct. Author could be notified of their own reply independently of the specified recipients. Added tests for private discussions.
bzr revid: tde@openerp.com-20130403121307-4rixx7ct6y86spoz
2013-04-03 14:13:07 +02:00
Thibault Delavallée a173caa0f4 [FIX] Fixed wrong parameter name given to astimezone introduced at revision 8954; correct parameter name is tz, not tzinfo.
bzr revid: tde@openerp.com-20130403120926-xfxtj5hsva6jzb1u
2013-04-03 14:09:26 +02:00
Paramjit Singh Sahota 06986e4737 [Merge] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130403111825-c1ja5gozec1mxmq3
2013-04-03 16:48:25 +05:30
Christophe Matthieu 767fe2458a [FIX] mail: issue: After receiving inbox messages from external emails, when clicking on reply button the external email is listed in the form. However when clicking on send the external email is removed! and instead of email what we get is an internal note.
bzr revid: chm@openerp.com-20130403085116-m2kyiem0r2dnjwov
2013-04-03 10:51:16 +02:00
Raphael Collet fb4b655139 [FIX] mail: make some registry access more tolerant
bzr revid: rco@openerp.com-20130329145652-ux8g42u063015zy9
2013-03-29 15:56:52 +01: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 c6bf1f1af3 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130329103315-ico83ec57l2dzx4v
2013-03-29 11:33:15 +01:00
Thibault Delavallée 3a155a408a [CLEAN] mail_thread: cleaned code of get_empty_list_help (using variables instead of calls to context, better indentation of help message formatting
bzr revid: tde@openerp.com-20130329100151-pbtdm85qp27wohgk
2013-03-29 11:01:51 +01:00
Chris Biersbach fd84a4dec4 [FIX] the functionality to save the original mail fetched by the fetchmail module now correctly works
bzr revid: cbi@openerp.com-20130327112517-evcxdkedguka6y8a
2013-03-27 12:25:17 +01:00
Thibault Delavallée f3a976fd53 [FIX] mail: fixed suggested recipients, not taking into account followers; when having multiple email addresses, this could lead to people being suggested based on email although they already are followers.
bzr revid: tde@openerp.com-20130326125311-xlt1lt1te28fcm1o
2013-03-26 13:53:11 +01:00
Christophe Matthieu 9845f41c09 [IMP] project, project_issue: improve get_empty_list_help
bzr revid: chm@openerp.com-20130325104012-h5ryupgzglia4twg
2013-03-25 11:40:12 +01:00
Thibault Delavallée dbaeee703f [IMP] mail: alias_contact on alias. However, not sure this will be usefull, to discuss.
bzr revid: tde@openerp.com-20130322155734-9jfc7w8nw8oiytd4
2013-03-22 16:57:34 +01:00
Thibault Delavallée 682089878f [IMP] mail: message_process: updated logger (debug -> info, email_from and email_to in logger messages).
bzr revid: tde@openerp.com-20130322134410-2kjptxqrc3bmcbyj
2013-03-22 14:44:10 +01:00
Thibault Delavallée 6cfb01d7c9 [FIX] mail: message_process: do not process incoming emails with a message_id already existing in database.
Before trying to find possible routes, check that the incoming email's
message_id is not already present in mail.message table.
If it is the case, return False.

Parsing of the message has been moved before routing, to avoid looking
for routes for emails we will discard.

Tests have been added and updated.

bzr revid: tde@openerp.com-20130322124809-ven2p5kxpqfjqxb5
2013-03-22 13:48:09 +01:00
Paramjit Singh Sahota bd6a436bbb [IMP] Added css for the ' Close(X)' icon of the dialog box when the title size increases than overlap the title.
bzr revid: psa@tinyerp.com-20130322091026-m0eqoqnt1t2p184v
2013-03-22 14:40:26 +05:30
Thibault Delavallée 4e90cbe28e [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130322090933-k1jdo40wer42to1e
2013-03-22 10:09:33 +01:00
Vishmita Jadeja (openerp) f1db1ed778 [IMP]Add method for checking the group technical features.
bzr revid: vja@tinyerp.com-20130322082206-x2490850o8qbkmk0
2013-03-22 13:52:06 +05:30
Christophe Matthieu 9d45f9ad82 [IMP] code cleaning for get_empty_list_help
bzr revid: chm@openerp.com-20130321133139-k6ycur34ojw2qhjq
2013-03-21 14:31:39 +01:00
ajay javiya (OpenERP) 8ecb77a59d [FIX]: mail chatter issue
bzr revid: aja@tinyerp.com-20130321125508-ixlskc9rnnalwcwl
2013-03-21 18:25:08 +05:30
Paramjit Singh Sahota e627fce6b8 [IMP] Little improvement with context(context is None:).
bzr revid: psa@tinyerp.com-20130321124859-281pcjosai1xtvaj
2013-03-21 18:18:59 +05:30
Paramjit Singh Sahota e9065f7727 [IMP] Reduced code, deleted redundant code, deleted the edit template and used it in the existing by using 'mode' and improved code using the existing code and removed unwanted code.
bzr revid: psa@tinyerp.com-20130321124036-0s4pv3oivzesmjh5
2013-03-21 18:10:36 +05:30
Thibault Delavallée 3106310824 [MERGE] Sync with 7.0 until 8906
bzr revid: tde@openerp.com-20130321120618-0vaokwa3bmvlpe01
2013-03-21 13:06:18 +01:00
Thibault Delavallée 88b39119b8 [MERGE] [FIX] mail_gateway: better algorithm to find the partner of an incoming email when having multiple matching partners for a given email address.
The mailgateway tries to find a partner that is also an user with the email_from.
If none is found, it takes the first partner with matching email.
In message_post, it tries to find the author based on the document's followers.
Indeed it is very likely that an answer comes from a follower of a document.

The whole process is not done inside the mailgateway because document
and followers related stuff belong to message_post, not to the mail gateway.

Tests have been added in mail.

bzr revid: tde@openerp.com-20130321120451-qk524qayq28sw3th
2013-03-21 13:04:51 +01:00
Thibault Delavallée f02e8bfd61 [FIX] Broltch
bzr revid: tde@openerp.com-20130321112823-nmqzcjzigiwt09q7
2013-03-21 12:28:23 +01:00
Thibault Delavallée 40a5dda617 [MERGE] Forward port of addons until 8903
bzr revid: tde@openerp.com-20130321093716-3nt7h2xunl8lusqh
2013-03-21 10:37:16 +01:00
Paramjit Singh Sahota 6d3e4d7b9e [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130321064554-w3yt1py9lnucryyc
2013-03-21 12:15:54 +05:30
Thibault Delavallée 62fc6f7cd7 [CLEAN] Cleaned code of fix.
bzr revid: tde@openerp.com-20130320164202-yy13qg8pdx09ie9z
2013-03-20 17:42:02 +01:00
Thibault Delavallée 30a1d99d07 [MERGE] Sync with trunk + fixed the fix and tests.
bzr revid: tde@openerp.com-20130320161045-41bpe36b09tgcxpo
2013-03-20 17:10:45 +01:00
Christophe Matthieu dfa5e391e1 [IMP] mail: dynamic_help fix
bzr revid: chm@openerp.com-20130320143417-fgkjh03xp2ekpkgg
2013-03-20 15:34:17 +01:00
Christophe Matthieu 8ccf57fe9d [IMP] mail: dynamic_help fix
bzr revid: chm@openerp.com-20130320140528-5nambcm6ftpamove
2013-03-20 15:05:28 +01:00
Christophe Matthieu 36028e22b2 [IMP] mail: dynamic_help fix false message
bzr revid: chm@openerp.com-20130320135051-bit13xz2lv18x5m9
2013-03-20 14:50:51 +01:00
Christophe Matthieu 6bfb7801ae [IMP] mail: dynamic_help
bzr revid: chm@openerp.com-20130320134116-6drwq1wd0u11x77m
2013-03-20 14:41:16 +01:00
Christophe Matthieu ae30f8fff3 [MERGE] from trunk
bzr revid: chm@openerp.com-20130320125517-jv2ot85iypncoesj
2013-03-20 13:55:17 +01:00
Thibault Delavallée 82b3e9b5fd [FIX] mail: mail_create_nosubscribe context key also supported in message_post: allows to avoid subscribing the author to the document.
bzr revid: tde@openerp.com-20130320084011-coyf9p1il2ue04bb
2013-03-20 09:40:11 +01:00
Chris Biersbach 9e6d14a289 [IMP] Removed unnecessary code in project_issue.py, fixed a small error in mail_thread
bzr revid: cbi@openerp.com-20130319103822-ss4y3na3i4hip4e0
2013-03-19 11:38:22 +01:00
Paramjit Singh Sahota cf3415f087 [IMP]Changed the position of methods and improved code.
bzr revid: psa@tinyerp.com-20130319073319-8myj2hx5iaqmi5xj
2013-03-19 13:03:19 +05:30
Paramjit Singh Sahota d6a8dc2af5 [MERGE] Merged lp:openobject-addons.
bzr revid: psa@tinyerp.com-20130318061027-p2w4b4oupcnkdhtb
2013-03-18 11:40:27 +05:30
Paramjit Singh Sahota 0abe605544 [IMP] Oops sorry forgot to remove the prints and improved code.
bzr revid: psa@tinyerp.com-20130315124843-xtp19rbm2cvyfb67
2013-03-15 18:18:43 +05:30
Thibault Delavallée 660b94845a [IMP] mail_compose_message: mass mailing does not auto_subscribe author anymore.
bzr revid: tde@openerp.com-20130315124009-xgfwr5xuxe1fhrut
2013-03-15 13:40:09 +01:00
Paramjit Singh Sahota b5df63291a [IMP] Removed the dialog box on apply and close to open a new dialog box everytime.
Removed unwanted code.

bzr revid: psa@tinyerp.com-20130315123157-n0n3fdej014ysz7v
2013-03-15 18:01:57 +05:30
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
Paramjit Singh Sahota 90868a8089 [IMP] Add method for the apply button when the user click on the apply button of the dialog box the data will be updated
Removed unwanted code and clean the code.

bzr revid: psa@tinyerp.com-20130315085245-uhefj63na5z62of5
2013-03-15 14:22:45 +05:30
Quentin (OpenERP) be05b374a1 [MERGE] forwardport of bugfixes made in v7 up to revision 8854.
bzr revid: qdp-launchpad@openerp.com-20130314112740-s01t51p4m7mxcumz
2013-03-14 12:27:40 +01:00
Paramjit Singh Sahota 0b62a6858f [IMP] 1) Added code for opening the dialog box of edit followers,
2) Added an image in the mail.message.subtype template which is visible when the Technical Features menu is selected true .
3) On clicking on the edit pencil which is with the followers name gives the subtypes of the specific followers on which the user had clicked rather than the current form.

bzr revid: psa@tinyerp.com-20130314102949-4v9l6xpz5u1jeq10
2013-03-14 15:59:49 +05:30
Christophe Matthieu b255703166 [MERGE] from trunk
bzr revid: chm@openerp.com-20130313141718-dw76m7fvy0co3rfi
2013-03-13 15:17:18 +01:00
Chris Biersbach 31d218cc67 [IMP] Project issue: Improved handling of thread_model context value in message_post. Replaced a read by a browse in Project issue write
bzr revid: cbi@openerp.com-20130313083808-o75djyctnj5sgngx
2013-03-13 09:38:08 +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 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
Thibault Delavallée 9cf7f70d15 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130307102507-4agvd08e07wu5grq
2013-03-07 11:25:07 +01:00
Thibault Delavallée 5e59420989 [FIX] mail_thread: fixed a list that should be a set. This has nothing to do with the previous commit. Seriously.
bzr revid: tde@openerp.com-20130307093414-wcdakf017sskj35l
2013-03-07 10:34:14 +01:00
Thibault Delavallée 000042ac68 [FIX] mail_thread: fixed set that should not be a set.
bzr revid: tde@openerp.com-20130307093115-9jmflmnf420iiz21
2013-03-07 10:31:15 +01:00
Thibault Delavallée e57ffc4836 [FIX] mail: added wrapper for message_Create_patners_from_emails in mail_thread and res_users; cleaned message_post signature to match the pre-merge signature. Also fixed a wrong argument name in message_post_user_api.
bzr revid: tde@openerp.com-20130307075216-kk0m304405ohm7ua
2013-03-07 08:52:16 +01:00
Thibault Delavallée 445c1aa412 [FIX] mail: added wrapper because of changes introduced in the API recently.
bzr revid: tde@openerp.com-20130306162811-t4505m08nep2jlz4
2013-03-06 17:28:11 +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 9d2dba4ea7 [IMP] mail_thread: handle use_email_to when managing incoming emails.
bzr revid: tde@openerp.com-20130305151332-q6bcr91gk51ugk9v
2013-03-05 16:13:32 +01:00
Thibault Delavallée c63de2c9c2 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130305121955-49g21indundhnca3
2013-03-05 13:19:55 +01:00
Christophe Matthieu 7515824c60 [IMP] display alias on project, crm, hr
bzr revid: chm@openerp.com-20130304151355-g3asldjob722urc0
2013-03-04 16:13:55 +01:00
Christophe Matthieu 8cd3602a9f [IMP] issue: dynamic_help
bzr revid: chm@openerp.com-20130304141240-mpbtizm2y8r01456
2013-03-04 15:12:40 +01:00
Quentin (OpenERP) c450d0abe7 [FIX] mail: fixed error when the reference is given as False in teh message dictionary in message_parse() of mail_thread.py
bzr revid: qdp-launchpad@openerp.com-20130301114630-y4ynidvhh9pj29s9
2013-03-01 12:46:30 +01:00
Anand Patel (OpenERP) 731a022ee0 [MERGE]Trunk
bzr revid: pan@tinyerp.com-20130301070743-aejayq1g3mif79uv
2013-03-01 12:37:43 +05:30
Thibault Delavallée 6de2650299 [IMP] Suggested recipients: check whether an email is linked to a partner.
bzr revid: tde@openerp.com-20130228170546-t04n73pvuwtp20jh
2013-02-28 18:05:46 +01:00
Thibault Delavallée 718d38f056 [FIX] Chatter: mail_post_autofollow can be completed with mail_post_autofollow_partner_ids, that filters the recipients to subscribe. Purpose: suggested partners are added as followers, not people that could have been added after in the compose wizard.
bzr revid: tde@openerp.com-20130228164054-e3y3pdrygqph0dm2
2013-02-28 17:40:54 +01:00
Thibault Delavallée 68545cf6ae [DOC] mail: added some comments.
bzr revid: tde@openerp.com-20130226151531-3zmtcdodmpnh74zh
2013-02-26 16:15:31 +01:00
Thibault Delavallée 53dc52a5c1 [CLEAN] mail_thread: cleaned _get_message_data method. Maybe not the best way, but we tries to avoid using group_by and count because of spurious timing results. Also added some comments.
bzr revid: tde@openerp.com-20130226150707-hzyb8unhsz1i2hh3
2013-02-26 16:07:07 +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 0193a29335 [REV] auto_subscribe: back. Added setting first email or message as unread for auto subscribed people.
bzr revid: tde@openerp.com-20130222125610-atovl540kvkv0bq7
2013-02-22 13:56:10 +01:00
Thibault Delavallée 95cd6600da [CLEAN] mail: remove print statements, uncommented a line.
bzr revid: tde@openerp.com-20130222094921-yjdc82lm3m9olvqt
2013-02-22 10:49:21 +01:00
Thibault Delavallée 4c98128d11 [IMP] mail: remove auto_follow on user_id field. Replaced by partner suggestion on user_id, based on message_get_suggested_partners called in Chatter. Improved JS code, to handle various case (partner without email, email without partner, partner with email).
bzr revid: tde@openerp.com-20130221184243-pu2tgtlanh34onpr
2013-02-21 19:42:43 +01:00
Thibault Delavallée c0b4bf55d8 [IMP] [CLEAN] mail: incoming emails have an email_from even if an author is found (do not loose data); fixed author subscription, delegated after message creation (otherwise allows to by-pass most of the access rules); code and comments cleaning.
bzr revid: tde@openerp.com-20130221150849-cydhns582qwrqznz
2013-02-21 16:08:49 +01:00
Thibault Delavallée 64fd407f34 [FIX] mail: fixed mail_post_auto_follow; updated tests accordingly.
bzr revid: tde@openerp.com-20130221142417-hnhqrw9q2uf4agos
2013-02-21 15:24:17 +01:00
Thibault Delavallée e6d1208baa [IMP] mail: removed message_post_user_api, now everyone goes through message_post.
bzr revid: tde@openerp.com-20130221132647-kxbzzyo1bbhb67c4
2013-02-21 14:26:47 +01:00
Thibault Delavallée e09eb34a36 [IMP] mail: auto_follow mechanism moved into message_post.
bzr revid: tde@openerp.com-20130221130900-5l9wu6jrqh3l5yar
2013-02-21 14:09:00 +01:00
Thibault Delavallée e7c630a18f [MERGE] Merged branch holding a first cleaning of message_post and message_post_user_api. Cleaning of auto follow will follow. Hahaha.
bzr revid: tde@openerp.com-20130221130153-k8q1u15mh6e4iwzt
2013-02-21 14:01:53 +01:00
Thibault Delavallée 877033e6b9 [CLEAN] mail: message_post: attachment_ids management delegated to message_post, try to avoid having 2 methods doing the same thing.
bzr revid: tde@openerp.com-20130221101515-13bwys3d9akqg4rq
2013-02-21 11:15:15 +01:00
Thibault Delavallée cd13bb9cf9 [CLEAN] mail: stop doing ugly things with partner_ids values before passing values to mail_message.create().
bzr revid: tde@openerp.com-20130221095906-5rbwnc83mjvpkyhh
2013-02-21 10:59:06 +01:00
Thibault Delavallée c3b6408715 [IMP] Chatter: refactoring of 'include new emails/partners' in Chatter compose. It does not create partner everytime; discarding the creation popup discards the creation and addition as recipient.
bzr revid: tde@openerp.com-20130220124923-w3e9hxomniphadj7
2013-02-20 13:49:23 +01:00
Thibault Delavallée cb2e28f59f [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130218090101-ye6f1gslafpg52bc
bzr revid: tde@openerp.com-20130220102822-aik3ywiz8n043e7x
2013-02-20 11:28:22 +01:00
Bhumi Thakkar (Open ERP) ad6d133d3c [MERGE] Merge lp:openobeject-addons.
bzr revid: bth@tinyerp.com-20130215122526-einsh4wazw2e1lxs
2013-02-15 17:55:26 +05:30
Thibault Delavallée 40234a7a36 [FIX] mail_thread: correctly decode email_from of incoming emails.
bzr revid: tde@openerp.com-20130215110505-yr8leztlwyi3lqme
2013-02-15 12:05:05 +01:00
Thibault Delavallée 48f40c3d6c [MERGE] Sync with 7.0.
bzr revid: tde@openerp.com-20130215110038-gzq9lpwkwdlfbuqq
2013-02-15 12:00:38 +01:00
Olivier Dony 2d8645a722 [MERGE] mail.thread: allow re-entry in message_post in case of cross-model notifications via message_process
bzr revid: odo@openerp.com-20130215103902-xeg14cg2fnn5uz85
2013-02-15 11:39:02 +01:00
Thibault Delavallée 3a8426e5c5 [IMP] mail: message_new in mailgateway is done with nolog context: no 'document created' message.
bzr revid: tde@openerp.com-20130214162011-0xhjo7l5y8733usr
2013-02-14 17:20:11 +01:00
Christophe Matthieu fd315b66f2 [IMP] mail: You have one unread message
bzr revid: chm@openerp.com-20130214143938-aeemq70wl5gnf3k1
2013-02-14 15:39:38 +01:00
Christophe Matthieu b419e8b6c2 [IMP] mail: _get_message_data: display only number of new messages
bzr revid: chm@openerp.com-20130214143417-suf0tyonrewh2a7l
2013-02-14 15:34:17 +01:00
Thibault Delavallée a395638dfa [IMP] mail: better heuristic to find the author of an incoming email: in document's followers, or partner that is an user, or partner.
bzr revid: tde@openerp.com-20130214140701-y2nrnc163szni202
2013-02-14 15:07:01 +01:00
Thibault Delavallée 0d3d15858c [FIX] mail_thread: fixed duplicate emails when replying to an incoming email.
bzr revid: tde@openerp.com-20130214123915-4uxyj0hyy6dw4adu
2013-02-14 13:39:15 +01:00
Olivier Dony 2478d1b221 [FIX] mail.thread: allow re-entry in message_post in case of cross-model notifications via message_process
Previously the `thread_model` key in the context would
cause issues if an incoming message processed by
message_process() triggered another message_post()
call in a different model, because the `thead_model`
would be incorrect in the second call.

bzr revid: odo@openerp.com-20130214120257-c12fkj6pgont9ies
2013-02-14 13:02:57 +01:00
Thibault Delavallée c9e710b5b4 [FIX] mailgateway: author of incoming emails are not put into the recipients anymore.
bzr revid: tde@openerp.com-20130213095942-gwmt2mmthrthca5n
2013-02-13 10:59:42 +01:00
Bhumi Thakkar (Open ERP) 14a0d1b092 [IMP] Add model name instead of document with Created in chatter.
bzr revid: bth@tinyerp.com-20130207051120-1abjmfuukjfyac7z
2013-02-07 10:41:20 +05:30
Christophe Matthieu 1c58057325 [MERGE] from trunk
bzr revid: chm@openerp.com-20130206101612-by10wynzt652kh67
2013-02-06 11:16:12 +01:00
Christophe Matthieu b76f4c7a45 [IMP] salesteams: add sales order and quotation
bzr revid: chm@openerp.com-20130206094414-8f7kp19dam6su991
2013-02-06 10:44:14 +01:00
Thibault Delavallée ee6938f794 [FIX] mail gateway: auto_subscribe is always enabled currently, because of leads created usign the mailgateway by-passing the salesteam and user_id auto followers.
bzr revid: tde@openerp.com-20130131121701-eydjfrukxqq246ey
2013-01-31 13:17:01 +01:00
Thibault Delavallée 6ca19ea42e [IMP] mail: auto_subscribe: moved code to find auto_follow fields into a dedicated method that can be overridden.
bzr revid: tde@openerp.com-20130130132723-ktipo8twxwl6v8ei
2013-01-30 14:27:23 +01:00
Thibault Delavallée ccb2a26406 [IMP] mail: added auto_follow mechanism for some tracked fields like 'user_id' that should be relational fileds towards res.users.
bzr revid: tde@openerp.com-20130130090936-l52gq292h8rq79ue
2013-01-30 10:09:36 +01:00
Chris Biersbach a4f560de87 [FIX] partner_id was only present in an else clause and not in the corresponding if. This caused a traceback when the if was executed.
bzr revid: cbi@openerp.com-20130110134240-0jveuv3pnmn75nu1
2013-01-10 14:42:40 +01:00
Thibault Delavallée b9a182ff1a [FIX] OpenChatter: unknown emails becoming followers was not taken into account when using the mail.compose.message wizard.
When having emails not related to a partner in a discussion thread, checkboxes appear that allow to create a partner that will be added as follower to the related document, if any. This now works either in the quik reply box, or the full composer.

bzr revid: tde@openerp.com-20130108165010-hkhd45ube5s081i5
2013-01-08 17:50:10 +01:00
Thibault Delavallée f43e6599e5 [CLEAN] Renamed a method, deleted a now useless comment.
bzr revid: tde@openerp.com-20130108162539-0xtqg98v5por2b95
2013-01-08 17:25:39 +01:00
Thibault Delavallée cf4c6b442e [CLEAN] Some code cleaning.
bzr revid: tde@openerp.com-20130108161332-e1ekhtneh0mryhno
2013-01-08 17:13:32 +01:00
Thibault Delavallée e2d4f6dac6 [FIX] message_post: now handles partner_ids parameter with extra-caution, creating a set of sets. If partner_ids is a list of ids, or a list of commands under list form, this should work as well.
bzr revid: tde@openerp.com-20130108151332-q349tkjsv0fpb0hm
2013-01-08 16:13:32 +01:00
Quentin (OpenERP) 06d08603cc [FIX] mail: when creating a new object from incoming mail, don't call default_get before the call to super(). The create method from the orm is adding default missing value itself. It is also the cause of a bug on stage selection because custom code in create() is not run when stage_id is given in vals (and it's filled here by default_get() but return a wrong value as context cannot be used from incomming mail).
bzr revid: qdp-launchpad@openerp.com-20130108142021-thtla3868hqvqs0o
2013-01-08 15:20:21 +01:00
Christophe Matthieu 10b92b71d8 [IMP] mail: all email checked create a partner and associate the email from
bzr revid: chm@openerp.com-20130108134424-dthns93bf0w59juf
2013-01-08 14:44:24 +01:00
Christophe Matthieu 9c5fad41ba [MERGE] from 7.0-fix-message_post-partner_ids-tde
bzr revid: chm@openerp.com-20130108133754-o652a1gdfwe3obs2
2013-01-08 14:37:54 +01:00
Thibault Delavallée f91fc3b74f [FIX] message_post: now handles partner_ids parameter with extra-caution, creating a set of sets. If partner_ids is a list of ids, or a list of commands under list form, this should work as well.
bzr revid: tde@openerp.com-20130108130716-hea1fomxog5an61r
2013-01-08 14:07:16 +01:00
Christophe Matthieu fee9f63912 [IMP] mail: create new partner with email from
bzr revid: chm@openerp.com-20130108124310-le3hx95yn3jhfhaq
2013-01-08 13:43:10 +01:00
Olivier Dony db0e0cae0b [FIX] mail.thread: decode_header should ignore empty/None header values
bzr revid: odo@openerp.com-20130107111351-72z36e0pjjikpd0e
2013-01-07 12:13:51 +01:00
Thibault Delavallée 459da1fb46 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130104160227-42e2vjrqf443muy4
2013-01-04 17:02:27 +01:00
Christophe Matthieu e40b49a838 [IMP] mail: htmlEntities for the author email, select list of new partner by real email
bzr revid: chm@openerp.com-20130104111004-9l0hb6zu33o5b2v6
2013-01-04 12:10:04 +01:00
Thibault Delavallée df7eb6120c [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130104105657-s8hif4p63oem8ddz
2013-01-04 11:56:57 +01:00
Thibault Delavallée 0170f78af9 [IMP] Improved logger.
bzr revid: tde@openerp.com-20130103173019-8flxl30b129u8kpz
2013-01-03 18:30:19 +01:00
Thibault Delavallée 982cfa5d47 [FIX] message_route: removed owner of created documents using aliases taken from the 'from' of the incoming email, because we cannot ensure that this user has any create or write access rights. If no owner is defined on the alias, uid will be used instead.
bzr revid: tde@openerp.com-20130103172621-4qoz28npnq4c5e7i
2013-01-03 18:26:21 +01:00
Thibault Delavallée 4630af9750 [FIX] fetchmail: fixed message_process on res.users; now having a message_subscribe method, because of automatic subscription of recognized partners on the document; fixed override of message_post in res_partner, using a wrong type variiable; fixed message_post_user_api giving a set instead of a list.
bzr revid: tde@openerp.com-20130103130457-hr1gpj2nj6mp83he
2013-01-03 14:04:57 +01:00
Thibault Delavallée 4aceb1d1be [FIX] fetchmail: fixed message_process on res.users; now having a message_subscribe method, because of automatic subscription of recognized partners on the document; fixed override of message_post in res_partner, using a wrong type variiable; fixed message_post_user_api giving a set instead of a list.
bzr revid: tde@openerp.com-20130103120015-h9tmekrbbettikr1
2013-01-03 13:00:15 +01:00
Thibault Delavallée 272b2347e6 [FIX] get_reply_to: fixed False value, also returning an array.
bzr revid: tde@openerp.com-20130102135020-s9ssadzms5s8f0hp
2013-01-02 14:50:20 +01:00
Thibault Delavallée c33dff10f1 [IMP] mail: send emails now have a reply_to based on aliases, if defined, and if not reply_to already defined in the mail.mail object.
bzr revid: tde@openerp.com-20130102130025-5wa2k8wzv1vgg2xx
2013-01-02 14:00:25 +01:00
Thibault Delavallée 35139325d7 [IMP] mail: message_track: better display of changes for boolean values (notably for notes). Renamed a var.
bzr revid: tde@openerp.com-20121227113405-j1zgltx22i2vzqdb
2012-12-27 12:34:05 +01:00
Thibault Delavallée d28418f6e4 [FIX] message_post_user_api: fixed subscribe.
bzr revid: tde@openerp.com-20121221152956-h400n3w8hgxleumm
2012-12-21 16:29:56 +01:00
Thibault Delavallée 1ab87ddd67 [CLEAN] Misc code cleaning.
bzr revid: tde@openerp.com-20121221145247-qqd1a1morv99ooow
2012-12-21 15:52:47 +01:00
Thibault Delavallée f922d9ea1f [IMP] mail: refactored a bit the code in message_post_user_api, as well as overrides in res_partner and res_users, to use kwargs. Updated mail.js to use kwargs. Updated mail.xml and css to tweak the display.
bzr revid: tde@openerp.com-20121221144014-otg03akq4c9grjmz
2012-12-21 15:40:14 +01:00
Thibault Delavallée 839d61f97f [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221133349-u2lpl29430abrkyw
2012-12-21 14:33:49 +01:00
Christophe Matthieu d650d3c6ba [MERGE] from trunk
bzr revid: chm@openerp.com-20121221124830-8d6hz0b2h3o9c4pd
2012-12-21 13:48:30 +01:00
Christophe Matthieu 8972f7b334 [IMP] mail: check if the new email recipient already exist or not, and fix _api
bzr revid: chm@openerp.com-20121221121144-o8pbya2rc7v471y0
2012-12-21 13:11:44 +01:00
Thibault Delavallée 19efa31b51 [FIX] mail: attachments were not send by email.
bzr revid: tde@openerp.com-20121221113927-4q90f0in645gorj9
2012-12-21 12:39:27 +01:00
Christophe Matthieu f080e91168 [IMP] mail: add message 'Add this contact's email on recipient and follower'
bzr revid: chm@openerp.com-20121221111400-ngc62hepbgzqepy8
2012-12-21 12:14:00 +01:00
Christophe Matthieu 9fe900791d [IMP] follower: must have access write to invite follower
bzr revid: chm@openerp.com-20121221110003-h7h9cie4vcejif7z
2012-12-21 12:00:03 +01:00
Christophe Matthieu e5c67bc1b9 [IMP] mail: open wizard(s) to create partner(s) before send message from email
bzr revid: chm@openerp.com-20121221101232-od1owyxhkhmorx5t
2012-12-21 11:12:32 +01:00
Thibault Delavallée f49f43958d [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221100609-2x59amtxj4sjedcu
2012-12-21 11:06:09 +01:00
Thibault Delavallée c88008856e [IMP] message_process: author of incoming emails that are partner are automatically subscribed to the created or updated document.
bzr revid: tde@openerp.com-20121221100352-eraewn17t2ls831q
2012-12-21 11:03:52 +01:00
Christophe Matthieu a057391199 [IMP] mail: message_post_user_api don't return the id partner if already exist
bzr revid: chm@openerp.com-20121221081521-dase1mbdutm1whri
2012-12-21 09:15:21 +01:00
Christophe Matthieu 66623391ff [IMP] mail: send an empty context for the name_create when we convert email_from to partner
bzr revid: chm@openerp.com-20121220163514-185r5vrb0omcgp5g
2012-12-20 17:35:14 +01:00
Christophe Matthieu 507eff8255 [IMP] mail: after convert email_from into partner, open a dialog box to complete partner informations
bzr revid: chm@openerp.com-20121220162754-v5wfxrp39nf0bkla
2012-12-20 17:27:54 +01:00
Christophe Matthieu 4fe3f5862a [FIX] mail: get set (python) of partners for email_from
bzr revid: chm@openerp.com-20121220153658-iptoh0u0baa7u3rn
2012-12-20 16:36:58 +01:00