Commit Graph

4207 Commits

Author SHA1 Message Date
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Thibault Delavallée e0967ba2ce [CLEAN] mail_message: removed an unused import 2014-08-13 16:45:58 +02:00
Thibault Delavallée be3b7ba301 [FIX] mail: posting on the user should be redirect to its partner, not nowhere. 2014-08-13 16:45:58 +02:00
Thibault Delavallée 0714b23164 [FIX] mail: when having only mail installed, do not show any 'share with my followers' compose box. This comes only with hr, for the inbox. This was probably forgotten when updating the mailboxes hr-goal and hr-related gamification / chatter stuff. 2014-08-13 16:45:58 +02:00
Denis Ledoux fe83c11301 [MERGE] forward port of branch saas-4 up to b49755b
The forward port of the fix 3609ba10f2 will be done separately, as the mrp scheduler has been completely refactored from saas-5.

Conflicts:
	addons/l10n_be_coda/wizard/account_coda_import.py
	addons/point_of_sale/static/src/xml/pos.xml
	addons/procurement/schedulers.py
2014-08-13 10:45:36 +02:00
Denis Ledoux fc74431c1a [MERGE] forward port of branch saas-4 up to 7ecaab9 2014-08-12 16:27:57 +02:00
Denis Ledoux 7b0eb9b1a8 [FIX] mail: forward-port of rev 245bb4ebdf 2014-08-12 15:16:49 +02:00
Denis Ledoux 2c9a116c74 [MERGE] forward port of branch 7.0 up to 245bb4e 2014-08-12 14:16:35 +02:00
Denis Ledoux 245bb4ebdf [FIX] mail: to/from/reply-to addresses formated according to RFC2822
Use formataddr method from email.utils lib, which do the job correctly
2014-08-12 13:40:45 +02:00
Fabien Pinckaers ef944dcd55 [IMP] Maifest for Github README.md on main apps 2014-08-12 11:33:15 +02:00
Olivier Dony 34cc064400 [IMP] mail.mail: simplify: no default for `headers` field
This avoids storing useless "{}" values
in the database when there are no headers,
and avoids having to update all existing
entries when this column is added.
Just requires simple tests before evaluating
the headers contents.
2014-08-11 16:32:36 +02:00
Olivier Dony f985c0bc11 [IMP] mail.mail: unused `import re` 2014-08-11 16:07:51 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Thibault Delavallée c64b077362 [FIX] mail: fixed bounce email recognition + invite email headers + mass mailing statistics not lost anymore
- [FIX] bounce regex: too many emails were considered as bounce and therefore
not displayed in the chatter and lost for the communication history. The regex
was not correctly looking for the bounce alias in the email_to.
- [FIX] invite email: replying to the invitation email (invitation as new
follower) now replies to the user sending the invitation.
- [FIX] mass_mailing: added a column to store the id of the original email
in addition to the many2one column. The many2one is set to null when deleting
the original email. As the information is necessary, it is saved on another
field. The many2one is necessary for indexes purpose as the inverse of
a one2many.
2014-08-11 15:39:26 +02:00
Denis Ledoux 7c647ec876 [MERGE] forward port of branch saas-4 up to 0a1e4a0 2014-08-08 17:27:29 +02:00
Denis Ledoux 0a1e4a05b2 [MERGE] forward port of branch saas-3 up to 81a902a 2014-08-08 17:06:39 +02:00
Denis Ledoux 02bf0fd9c8 [MERGE] forward port of branch 7.0 up to a86dfb8 2014-08-07 18:20:13 +02:00
Martin Trigaux 2a74666bb0 [FIX] mail: avoid duplication followers when merging partners 2014-08-07 18:17:39 +02:00
Olivier Dony 2bbff57691 [IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field
This can give a performance boost on large databases
and should not be a concern in terms of access control
as the inheritance already grants access to the parent
records.
2014-08-07 18:03:08 +02:00
Thibault Delavallée 2e5412fc1d [FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
management to access documents in notification emails, as well as for the
'view quotation' link in portal_sale module.

models: added a get_access_action method: basically, returns the action to
access a document. It uses the get_formview_action by default (form view
of the document). However for some documents we want to directly go to the
website, leading to an act_url action for some documents. This method allows
this behavior.

portal_sale: get_signup_url now uses the mail.action_mail_redirect method
instead of directly redirecting towards a portal menu. This allows to fall
back on a standard behavior.

portal_sale: get_formview_action updated, to match actions tailored for
portal users.

website_quote: get_access_action of sale order updated. If the sale order
has a template defined, the returned action is an act_url (website view
of the quotation), not the form action anymore.

mail: fixed signature + company signature in notification emails. Even without
user signature, the company signature + access link should be correct.

portal: signup url in notification emali was not using the mail redirection
as action. It is now the case.
2014-08-07 16:47:59 +02:00
Thibault Delavallée 0c462a12b9 [FIX] mail: compose wizard: fixed default_get overrides not correctly managing the received field_list + improved custom call to default_get to correctly manage its in and out values. 2014-08-07 08:54:10 +02:00
Denis Ledoux d909f763b8 [FIX] mail: add tooltip to send a message and log a note links 2014-08-06 14:18:57 +02:00
Thibault Delavallée 7f0353974d [REF] mail: same_thread field changed into no_auto_thread, its contrary, to avoid migration issues (adding a 'always False' column is easier than an 'always True'). 2014-08-04 14:46:47 +02:00
Olivier Dony 494ecc620f [MERGE] Foward-port saas-5 up to ee4df1e 2014-08-01 14:24:07 +02:00
Thibault Delavallée e8eabf7708 [FIX] mail: bad display of join button on mail groups. 2014-08-01 13:29:55 +02:00
Olivier Dony ee4df1e397 [MERGE] Forward-port saas-4 up to 8b15482 2014-08-01 13:06:49 +02:00
Olivier Dony 8b15482e00 [MERGE] Forward-port saas-3 up to e79a367 2014-08-01 12:54:30 +02:00
Anaël Closson f247bdd0b6 [FIX] mail: message-id not parsed properly in message_route
Same as for rev 4bad513, the references were not correctly parsed, added missing regex
2014-08-01 08:55:27 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Christophe Simonis fa07bc8532 [MERGE] forward port of branch saas-3 up to 310d3fe 2014-07-30 19:09:33 +02:00
Christophe Simonis 310d3fe4c4 [MERGE] forward port of branch 7.0 up to 39f3e40 2014-07-30 18:55:31 +02:00
StefanRijnhart f9da53743f [FIX] mail: reset of default_type in context
When creating a new message, we need to reset the default_type key to avoid context propagation (e.g. invoice menu).
However we used to compare the key in context (char) with the list of selections (tuple) so it was never matching and always reset.
2014-07-29 14:13:01 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Christophe Simonis 120a2c1ec1 [FIX] {base_action_rule,calendar,hr,mail,project_issue}: decorate the method `message_post` to specify signature 2014-07-28 18:07:17 +02:00
Richard Mathot ee7a9c7621 [REF] Odooification 2014-07-24 16:22:52 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Martin Trigaux b5918cb55c [MERGE] forward port of branch 7.0 up to 67cca3f 2014-07-23 16:23:22 +02:00
Sandy Carter 67cca3f1e5 [FIX] mail: display translated model name at record creation
When a record is created, if it inherits from mail.thread, a message 'OBJECT created' is posted. 'created' is translated but the name of the model wasn't.
This fix uses the name of the linked ir.model which is already a translatable field.
lp:1262000, opw 611043
2014-07-23 15:35:41 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Olivier Dony 15174e9a70 [IMP] base, mail: cache user.has_group() + ir.ui.menu.load*()
Loading the menus is the most expensive
operation for an average page load, and
the result does not change often.
The menu filtering already uses a separate
cache based on groups, but the rest of the
loading includes reading actions and
translating menu names, which is also
expensive.

Added a cache keyed on user + user
lang, plus relevant cache invalidation
when any of the following are touched:
access rights, user data including
groups and language, menus or mail.group
subscriptions.

The menu filtering cache is still
useful in parallel has it is invalidated
under different conditions.

User.has_group() is cheap but still
called very often, so it is an easy
win as well, and also frequently
used when rendering page templates.
2014-07-17 18:46:10 +02:00
Olivier Dony 68aa292f0a [IMP] mail: speed up filtering of mail.group menus
Replacing the browse+search speeds up
the filtering 50x, which is significant
for a method that may be called on most
page loads as soon as the user is
logged in.
2014-07-17 18:46:10 +02:00
qdp-odoo d35d47165e Merge pull request #1124 from odoo-dev/master-wmsstaging4-jco
fixes related to WMS, product variants and templates... from Josse
2014-07-17 18:18:16 +02:00
Olivier Dony a7d3735915 [IMP] mail.group: set special header to disable OOF replies from MS Exchange 2014-07-17 12:33:55 +02:00
Olivier Dony 562d8129f2 [FIX] mail: less confusing To: header for mailing-list posts
Many mail clients will replace the name in the To:
header with Me if the To: email matches the email
of the user. These users will see To: Me instead of
"Followers of ..." and usually believe this was a
private email from the sender to them.
But when replying they would reply to the whole list.

Fix this by explicitly forcing the To: to be the
mailing list address.
2014-07-17 00:16:12 +02:00
Olivier Dony 6ac1deccf6 [FIX] mail, website_mail: specific mailing-list footer + better unsubscribe option
- remove the default footer for mail.group messages,
  replace with specific footer with archive and unsubscribe
  link
- remove the automatic addition of user signature in
  mail.group messages, as many of them will be posted
  via the mail gateway and already contain a user signature.
- make it easier to unsubscribe even when not logged in,
  as followers who have not signed up will have no
  way to login short of signing up.
- remove tests looking for user signature in mail.group posts
2014-07-16 23:21:30 +02:00
Christophe Simonis a5419ca800 [MERGE] forward port of branch saas-5 up to e0759c1 2014-07-15 11:21:59 +02:00
Olivier Dony 924e4b1a08 [MERGE] Fwd-port saas-4 up to e31fd6a 2014-07-11 12:00:42 +02:00
Olivier Dony e31fd6a1e1 [MERGE] Fwd-port saas-3 up to a9d2b65 2014-07-11 11:53:07 +02:00
Olivier Dony a9d2b65da5 [MERGE] Fwd-port 7.0 up to 783b9e1 2014-07-11 11:51:06 +02:00
Christophe Simonis a361947143 [MERGE] forward port of branch saas-3 up to a35aec2 2014-07-10 22:02:58 +02:00
Anand-Dharampuriya 5cbc611361 [FIX] Solve some mail issues which are currently present in 7.0 2014-07-10 16:29:54 +02:00
Richard Mathot f6bf77c2b5 [FIX] mail: bad display of aliases on user forms
(Partial backport of commit 1f86156991)

Closes #800.
2014-07-10 15:22:03 +02:00
xmo-odoo fbdfc0065c Merge pull request #947 from chrispetsos/odoo-807
Changed follower's e-mail to reference Odoo instead of OpenERP, fixes #807
2014-07-07 10:37:23 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Chris Petsos f9b330b259 odoo-807: Changed follower's e-mail to reference Odoo instead of OpenERP 2014-07-06 14:10:57 +03:00
Olivier Dony 34bfa1b44f [MERGE] Forward-port saas-5 up to d9cda97 2014-07-05 01:45:45 +02:00
Olivier Dony d9cda97cf4 [MERGE] Forward-port saas-4 up to 5ceded9 2014-07-05 01:28:19 +02:00
Olivier Dony 5ceded9d69 [MERGE] Forward-port saas-3 up to 4fa30f5 2014-07-05 01:04:19 +02:00
ssh-odoo 6cc4bd4312 [Imp]:Improve configuration warning msg
[imp]:remove space

[rem]:remove code

[imp]:remove changes

[imp]:remove changes

[rem]:remove unused changes
2014-07-03 16:11:15 +05:30
rba-odoo c6d8eaabf5 [IMP]kanban View: harmonize kanban view by changing head as bold and centered and aliases as centered 2014-07-02 14:52:29 +02:00
Thibault Delavallée 581341ce3f [FIX] mail: fixed display issue with the like button 2014-07-02 10:25:53 +02:00
Thibault Delavallée 2c45b7162c [IMP] [BACKPORT] Mailing lists usability improvements: headers related to mailing lists, use of email queue for notification emails (> 50 followers), archive website template imp and fix. Backport of commit 839815f of saas-5 (PR 502). 2014-06-30 11:04:24 +02:00
Antony Lesuisse 5209fbc7ed [REM] useless icon send a message
The action is available from the wall.
2014-06-30 01:51:40 +02:00
Christophe Simonis 8dfd5eab01 [MERGE] forward port of branch saas-4 up to a4bc65c 2014-06-27 16:08:09 +02:00
Amit Vora b592f9e13a [MERGE][IMP] Enable HTML in emails signature
Closes #801
2014-06-27 11:31:24 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Jeremy Kersten f337bcaa1d [IMP] ir.config.parameters: support group-based access control 2014-06-26 16:27:24 +02:00
Olivier Dony 4a4d1e47a5 [FIX] mail: leftover debug text in ir.attachment kanban view 2014-06-25 18:53:59 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Thibault Delavallée efa0e4218f Merge pull request #727 from odoo-dev/master-document-fix-issue-gan
[IMP] document: remove from knowledge + view type fixes
2014-06-24 15:33:49 +02:00
Thibault Delavallée 719a4f02c9 [REF] mail, crm, hr_recruitment, project, project_issue: simplified reply-to of notification emails (now displaying 'YourCompany -docname- <email>' instead of 'Followers of ...'; added same_thread directly on the mail.message model to ease the reply_to and message-id computation; factorized a bit the reply-to generation for a batch of records; udpated tests accordingly. 2014-06-23 10:47:47 +02:00
Thibault Delavallée f62f58174b [IMP] mail: added headers field on mail.mail, allowing to store headers data when sending notification emails. 2014-06-23 09:11:01 +02:00
Gaurav Panchal b8124f5cec [IMP]document: Remove document menu and submenu from knowledge, hr_applicnt_document: add kanban view in hr resume and letter, mail: change the kanban view of attachment 2014-06-23 11:48:05 +05:30
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Christophe Simonis 5087612d1d [MERGE] forward port of branch saas-3 up to bf53aed 2014-06-19 15:44:07 +02:00
Anael Closson 4bad513d29 [FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)
When parsing incoming messages, ignore white-space around
In-Reply-To headers, and extract message-id items inside
the References header using a regex.
This actually serves as a workaround for broken MTAs
mangling References (such as outlook.com nesting past ones
with commas, violating RFC2822).

Closes #516 as a manual rebase.
2014-06-18 14:39:37 +02:00
Thibault Delavallée 916a79184b Merge pull request #610 from odoo-dev/saas-5-mass-mailing-fixes-tde
[FIX] mass_mailing, website: fixed unsubscription link, fixed mobile preview of email designer crashing because of the redirection not taking search parameters
2014-06-18 11:52:04 +02:00
Thibault Delavallée 0ce1ecd6db [FIX] mass_mailing: various fixes 2014-06-18 11:10:31 +02:00
Denis Ledoux 98bf37f6e1 [FIX] mail: missing .id during forward port 3c0292645f 2014-06-16 18:07:10 +02:00
Denis Ledoux 3c0292645f [MERGE] Forward-port of 7.0 bugfixes up to 63ea0df73f 2014-06-16 17:37:10 +02:00
ged-odoo 74168c4e9d Merge pull request #272 from odoo-dev/master-inline-searchview-ged
[MERGP] Inline Searchview

This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place.  It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place)

Because of this, other large changes have been made:

the drawer has been redesigned,
the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter),
the main view is now scrollable, so the UI stays in place and only the view can change
The text 'Group By...' has been changed into 'Group By' (most addons had to be modified)
bootstrap classes are used when it makes sense (for example, badge)
the left menu is also scrollable (separately from the main view)

It is likely that some stupid bugs have been introduced.  Please don't hurt me.
2014-06-12 16:27:11 +02:00
Thibault Delavallée 15f5abcbbe [IMP] mail, website_mail_group: discussion group improvements
- added possibility in mail to have a model adding custom headers in emails sent for notifications for new messages
- mail.group now add list-id and precedence: list in the headers to inform mailing systems that those mails are to be considered as mailing lists
- website_mail_group adds some further data in the headers (subscribe, unsubscribe, archives)
- groups page now display the number of message in the last month
- notification emails are now queued after 50 recipients
2014-06-12 13:45:21 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Géry Debongnie fe209f9e7a [MERGE] merge from master 2014-06-11 15:53:45 +02:00
Géry Debongnie e053276ed7 [IMP] removes useless css 2014-06-11 13:59:08 +02:00
Thibault Delavallée e5379bc1a0 [IMP] project: task: added reviewer_id field, linking towards a res.users, that is the
reviewer of the task. This field is automatically tracked, using a small update of the get_auto_subscribe_fields method that is
weirdly implemented.
2014-06-11 10:40:39 +02:00
Géry Debongnie af58bc5914 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-11 10:10:58 +02:00
Géry Debongnie 197d4b597c [FIX] fix a callback that was not triggered
The problem was that the do_searchview_search callback was registered
after the event 'search_data' was triggered.  For some reason, it
waited that the searchview was appended instead of registering directly.
2014-06-11 10:10:15 +02:00
Thibault Delavallée 222e26628a [FIX] crm, crm_partner_assign, res_partner, mail, project: removed deprecated fields, deprecated methods + references to it; also removed deprecated tags on things that are not deprecated anymore. Everything is under control. 2014-06-11 08:44:40 +02:00
Géry Debongnie 6def4a6c30 [FIX] fix mail layout
uses the same technique used for the rest of the client.  Now, it should
behaves properly with respect to scrolling.
2014-06-10 17:00:11 +02:00
Géry Debongnie 8202561511 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-10 11:43:17 +02:00
Ravi Gohil 8796e07afc [FIX] mail: Speep improvement when sending email using 'Send by Email' wizard. (Maintenance Case: 606994) 2014-06-09 18:20:02 +05:30
Christophe Simonis b1c0bc0b46 [MERGE] forward port of branch saas-4 up to 65f68c1 2014-06-03 19:45:19 +02:00
Christophe Simonis 65f68c1f65 [MERGE] forward port of branch saas-3 up to 7dd6954 2014-06-03 19:14:22 +02:00
Christophe Simonis 7dd69540e8 [MERGE] forward port of branch 7.0 up to 0c4bc1c 2014-06-03 19:11:44 +02:00
Thibault Delavallée cbdf7830b1 [FIX] mass_mailing: fixes:
- fixed keeping the original message for routing, only when choosing to reply in the
original thread (notification=True)
- auto delete sent emails explicitely
- mail_thread: routing: fixed replies always choosen even when replying to emails
with a specified reply_to (using ref_match in the algorithm)
- mail_thread: routing: instead of exclusive routing heuristics, use each case
as a fallback of the previous.
2014-06-02 13:52:27 +02:00
Jean-Baptiste Quenot 310ecb0d60 Fix detection of MIME type in message_parse()
Be careful, content-type may contain tricky content like in the
following example so test the MIME type with startswith()

Content-Type: multipart/related;
  boundary="_004_3f1e4da175f349248b8d43cdeb9866f1AMSPR06MB343eurprd06pro_";
  type="text/html"
2014-06-02 11:48:30 +02:00
Denis Ledoux eb22d202e4 [FIX] mail: mail routing, allow more fallback cases
Specifically, allow mail to fallback in aliases if the post in the document res_model/res_id wasnt succesful
2014-06-02 01:37:45 +02:00
Denis Ledoux da231e909a [FIX] mail: commited pudb ... its late and it has been a while since the last time : ). 2014-06-01 22:10:54 +02:00
Denis Ledoux dd36a0e509 [FIX] mass_mailing: on mass mailing sending, set same_thread for message composer
same_thread boolean field of mail.compose.message model define wether or not replies should be posted in the thread or not
On composer creation, this boolean should be passed according to the reply_to_mode of the mass_mailing
Otherwise, all replies would be posted in the thread, and the reply_to will be ignored (if same_thread id True, reply_to is poped from the mails values, mail/wizard/mail_compose_message.py:284)
2014-06-01 22:08:56 +02:00
Denis Ledoux 97c0dbcd0a [FIX] mail: do not link email to a model/res_id if this model doesn't support new message 2014-06-01 21:27:55 +02:00
Christophe Simonis c319dc40e7 [FIX] mail: view_mode "list" does not exists, it's "tree" 2014-06-01 11:17:09 +02:00
Antony Lesuisse 130c889348 [FIX] ir.attachment mess, restore list view 2014-05-29 15:02:27 +02:00
Géry Debongnie 5cc8f9ca42 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-05-28 10:37:16 +02:00
Olivier Dony 04211015fc [MERGE] Forward-port of latest saas-4 fixes, up to 0452851 2014-05-27 20:49:49 +02:00
Olivier Dony fd21abd847 [MERGE] Forward-port latest saas-3 bugfixes, up to 30f43da 2014-05-27 17:18:43 +02:00
Géry Debongnie 70052e1fd6 [FIX] correct some issues with scrolling area
the height of the oe_view_manager_header is variable, and the top can't
be positioned correctly with pure css without a lot of work, so this
commit adds a touch of javascript to make sure that the view is
correctly positioned.
2014-05-27 14:21:52 +02:00
Thibault Delavallée c93d169fde [FIX] mail: fixed get_default_recipient, trying to call a method even if the target model do not have it; also fixed default recipients generation on the contact model; sending a mass mailing when not having recipient now raise a warning. 2014-05-27 13:33:10 +02:00
Géry Debongnie 62900fe01b Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged
Conflicts:
	addons/crm/crm_case_section_view.xml
2014-05-26 10:06:31 +02:00
Géry Debongnie 6e6ae4cbf9 [IMP] improves the scrolling behaviour
the mail menu is a client action, so not subject to the same template
as regular views.  so, it had to be patched to properly scroll like
other views (meaning: the 'header', left menu and top menu are fixed)

Also, changes the width of the searchbbar into a min-width css property,
to allow it to grow more.  The reason is that we don't want the searchbox
to take two lines (or more), which will force the view_manager_header to be
higher, and which will cause slight issues with the scrollbar (absolutely
positioned)
2014-05-26 09:37:16 +02:00
Denis Ledoux 7ccd8fdcc7 [FIX] mail: push to breadcrumb on subject, author or notified partners links click
opw-608251: When coming from website > My account, and clicking on a lead link from a message in the inbox, and then deleting the lead, the history_back is triggered and we come back in the website, while we should have come back in the inbox. This is because the action performed was not pushed in the breadcrumb
2014-05-23 15:54:43 +02:00
Géry Debongnie 555677f14d [IMP] replace all 'Group By...' by 'Group By'
in all searchview, the 'Group By...' looks weird, next to the Custom
Reports and Filters.  This change was requested by the upper management
2014-05-22 11:44:35 +02:00
Géry Debongnie 8159f4a18c [IMP] improves searchview appendTo
after some thought, the extra method insert was not really necessary.
It was at first a way to force the user to give two nodes to determine
where the searchview and the drawer were to be inserted.  However,
the second node can be omitted, a perfectly reasonable default is
to append the drawer just after the searchview.

Then, the role of insert is exactly the same as appendTo, so it makes
sense to override appendTo and remove insert.  Simpler, and the job is done.
2014-05-22 09:55:04 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Géry Debongnie 7c6c720425 [IMP] better architecture for searchview/drawer
Before, the searchview and the searchview drawer had to be instantiated by
the user and appended separately to their correct place.  Now, the
searchview is responsible for creating/destroying the drawer, and the
user is responsible for correctly using the insert method with
the node where the searchview/drawer are to be inserted.
2014-05-20 15:27:44 +02:00
Martin Trigaux 4c822b1a3b [FIX] website_forum: when sending emails about forum post, use the public url instead of the private 2014-05-20 13:10:44 +02:00
Géry Debongnie 7e6d223e9e [IMP] work on inline search view in web client
incomplete work.  So far, the search view widget has been split in
two widgets: SearchView and SearchViewDrawer.  The SearchViewDrawer
has been inserted inline, and some preliminary work has been done
to improve the layout.
2014-05-19 14:16:09 +02:00
Thibault Delavallée 4baccd7bee [IMP] mail: notifications: when having more than 500 followers to mail
use the email queue instead of directly sending notification emails.
2014-05-15 14:13:33 +02:00
Launchpad Translations on behalf of openerp 0159a72661 Launchpad automatic translations update. 2014-05-14 06:20:49 +00:00
Thibault Delavallée aa08287d08 [FIX] document, mail, project: re-add tree view for attachments removed at revision 9279 and 9280
when adding a kanban view for documents.
2014-05-13 13:18:37 +02:00
Xavier Morel b39aac717d [IMP] mail, base_import: context key disabling history tracking
* added a ``tracking_disable`` context key used by mail to completely disable
  subscriptions setup and events generation during create and write operations
* added import option to optionally set up that context key and speed up
  imports at the cost of not setting up subscriptions and not sending
  create/update events

bzr revid: xmo@openerp.com-20140512100400-d1axjam2d0i2y0tf
2014-05-12 12:04:00 +02:00
Xavier Morel f176e65fae [IMP] mail docs
* fill-paragraph
* remove sections referring to removed methods with no obvious replacement

bzr revid: xmo@openerp.com-20140512085546-50u4beuvakgfett8
2014-05-12 10:55:46 +02:00
Launchpad Translations on behalf of openerp 1397b7aa34 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140510075539-empsrh7k5l6q44ln
bzr revid: launchpad_translations_on_behalf_of_openerp-20140510075505-nu0zmfg57i2352lz
bzr revid: launchpad_translations_on_behalf_of_openerp-20140511070820-8xp1e2jxonp4i750
bzr revid: launchpad_translations_on_behalf_of_openerp-20140503064840-v6n2wyrm1l162bh4
bzr revid: launchpad_translations_on_behalf_of_openerp-20140504062728-9tmsk2r01vvs3avi
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506072722-8xpshoxb4um6ef30
bzr revid: launchpad_translations_on_behalf_of_openerp-20140511070841-lboiasc73m8h3fb2
2014-05-11 07:08:41 +00:00
Jitendra Prajapati 1f86156991 [MERGE] [IMP] mail, report_webkit: view improvements + better name_get for mail and aliases.
bzr revid: tde@openerp.com-20140509102355-wor8j7cy3egna3qx
2014-05-09 12:23:55 +02:00
Launchpad Translations on behalf of openerp 5f1bd401f8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140508063251-ztdomqygi2izm2o3
2014-05-08 06:32:51 +00:00
Christophe Simonis b8089a1521 [MERGE] forward port of branch saas-4 up to revid 9410 chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
bzr revid: chs@openerp.com-20140507170112-bjeltv2b0coy60am
2014-05-07 19:01:12 +02:00
Fabien Meghazi 7654b7699c [REM] QWeb does not self close empty divs anymore
See web Rev#4011

bzr revid: fme@openerp.com-20140507165126-e32a6qne8slgin09
2014-05-07 18:51:26 +02:00
Christophe Simonis 9a271eef16 [FIX] mail: correct code indentation introduced during previous forward-port
bzr revid: chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
2014-05-07 18:42:07 +02:00
Christophe Simonis 1091b24a0c [MERGE] forward port of branch saas-3 up to revid 9450 chs@openerp.com-20140507153348-g2qw61dkxvps13br
bzr revid: chs@openerp.com-20140507160023-8wwqlbf3bv7yqe67
2014-05-07 18:00:23 +02:00
Christophe Simonis 1953aa442f [MERGE] forward port of branch 7.0 up to revid 10037 mat@openerp.com-20140507133552-v4qsdp7qdp9iwewi
bzr revid: chs@openerp.com-20140507153348-g2qw61dkxvps13br
2014-05-07 17:33:48 +02:00
Xavier Morel 7a492f6202 [IMP] mail: type fixes
* _get_tracked_fields should return a dict even when there's no tracked field
  (return an empty dict)

* in write, only call _get_tracked_fields once, initialize to None instead of
  a list (especially since it should be a dict in the first place)

bzr revid: xmo@openerp.com-20140507103056-ykr9f57yxpw1c542
2014-05-07 12:30:56 +02:00
Launchpad Translations on behalf of openerp 93bab6ba7a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140507062712-t81pc41duzjfrwa6
2014-05-07 06:27:12 +00:00
Mantavya Gajjar 79de0ce79b [IMP]: improve code
bzr revid: mga@tinyerp.com-20140506122230-5kf1l77cjt7di32p
2014-05-06 17:52:30 +05:30
Jitendra Prajapati (OpenERP) e8d8762c77 [IMP]override name_search method and set _rec_name on subject in mail_mail
bzr revid: jpr@tinyerp.com-20140506104621-7gryl1gpv1hrmfvr
2014-05-06 16:16:21 +05:30
Launchpad Translations on behalf of openerp 2b67c9c77b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506061338-jwpj0jxfcnakph24
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506061359-p8lxp23aopeb6mwh
bzr revid: launchpad_translations_on_behalf_of_openerp-20140506063612-leryt792evbx9hsy
2014-05-06 06:36:12 +00:00
Denis Ledoux 4f1dbde8d5 [FIX] mail: attachments present for first recipient, but not for the others
attachments should be an array and not a generator [x for x in y] instead of (x for x in y)

bzr revid: dle@openerp.com-20140505123852-kjc6z0npiot9c54l
2014-05-05 14:38:52 +02:00
Jitendra Prajapati (OpenERP) 59a9d91558 [MERGE]sync main branch
bzr revid: jpr@tinyerp.com-20140505095247-gv9je300z9j98sk0
2014-05-05 15:22:47 +05:30
Jacques-Etienne Baudoux a918e89995 [FIX] mail: change copy call to copy_data to avoid resending email during duplication (opw 607295)
bzr revid: mat@openerp.com-20140505094329-vr7h4c92i43ezob4
2014-05-05 11:43:29 +02:00
Olivier Dony 2f7ac6838d [MERGE] mail: avoid resetting purposefully empty catchall domain setting, courtesy of Stefan Rijnhart (Therp)
bzr revid: odo@openerp.com-20140505075129-hv4evrdw5v7crtmw
2014-05-05 09:51:29 +02:00
Launchpad Translations on behalf of openerp f426972e37 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140430070138-uuemdpfseyysxlvs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140502064550-9r0c2t3tr8dp1hwu
bzr revid: launchpad_translations_on_behalf_of_openerp-20140501063929-ta3t6lhed5dpdz9a
bzr revid: launchpad_translations_on_behalf_of_openerp-20140502064608-1zwt52snc5pg5kfi
bzr revid: launchpad_translations_on_behalf_of_openerp-20140504062721-dgb7m6o6ge2btumg
2014-05-04 06:27:21 +00:00
Olivier Dony 61d2122987 [FIX] mail.mail: avoid prefetching attachment data in memory while processing mail queue, could fail due to memory limit
Specifically when there are many emails in the queue, prefetching
all their attachments at once when processing the first one
could fail, so not even one mail would be sent.

Added explicit logging when an email triggers a MemoryError,
as well as logging when each email is successfully sent.

bzr revid: odo@openerp.com-20140502144431-r3brgagl4gel4wmt
2014-05-02 16:44:31 +02:00
Antony Lesuisse 7e25b9ae55 [MERGE] saas-4 report_webkit missing dependency on report
bzr revid: al@openerp.com-20140501152604-4cobh5ui47dt4pem
bzr revid: al@openerp.com-20140501155633-gefnc3zqcsr2rhaz
bzr revid: al@openerp.com-20140501161156-4wbsvhh8gz4r22h3
2014-05-01 18:11:56 +02:00
Olivier Dony c3e812f34a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 10025 rev-id odo@openerp.com-20140430102552-qkwv20b20nve64th
bzr revid: odo@openerp.com-20140430110048-6971xplq8k073tto
2014-04-30 13:00:48 +02:00
Olivier Dony c43fdfe32b [FIX] mail: avoid catching (transient) MemoryErrors when sending outgoing mail
This would permanently mark the mail as failed while
there is a good chance it will be sent properly next
time it is retried (provided the memory situation
improves or the server/worker has restarted).

bzr revid: odo@openerp.com-20140430102552-qkwv20b20nve64th
2014-04-30 12:25:52 +02:00
Fabien Meghazi b7003a382a [MERGE] upstream
bzr revid: fme@openerp.com-20140429154104-csm3jq6uxy9tk1ea
2014-04-29 17:41:04 +02:00
Martin Trigaux 9806fd4225 [MERGE] [FIX] mail: make the detection of Content-Type based on filename instead of only offering 'application/octet-stream'. This allows to have a better detection of the software to use by the browser. opw 606233
bzr revid: mat@openerp.com-20140429090446-6691y6h9vdkbbnuu
2014-04-29 11:04:46 +02:00
Thibault Delavallée 88f7865043 [FIX] mail: unlink only sent emails, not failed emails.
bzr revid: tde@openerp.com-20140425122726-k5upt8tq5xp4m228
2014-04-25 14:27:26 +02:00
Jaydeep Barot 74e8fb0674 [MERGE] Merge with addons
bzr revid: jar@tinyerp.com-20140425055958-asoj1wc0pmv7mzds
2014-04-25 11:29:58 +05:30
Fabien Meghazi 1c4e2cfd22 [IMP] bundlify addons (except website)
bzr revid: fme@openerp.com-20140424172129-ze74eaz2eaidmxhm
2014-04-24 19:21:29 +02:00
Christophe Simonis 7a7d7febf8 [MERGE] forward port of branch saas-3 up to revid 9429 chs@openerp.com-20140424123538-rxk9got9k2on1ki1
bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb
bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-24 15:45:33 +02:00
Jitendra Prajapati (OpenERP) 9c051c5bd9 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140424050125-c58ek4dlw5805k29
2014-04-24 10:31:25 +05:30
Thibault Delavallée d3ee65eed6 [MERGE] [IMP] mail: slightly improved doc links in notification emails (shorter, clearer)
bzr revid: tde@openerp.com-20140423125319-kegutder49zzqmri
2014-04-23 14:53:19 +02:00
Stefan Rijnhart d77b000aff [FIX] Don't reset an existing but empty mail.catchall.domain
bzr revid: stefan@therp.nl-20140423121411-l3qyijr6fnsexrtn
2014-04-23 14:14:11 +02:00
Jaydeep Barot 19e4d1d6e2 [MERGE] Merge with addons
bzr revid: jar@tinyerp.com-20140422102821-hj5y7o835y80xx2e
bzr revid: jar@tinyerp.com-20140423114744-umaxpodiv3xlvh5s
2014-04-23 17:17:44 +05:30
Denis Ledoux b6255eb55d [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 10005 revid:dle@openerp.com-20140422150710-mr9x3vyq0wcg31l5
bzr revid: dle@openerp.com-20140422162028-2icoebrb5q4tg3t3
2014-04-22 18:20:28 +02:00
Launchpad Translations on behalf of openerp 89fd1bede4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140419063533-z6kswp5wkioh5jlv
bzr revid: launchpad_translations_on_behalf_of_openerp-20140420055842-traoy17xi60ufook
bzr revid: launchpad_translations_on_behalf_of_openerp-20140421050815-44ydlitvsaj3xdd9
bzr revid: launchpad_translations_on_behalf_of_openerp-20140422082459-bfjqgpt2bpgll64p
2014-04-22 08:24:59 +00:00
Launchpad Translations on behalf of openerp fa60b90c1f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140422075247-nxfftok20ltlnea6
2014-04-22 07:52:47 +00: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
Martin Trigaux a97dd9adaf [FIX] mail: correct missing comma in domain on mail.mail
bzr revid: mat@openerp.com-20140418140508-y0fnxsbgda0gp6t4
2014-04-18 16:05:08 +02:00
Amit Vora e6f8666b52 [MERGE] [IMP] mail: Inbox usability improvements :
- notficiation_email_send field, renamed into notify_email, has now 2 values: always or never, in
order to ease the choice and simplify options.
- inbox: removed 'compose a new messages or write to my followers', because those 2 options are
already available. The first one is accessible using the top-right email icon, the second one
is accessible with the 'write to my followers' text box alread present in the inbox.

bzr revid: tde@openerp.com-20140417094133-8ip7vuy6b30xlc32
2014-04-17 11:41:33 +02:00
Denis Ledoux 75850c8f95 [ADD] *: replace overriden methods get_formview_action by get_formview_id
Methods to override to specify the view/action to launch for many2one links
get_formview_action use get_formview_id to find the view to open. Therefore, it is simplier to override get_formview_id to tell which view should be opened

bzr revid: dle@openerp.com-20140416143755-07slguqn6zadqsg5
2014-04-16 16:37:55 +02:00
Thibault Delavallée fe8a745b02 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140416082925-eph1x8vnwj6o31rt
2014-04-16 10:29:25 +02:00
Thibault Delavallée 4336c64a7c [IMP] mail, mass_mailing: using a _mail_mass_mailing class attribute
it is now possible to compute models allowing mass mailing using mass_mailing_campaign
module. This allows to completely remove the bridges modules, using a more generic
controller for unsubscription.

bzr revid: tde@openerp.com-20140416082851-8duo6yrwr5hwd8c2
2014-04-16 10:28:51 +02:00
Martin Trigaux 1ab962d338 [FIX] mail: convert attachments to binary as it is the expected format of message_post opw 604205
The double convertion (render_message and send_mail) is done to keep the API but should be changed in next version.

bzr revid: mat@openerp.com-20140415161441-q6pfueetvv0namgw
2014-04-15 18:14:41 +02:00
Thibault Delavallée 3eaeae55a0 [IMP] mail, mass_mailing: better recipientsz computation
for mass mailing, composer and template. This allows to have one method computing recipints
and avoid repetiting myself.

bzr revid: tde@openerp.com-20140415154700-zu2izvxfjq1k4h4a
2014-04-15 17:47:00 +02:00
Thibault Delavallée 98472d8253 [CLEAN] Removed commented print
bzr revid: tde@openerp.com-20140415144943-ov6g4n9tzjxtwlk9
2014-04-15 16:49:43 +02:00
Thibault Delavallée 55fc583f36 [REM] mail: compose message: removed unnecessary code
bzr revid: tde@openerp.com-20140415143343-on2d3j92o6zifq59
2014-04-15 16:33:43 +02:00
Christophe Simonis 61da3f4aba [MERGE] forward port of branch saas-3 up to revid 9409 dle@openerp.com-20140415101427-a6r7lgy50x9bdah3
bzr revid: chs@openerp.com-20140415142934-rlka4vkxd34fkil8
2014-04-15 16:29:34 +02:00
Launchpad Translations on behalf of openerp 6ca81553a0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140415075130-aqn4mzx05l3txtkb
bzr revid: launchpad_translations_on_behalf_of_openerp-20140415075337-ulie3qkes53t8ivf
2014-04-15 07:53:37 +00:00
Jitendra Prajapati (OpenERP) 3b1b426e0b [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140415053045-yh8qhduikoqdhz36
2014-04-15 11:00:45 +05:30
Thibault Delavallée 5ea15d56fb [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140414090428-y435e4tsy4ju5nc3
2014-04-14 11:04:28 +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
Jamin Shah (OpenERP) d9423585d5 [FIX]Fixed the issue of mimetype not detected properly, used python mimetypes module to detect file's mimitype.
bzr revid: jas@tinyerp.com-20140414052904-rp4oia2py6b61xg8
2014-04-14 10:59:04 +05:30
Launchpad Translations on behalf of openerp e82fbf7d91 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140412083153-3ona1js7o6z421vg
2014-04-12 08:31:53 +00:00
Thibault Delavallée bf7c16d6d9 [FIX] mail: res_users post: fixed partner_ids computation, could receive
a list of ids, or a list of commands. Both cases should be taken into account.

bzr revid: tde@openerp.com-20140411142842-kw0x1vrop6x6i5kf
2014-04-11 16:28:42 +02:00
Olivier Dony fb19b54ff9 [MERGE] Forward-port of 7.0 bugfixes up to rev 9976 rev-id: odo@openerp.com-20140411142429-y0rpkzqbrsabxqsg
bzr revid: odo@openerp.com-20140411142800-t8sbcmfkj3qgmrh3
2014-04-11 16:28:00 +02:00
Olivier Dony 9861b5cada [FIX] mail.thread: avoid overwriting thread_id/model with foreign values when reply-to hostname does not match + fix tests
This improve previous commit by making sure we
never consider the thread_id/model values in the
In-Reply-To/References header if the host name
did not match.
Also fixes the tests that were using the
6.1 compatibility mode to post in a mail group
thread instead of specifying the right
message-id.

bzr revid: odo@openerp.com-20140411142429-y0rpkzqbrsabxqsg
2014-04-11 16:24:29 +02:00
Thibault Delavallée e2dc6b782d [FIX] mail: avoid crashing message_post if the subtype does not exists anymore.
Using xmlid_to_res_id, subtype_id will be False if not found.

bzr revid: tde@openerp.com-20140411142214-nvvgkduzv51cc2eg
2014-04-11 16:22:14 +02:00
Cedric Snauwaert 89d665aa79 [FIX]some cosmetic of code
bzr revid: csn@openerp.com-20140411122840-tv1mx2nu5p2is669
2014-04-11 14:28:40 +02:00
Olivier Dony 4ed8413dc7 [FIX] mail.thread: avoid wrongly matching model,id from a foreign OpenERP system
When emails transit from an OpenERP system to another
there is a chance of wrongly considering the foreign
model,id pair as local, possibly attaching a reply
to a wrong parent message.
This naive heuristic ignore the foreign identifiers
unless the hostname of the message-id mentioned in
the In-Reply-To header matches the local one.
This may fail after a change of local hostname but
is still better than the alternative.
In OpenERP v8 we should stop including the model,res_id
in outgoing Message-Id headers and only rely on the
stored, opaque, unique Message-Ids, preventing
any future mismatch.

bzr revid: odo@openerp.com-20140411101349-h3jmkdzvbr7lut26
2014-04-11 12:13:49 +02:00
Thibault Delavallée 94c580e933 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140411075551-xh4o3k3172cr7scz
2014-04-11 09:55:51 +02:00
Cedric Snauwaert 3a4e264978 [FIX]use bootstrap modal windows. refactor and cleaned from trunk-ui-to-boostrap-modal
bzr revid: csn@openerp.com-20140410155022-3cqys3zc55idc4vg
2014-04-10 17:50:22 +02:00
Jitendra Prajapati (OpenERP) 76d284ab8e [IMP]set python string is translated
bzr revid: jpr@tinyerp.com-20140410083655-6m993y17nckk7mfz
2014-04-10 14:06:55 +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
Thibault Delavallée 7a1221c9f3 [MERGE] [IMP] mail: followers widget: Follow button + subtypes are now displayed
like a button + a dropdown selection for subtypes, reducing the place this widget
takes in the form view.

bzr revid: tde@openerp.com-20140409074712-pn3nqpga1mxaa3ie
2014-04-09 09:47:12 +02:00
Thibault Delavallée 8178669795 [FIX] mail, mass_mailing
- mail: now trigger postprocess_sent_message in every case, being sent or not, as the state
is propagated in the method; udpated all addons accordingly;
- email_template: fixed URL to edit it in website + form view;
- mass_mailing: barchart now send jsonified value;
- mass_mailing: tweaking the form view with all options

bzr revid: tde@openerp.com-20140408124053-o9tb14k6v47s5mjd
2014-04-08 14:40:53 +02:00
Thibault Delavallée efe75bd7e8 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140407102446-zw8g9736vrioxpta
2014-04-07 12:24:46 +02:00
Launchpad Translations on behalf of openerp 8f174e13bd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140404070722-99m3lomg172fzapc
bzr revid: launchpad_translations_on_behalf_of_openerp-20140404070759-302tyo6k09v8arhz
2014-04-04 07:07:59 +00:00
Launchpad Translations on behalf of openerp 1d965535b0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140405053045-3cts3jqyeqsu0x57
2014-04-05 05:30:45 +00:00
Thibault Delavallée 1380f597a2 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140403122027-3w055e5olf23dzw9
2014-04-03 14:20:27 +02:00
Jitendra Prajapati (OpenERP) 7d06600a77 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140403093632-rdnixbj5vulsoppy
2014-04-03 15:06:32 +05:30
Launchpad Translations on behalf of openerp 4612b417af Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140403060213-netdplm9jzfr9yy6
2014-04-03 06:02:13 +00:00
Launchpad Translations on behalf of openerp 16ce262c33 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140329073038-m7q4sxpb8tprh00r
bzr revid: launchpad_translations_on_behalf_of_openerp-20140330061549-r3t0pecngy76c2rw
bzr revid: launchpad_translations_on_behalf_of_openerp-20140331064021-x3wjc8s4oa0ncq95
bzr revid: launchpad_translations_on_behalf_of_openerp-20140401065325-w3viflz7c33n4uis
bzr revid: launchpad_translations_on_behalf_of_openerp-20140402064459-d7e3d8nwo8famjh6
2014-04-02 06:44:59 +00:00
Fabien Pinckaers 6a9379429c [IMP] kanban of documents for recruitement attachments
bzr revid: fp@tinyerp.com-20140401164700-xj1d5hn9zv8morfu
2014-04-01 18:47:00 +02:00
Fabien Pinckaers 0b539587b8 [IMP] kanban view for ir.attachments
bzr revid: fp@tinyerp.com-20140401164322-fq3r0pt6idkoobxx
2014-04-01 18:43:22 +02:00
Amit Vora 28a96d2651 [MRG] merge with main branch
bzr revid: avo@tinyerp.com-20140401091041-bvxtr58qkgicl6x8
2014-04-01 14:40:41 +05:30
Darshan Kalola (OpenERP) ad2984f564 [IMP]disabled dropdown button when there is no item in dropdown.
bzr revid: dka@tinyerp.com-20140331073100-qexuumfnynssfto1
2014-03-31 13:01:00 +05:30
Darshan Kalola (OpenERP) 92875602b4 [MERGE]sync with trunk.
bzr revid: dka@tinyerp.com-20140328131834-1bhu74vaihxvp0sb
2014-03-28 18:48:34 +05:30
Thibault Delavallée f002d9ff17 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140327093823-ev9mv771enwmdgrz
2014-03-27 10:38:23 +01:00
Launchpad Translations on behalf of openerp 51aa261b44 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140327073504-l0fydwct329jhirh
2014-03-27 07:35:04 +00:00
Jitendra Prajapati (OpenERP) 0178fa1fa6 [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140327062643-wcrsh4q9fwzhm2wz
2014-03-27 11:56:43 +05:30
Thibault Delavallée cafaf60552 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140326092649-nihnbi9wv8j07jth
2014-03-26 10:26:49 +01:00
Thibault Delavallée 283ce860fc [REM] mail: removed dead code in mail.js
bzr revid: tde@openerp.com-20140325142535-rptr14zfxf8ctx27
2014-03-25 15:25:35 +01:00
Thibault Delavallée d70538402b [REM] mail: removed dead code in mail_message
bzr revid: tde@openerp.com-20140325142507-9vgzcyfno750ungz
2014-03-25 15:25:07 +01:00
Thibault Delavallée 73bebb6563 [IMP] mail: default recipients management
- mail.compose.message: in render_message_batch, compute defaults recipients
for the composer (method called for mass mailing only). This way values are
available for inheriting models.

bzr revid: tde@openerp.com-20140325135347-9v7u4uokffy7ud43
2014-03-25 14:53:47 +01:00
Thibault Delavallée 7185a68775 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20140325090209-w1qtcswiao01gqlu
2014-03-25 10:02:09 +01:00
Christophe Simonis d93b79e6f4 [MERGE] forward port of branch saas-3 up to revid 9345 dle@openerp.com-20140324110349-e82t1bmmtjqbl85k
bzr revid: chs@openerp.com-20140324133811-4az1kvbznd26seow
2014-03-24 14:38:11 +01:00
Thibault Delavallée 79cb083a62 [IMP] mail: mail_compose_message: some code
cleaning in get_record_data + code cleaning in get_mail_values + management
of the previously introduced method get_default_recipients, to be sure that
in mass mailing an email is effectively sent to a customer / lead / applicant
/ ... because with an ill-configured template, you could have mass amiling
mailing nobody.

bzr revid: tde@openerp.com-20140321171723-7e3lk64knojf09at
2014-03-21 18:17:23 +01:00
Thibault Delavallée 71b146d0ad [IMP] mail: mail_thread: added a method that try to find
some default recipients for a document. Basically it looks for a partner_id field,
or an email_from, or an email field, and return a dict result used for populating
a creation dictionary, for example.

bzr revid: tde@openerp.com-20140321171615-ksce5mqzyugya8hs
2014-03-21 18:16:15 +01:00
Thibault Delavallée dc33134b02 [FIX] mail: fixed a test using a field tha does not exist anymore
bzr revid: tde@openerp.com-20140321171514-fp1amjhmn63vr0qg
2014-03-21 18:15:14 +01:00
Thibault Delavallée 2e02338a2b [IMP] mail_mail: small code and docstrings cleaning + moved some code into
its own method (find email_to) + set email_to as 'Followers of X' only when having
a notification-style mail_mail.

bzr revid: tde@openerp.com-20140321171455-gz0q3eo0fbato50k
2014-03-21 18:14:55 +01:00
Thibault Delavallée adca4573c6 [DOC] mail: updated docstring of a method taht was not up to date
bzr revid: tde@openerp.com-20140321123029-kbfy73ecxidshnnb
2014-03-21 13:30:29 +01: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 2bc87a67eb [IMP] mail_group: as they are now mailing list, avoid having automatic
creation message, this is quite ugly.

bzr revid: tde@openerp.com-20140320150855-a0ich2zgzn320wj0
2014-03-20 16:08:55 +01:00
Chirag Dodiya (OpenERP) 9950cdde14 [MRG]Merge with lp:openobject-addons
bzr revid: cod@tinyerp.com-20140320113507-d1mfk36e1ux6b7s0
2014-03-20 17:05:07 +05:30
Launchpad Translations on behalf of openerp 1f3c4f852f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140319063002-sd17jxb37ycogrrz
bzr revid: launchpad_translations_on_behalf_of_openerp-20140320061944-bwpy0lt1bp5ee0y2
2014-03-20 06:19:44 +00:00
Jitendra Prajapati (OpenERP) f81c4ec36e [MERGE]with main branch
bzr revid: jpr@tinyerp.com-20140319051202-hvo8wvd8aunce5bc
2014-03-19 10:42:02 +05:30
Kersten Jeremy 758d467982 [FIX] In mail text2Html, replace url (http or ftp) before the replacement of return line, else some return line was sometimes considered as the link.
Eg : <a href="http://www.google.com<br/><br/>Puis">http://www.google.com<br/><br/><br/>Puis</a>

bzr revid: jke@openerp.com-20140318203051-lk92fjgwltkwbk68
2014-03-18 21:30:51 +01:00
Thibault Delavallée 0417efb59d [MERGE] Sybnc with trunk
bzr revid: tde@openerp.com-20140318164208-a1d66czkki6on3ca
2014-03-18 17:42:08 +01:00
Thibault Delavallée a581d864a2 [IMP] mass_mailing: improved test send / send to all
- now workign on various models, taking the correct recipient (email, partner_id for partner or lead)
- improved test send: use email_to, now a many2many on contact model to ease the use of templates
- added action to create a mailing list from leads
- moved a res.partner dedicated action to its own file
- added an actoin to create a mailing list from contacts
- fixed mail_mail post_process: use mail_sent variable as mail.state is not available

bzr revid: tde@openerp.com-20140318164117-f2aou25u633j8m57
2014-03-18 17:41:17 +01:00
Christophe Simonis 99a3c45976 [MERGE] forward port of branch saas-3 up to revid 9328 chs@openerp.com-20140318120024-mcxmkncn1xktjs7v
bzr revid: chs@openerp.com-20140318132741-aur3q1k7t9iympri
2014-03-18 14:27:41 +01:00
Thibault Delavallée 86934c1167 [FIX] mail_compose_message: hide recipients data if False to avoid blank lines
bzr revid: tde@openerp.com-20140317132243-7cy089m8thd29y3l
2014-03-17 14:22:43 +01:00
Thibault Delavallée 43cc054048 [FIX] mail_compose_message: create Re subject only when having a parent
bzr revid: tde@openerp.com-20140317132227-mcey6ywjr1g6pe9g
2014-03-17 14:22:27 +01:00
Thibault Delavallée d5a8905941 [IMP] mail_compose_message: added is_log boolean field for internal notes; + removed context hack that
did the same thing. Fixed composer form view: internal note, only subject + body is
displayed.

bzr revid: tde@openerp.com-20140317122409-5fd5d5uwc35oq0hb
2014-03-17 13:24:09 +01:00
Thibault Delavallée 48deceb6c6 [IMP] [REF] mail_compose_message: slightly cleaned wizard code to lessen the number of corner cases and
to remove unnecessary code.
post and filter_id fields have been removed as they are not necessary.
Updated tests accordingly to new mass mailing tests: mass mailing create
emails, no message_post anymore using followers.

bzr revid: tde@openerp.com-20140317115315-ws8dvjbiv5rspk43
2014-03-17 12:53:15 +01:00
Thibault Delavallée 48098b5df1 [IMP] mail.compose.message: removed unnecessary code, email_from is already corretly managed
bzr revid: tde@openerp.com-20140314174827-nent5v02s2v2y2n0
2014-03-14 18:48:27 +01:00
Thibault Delavallée 95284e1ecf [CLEAN] mail_mail: lean cleaning
bzr revid: tde@openerp.com-20140314174809-t66z5pjxwu1izh6a
2014-03-14 18:48:09 +01:00
Thibault Delavallée ed116d6b6b [IMP] mail_message: avoid doing search criterions on subtype_ids, takes long time
bzr revid: tde@openerp.com-20140314171658-9zbji55or9dq761p
2014-03-14 18:16:58 +01:00
Thibault Delavallée 4b5b4e86d7 [REM] mail_message: removed dead code: quote context is not planned
to be used anymore.

bzr revid: tde@openerp.com-20140314171213-0v3t7c1akbviu99e
2014-03-14 18:12:13 +01:00
Thibault Delavallée 4ef08f78a0 [REM] mail_message: removed dead code
bzr revid: tde@openerp.com-20140314171054-859jix3el18i0g53
2014-03-14 18:10:54 +01:00
Thibault Delavallée fd85a00311 [MERGE] Merged prototyping branch about improving performances
in messaging, especially for mass mailing and mail mail creation. Some things will
probably be discarded or improved further, but this work will serve as a basis
for the whole mass mailing refactorign about speed.

bzr revid: tde@openerp.com-20140314165621-stpmdbq92fbigc3u
2014-03-14 17:56:21 +01:00
Thibault Delavallée e6f6960d17 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140314162124-fn8f9ne80skha19h
2014-03-14 17:21:24 +01:00
Christophe Simonis b3bb47076b [MERGE] forward port of branch saas-2 up to revid 9151 chs@openerp.com-20140314104803-19c5snl2fcuih91o
bzr revid: chs@openerp.com-20140314105753-7a7wh9a1z99azgfj
2014-03-14 11:57:53 +01:00
Denis Ledoux 02459f8d4a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9929 revid:dle@openerp.com-20140325104921-x8zjx5p71l1o3uif
bzr revid: dle@openerp.com-20140310133913-465x5t3n1bo7fu98
bzr revid: dle@openerp.com-20140311164146-2s599kogbqj8e94l
bzr revid: dle@openerp.com-20140312111149-u6y036aej3ywq7et
bzr revid: dle@openerp.com-20140312121145-06s1jvct9v4m7l6s
bzr revid: mat@openerp.com-20140313084409-c0kckxemy3in0mlo
bzr revid: chs@openerp.com-20140313163420-ifa4hyixj722d6jo
bzr revid: chs@openerp.com-20140314102034-g0nzryvwhrpzdas9
bzr revid: chs@openerp.com-20140314104803-19c5snl2fcuih91o
bzr revid: odo@openerp.com-20140314143519-x6rzcfkkqxwc0e1g
bzr revid: chs@openerp.com-20140318110229-y8098w3shdpmoig2
bzr revid: dle@openerp.com-20140318151824-sscl4m8p87emjl8s
bzr revid: dle@openerp.com-20140320112618-yfyihlwz66ryeqf5
bzr revid: dle@openerp.com-20140320161003-j01cc6sqves2wnp2
bzr revid: dle@openerp.com-20140320181252-4gqcog22p1ex0pz7
bzr revid: dle@openerp.com-20140321140450-8ulnhr76qybiadks
bzr revid: dle@openerp.com-20140324104743-ubvu8st7emq9pg1q
bzr revid: dle@openerp.com-20140325112413-xs5z7y81rhyjt0rd
2014-03-25 12:24:13 +01:00
Olivier Dony 9e002d9233 [FIX] mail.thread: avoid error if `message_unread_count` has been popped 1 line earlier
bzr revid: odo@openerp.com-20140314104605-qi7eqj2g37dvxvc3
2014-03-14 11:46:05 +01:00
Christophe Simonis 44a99c0976 [FIX] calendar: correct recurrency end date computation
bzr revid: chs@openerp.com-20140314094809-0wuus62tob8vtyi0
2014-03-14 10:48:09 +01:00
Christophe Simonis d504764eff [MERGE] forward port of branch saas-3 up to revid 9298 chm@openerp.com-20140311130852-3ft0v1mc9ht1any6
bzr revid: chs@openerp.com-20140311145205-s56fj113fsrnisc3
2014-03-11 15:52:05 +01:00
Martin Trigaux 5fd51cd41b [MERGE] [FIX] mail: make subject of invitation wizard translatable
bzr revid: mat@openerp.com-20140307090923-28r81taey0sdtfy0
2014-03-07 10:09:23 +01:00
Darshan Kalola (OpenERP) 5b71151c08 [MERGE]sync with trunk.
bzr revid: dka@tinyerp.com-20140306051229-jf23n85t506ep2av
2014-03-06 10:42:29 +05:30
Thibault Delavallée 0d3d0e9563 [IMP] mail: improved link in notification, now of form
Sent from <company> using <openerp:pub>, about <model document_name>, access in <customer portal:partner only>

bzr revid: tde@openerp.com-20140305173610-yw71rophyt3iyfi4
2014-03-05 18:36:10 +01:00
Thibault Delavallée 307119bd55 [IMP] mail: message_last_update -> message_last_post + only update when having a subtype
bzr revid: tde@openerp.com-20140305094042-6f1cne3srq7y1ffn
2014-03-05 10:40:42 +01:00
Thibault Delavallée 72fac9527e [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140305085545-0uy3b0k71hkqe20j
2014-03-05 09:55:45 +01:00
Thibault Delavallée b54b8681a0 [MERGE] [ADD] crm_project_issue module: create issues from leads.
This bridge and optional module add a button on the lead form view to
allow users to create issues from leads. The lead is distroyed during
the operation. All communication history is kept and transferred to the
new issue.

bzr revid: tde@openerp.com-20140304170544-kp624l6vhj0s1rwc
2014-03-04 18:05:44 +01:00
Thibault Delavallée db2bdee343 MERGE] [FIX] email_template: fix relative -> absolute url conversion
Local URLs are converted into absolute URLs, notably because when using the
email designer, images are added using local URLs. Previously to this fix
the template was analyzed to find local URLs and make them absolute.
However this causes 2 issues :
- mako-based URLs are broken because a scheme is added before the mako that
generated the image src
- when changing the base url, the templates are not updated
The URLs are now converted dynamically when generating the content of the
html. This is done by passing a new parameter that enable the post processing
of the generated content.
Also fixed double body generation when using templates; fields parameter
was not propagated correctly.

bzr revid: tde@openerp.com-20140304112957-l9b10gyjqphs5fgc
2014-03-04 12:29:57 +01:00
Launchpad Translations on behalf of openerp b201dc79b7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140218054104-8egkh4jj7hiiwuih
bzr revid: launchpad_translations_on_behalf_of_openerp-20140219054048-688twg0fubtm2x2q
bzr revid: launchpad_translations_on_behalf_of_openerp-20140220054214-237ri67t9rw3l4fu
bzr revid: launchpad_translations_on_behalf_of_openerp-20140221063855-wniw42r27gyg3h6y
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073328-xpn7nwqz407yzumq
bzr revid: launchpad_translations_on_behalf_of_openerp-20140223074516-0r09cpmma58ylqji
bzr revid: launchpad_translations_on_behalf_of_openerp-20140224060319-535oheaq2w9u2ye3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062420-zl7curej0e0warhz
bzr revid: launchpad_translations_on_behalf_of_openerp-20140226073146-3vzhw4hddr81olbs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140227062959-24e2rn98rqb9afpr
bzr revid: launchpad_translations_on_behalf_of_openerp-20140228072152-f9gm4ud1wu19ge27
bzr revid: launchpad_translations_on_behalf_of_openerp-20140301055205-r0df0fqz9yf5z66i
bzr revid: launchpad_translations_on_behalf_of_openerp-20140302052638-bjf11oumy7w15oco
bzr revid: launchpad_translations_on_behalf_of_openerp-20140304082704-k1z2te1tfud43zy3
2014-03-04 08:27:04 +00:00
Launchpad Translations on behalf of openerp 9863dbe5c8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140304075238-yra39uwmwahmrnf3
2014-03-04 07:52:38 +00:00