Olivier Dony
20c8d13822
[FIX] mail.message: default order by id should work on expandable node as well - but this still looks ugly
...
bzr revid: odo@openerp.com-20120905234919-ty9eojpgyib3ohwd
2012-09-06 01:49:19 +02:00
Olivier Dony
1eedac6928
[FIX] mail: fix tests now that html sanitization is enabled on fields.html
...
bzr revid: odo@openerp.com-20120905230743-3lnadi2jf2azx2rr
2012-09-06 01:07:43 +02:00
Olivier Dony
41e16c6592
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20120905163135-9f6q0ghri1kq6z75
2012-09-05 18:31:35 +02:00
Olivier Dony
1275d524f2
[IMP] mail: fix and test parsing of plaintext messages
...
bzr revid: odo@openerp.com-20120905160145-2e11txqm5jffij6v
2012-09-05 18:01:45 +02:00
Thibault Delavallée
9fb978ea81
[IMP] mail: added and cleaned the tests. Fixed various small bugs in composer. Fixed mail_message.message_read() and flattening algorithm. Cleaned tests for message_read to have a more precise test.
...
bzr revid: tde@openerp.com-20120905155319-wd168m5snb25ari9
2012-09-05 17:53:19 +02:00
Thibault Delavallée
b5b813162d
[CLEAN] mail: cleaned mail_thread.py.
...
bzr revid: tde@openerp.com-20120905155121-1w3h43t10qsigusn
2012-09-05 17:51:21 +02:00
Olivier Dony
5f1dce419b
[IMP] mail*: implement auto-deletion mechanism for mail.message, mail.mail and the attachment
...
This is based on the auto_delete flag on mail.mail
and the assumption that mail.mail records created
without a parent message will be deleted as a whole,
including the parent message and its attachments.
This is contrasted with mail.mail records created
for notifications regarding a mail.message, and therefore
created with an existing `mail_message_id` parent.
For this last case the parent must not be deleted
along with the child mail.mail, as it exists on its own.
bzr revid: odo@openerp.com-20120905151950-7jv6hi0x5fx5iytp
2012-09-05 17:19:50 +02:00
niv-openerp
8c89e963c8
wip
...
bzr revid: nicolas.vanhoren@openerp.com-20120905080402-mimiog42gosrb437
2012-09-05 10:04:02 +02:00
niv-openerp
904f66730c
fix
...
bzr revid: nicolas.vanhoren@openerp.com-20120904164007-u45aey3w6zssht0w
2012-09-04 18:40:07 +02:00
niv-openerp
5126f6ff6e
wip
...
bzr revid: nicolas.vanhoren@openerp.com-20120904163725-ptsij09rve8j3txs
2012-09-04 18:37:25 +02:00
Olivier Dony
c0ac0611d1
[IMP] misc bits - lint
...
bzr revid: odo@openerp.com-20120904155023-hchxi9jqemvqulpy
2012-09-04 17:50:23 +02:00
Thibault Delavallée
bacbb8e2f4
[REVIEW] base_stage: removed now dead message_thread_followers method. mail_thread: set message_capable_models back, because it is used in the plugin addon, adn therefore in various plugin_XXX addons. Maybe a refactoring of those plugins could be done, but it is beyond the scope of this refactoring.
...
bzr revid: tde@openerp.com-20120904145011-tlwgcu32uv8cwe6g
2012-09-04 16:50:11 +02:00
Thibault Delavallée
fd2a413969
[FIX] [CLEAN] mail_thread: misc cleanup (comments, vars, typo). Fixed subscriber API. It now handles a read_back key in context to return the new value of the field. The purpose is to use it in mail_followers widget, that behaves asynchronously compared to the form_view, and that need updated values after subscribing a user. Updated mail_followers widget, cleaned its code. Updated mail_group with wrappers on message_subscriber_users, because it was setting user_ids as context.
...
bzr revid: tde@openerp.com-20120904133648-plsziijac64lw4de
2012-09-04 15:36:48 +02:00
Thibault Delavallée
674ea05830
[IMP] mail_thread: cleaned comments and some var name in the modified many2many field. Also made mail_thread an AbstractModel.
...
bzr revid: tde@openerp.com-20120904121838-rpaesid3stxm8gus
2012-09-04 14:18:38 +02:00
Thibault Delavallée
6838e9193b
[FIX] mail_message: fixed typo.
...
bzr revid: tde@openerp.com-20120904121802-7lbajrbon7f83vux
2012-09-04 14:18:02 +02:00
Thibault Delavallée
54ec6e8892
[IMP] hr_evaluation: also updated default values when sending a mass_mail reminder.
...
bzr revid: tde@openerp.com-20120904115723-v5ifjg18l8hmbdj2
2012-09-04 13:57:23 +02:00
Thibault Delavallée
1974375c92
[IMP] hr_evaluation: send remainder email now uses context values to set some default values when sending an email. This is a basic fix of missing feature due to hr_evaluation/wizard/mail_compose_message override. Updated classic form view of mail.compose.message. Not sure it is usefull to keep two form (one classic and one Chatter)... maybe there is something to do here.
...
bzr revid: tde@openerp.com-20120904115416-zuvna57r3oj37hpu
2012-09-04 13:54:16 +02:00
Thibault Delavallée
c52ab94960
[REVIEW] addons: small cleanups nex to a diff read. Some improvements will follow, this commit is about small cleanups.
...
bzr revid: tde@openerp.com-20120904092820-56zgwpkqfpd7as5k
2012-09-04 11:28:20 +02:00
Thibault Delavallée
48c081f271
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120904075142-4xnbxyf52ph0jezj
2012-09-04 09:51:42 +02:00
Launchpad Translations on behalf of openerp
ffc772edfd
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20120904045249-1039twan4q8v5oip
2012-09-04 04:52:49 +00:00
Fabien Pinckaers
ef307f1497
[NEW] First version of sticky notes module
...
bzr revid: fp@openerp.com-20120903223741-2buu5a361pq4kbko
2012-09-04 00:37:41 +02:00
Thibault Delavallée
88ce376c32
[CLEAN] mail_compose_message: removed default values for partner_ids, that were a bit strange.
...
bzr revid: tde@openerp.com-20120903181000-4al2stqzqfw4bhfc
2012-09-03 20:10:00 +02:00
Fabien Pinckaers
74e4fe0f53
[MERGE] USablity improvements: product form/kanban/search, membership, projects
...
bzr revid: fp@tinyerp.com-20120903175638-lq221k6yjyams8kn
2012-09-03 19:56:38 +02:00
Thibault Delavallée
9c26c8e000
[IMP] mail: cleaning of the Chatter front-end.
...
Wall and Wall-like group menu entries: now use the correct
contexts to give to the composer.
res_users: posting on the user consists in posting on the
related partner. TODO: clean that when we have cleared our
minds about what to do when posting in the wall.
xml, css: small cleanup of dead code
mail.js: propagated the use of 'default_' values in the
various contexts (Wall, RecordThread, Thread, ComposeMessage);
cleaned do_action overrides; general cleanup of the code
and options propagation.
bzr revid: tde@openerp.com-20120903152025-bzchl603mzuhggn4
2012-09-03 17:20:25 +02:00
Fabien Pinckaers
e20d096a26
[IMP] class on projects
...
bzr revid: fp@tinyerp.com-20120903120621-cv1k580qiexrq1i7
2012-09-03 14:06:21 +02:00
Thibault Delavallée
6fa349a4eb
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120903091818-0qnjl3e5tss54bbj
2012-09-03 11:18:18 +02:00
Olivier Dony
a97ac7649f
[IMP] mail.mail: fix search view, as mail.mail != mail.message and meant for outgoing emails only now
...
bzr revid: odo@openerp.com-20120901011612-y1iab42s3g2gr8l0
2012-09-01 03:16:12 +02:00
Thibault Delavallée
0f3101cec5
[FIX] mail.compose.message: fixed send_mail about getting mass_mail values from template; fixed generated body that was adding a signature in reply mode; added the test that trigerred that bug.
...
bzr revid: tde@openerp.com-20120831171507-1prt4h46zsj77m23
2012-08-31 19:15:07 +02:00
Olivier Dony
24fab3ca7d
[IMP] mail: refactor various places where we append content to HTML
...
bzr revid: odo@openerp.com-20120831155103-t13p33p7232g0128
2012-08-31 17:51:03 +02:00
Thibault Delavallée
bdd972e3c9
[FIX] mail.message: message_read: fixed a call to a dict keyu not necessarily existing. Cleaned a bit the code, as well as the code of the related tests.
...
bzr revid: tde@openerp.com-20120831143707-ezcn17g5u39tcepq
2012-08-31 16:37:07 +02:00
Stephane Wirtel
1eac0fbe52
[REF] Replace the user id 1 by openerp.SUPERUSER_ID
...
bzr revid: stw@openerp.com-20120831135136-8k2wjeiixqt6tnkr
2012-08-31 15:51:36 +02:00
Thibault Delavallée
a58d50225c
[FIX] mail_message: fixed message_read. Issue was coming from 'expandable' messages, that are there for displaying the threads, but should not be processed.
...
bzr revid: tde@openerp.com-20120831131503-gvypj0z1jykjkpk9
2012-08-31 15:15:03 +02:00
Thibault Delavallée
0b67a85725
[FIX] mail.message, mail.compose.message: fixed attachments management, added tests.
...
bzr revid: tde@openerp.com-20120831125605-1oizomm2pv3b5rse
2012-08-31 14:56:05 +02:00
Thibault Delavallée
8f59e1d906
[IMP] mail_notification: removed select on columns, added creation of a combined index in init.
...
bzr revid: tde@openerp.com-20120831115202-q3fvj4tjoglaqw9c
2012-08-31 13:52:02 +02:00
Thibault Delavallée
9e6cce28b8
[FIX] mail: tests: fixed followers test, because using set() allows to override a test that was precisely about not having a same value more than once in follower_ids.
...
bzr revid: tde@openerp.com-20120831112721-56qfnh9vk1xkbke0
2012-08-31 13:27:21 +02:00
Thibault Delavallée
86dd3bdc57
[FIX] mail_message: fixed and simplified unread messages query. Added an index on the read column of mail_notification.
...
bzr revid: tde@openerp.com-20120831112353-egmeetrnecp2kflp
2012-08-31 13:23:53 +02:00
Thibault Delavallée
21f17ba8a5
[CLEAN] mail_mail: misc clean of comments and commented lines; also renamed message as mail in send, to have a more accurate variable name.
...
bzr revid: tde@openerp.com-20120831093139-9o8ui5h912rx9i13
2012-08-31 11:31:39 +02:00
Thibault Delavallée
3cc186cd41
[IMP] mail.message: check is now a check_access_rule override, allowing to remove explicit calls. Moved mail.notification inheritance in mail.message directly into mail.notification, because we are in the same module (no need to separate things too much when in the same module).
...
bzr revid: tde@openerp.com-20120831090120-s56984dg6wpbs0li
2012-08-31 11:01:20 +02:00
Thibault Delavallée
660553d404
[CLEAN] mail_thread: misc cleanup (comments, some var names).
...
bzr revid: tde@openerp.com-20120831080103-gdtitgzxfpddyws3
2012-08-31 10:01:03 +02:00
Thibault Delavallée
c14a11482c
[MERGE] Merged with addons/trunk.
...
bzr revid: tde@openerp.com-20120831074032-3b41p3qnuknfv461
2012-08-31 09:40:32 +02:00
Olivier Dony
9aabe91bbf
[FIX] email_template: wip - trying to make templates work again
...
bzr revid: odo@openerp.com-20120830174452-59q43k1x13at4i37
2012-08-30 19:44:52 +02:00
Thibault Delavallée
00fc7d1e88
[IMP] mail.compose.message: added basic mass_mail support back. Moved generation into a dedicated method, to be inherited in email_template. Added somes tests in mail to test mass_mailing without email_template.
...
bzr revid: tde@openerp.com-20120830143549-33sgtd30asvztg2c
2012-08-30 16:35:49 +02:00
Olivier Dony
1dce0b1dc4
[FIX] all mail dependencies: replace message_post call by normal record + review misc wording
...
bzr revid: odo@openerp.com-20120830141852-ku8nql1sfkko8669
2012-08-30 16:18:52 +02:00
Olivier Dony
06e13555d5
[FIX] mail: simplify test and cleanup some code + fix plaintext signature append
...
bzr revid: odo@openerp.com-20120830122112-y2lbgcazy0opvbs8
2012-08-30 14:21:12 +02:00
Thibault Delavallée
426e6288f1
[IMP] mail: res_partner: new options in email preferences: emails only. Already taken into accoutn in mail_followers, forgot to commit the change.
...
bzr revid: tde@openerp.com-20120830085157-2uuffeuyvimjxqke
2012-08-30 10:51:57 +02:00
Thibault Delavallée
bec83eef6f
[REF] mail_mail: body_html is back, holding the body of emails to send.
...
Body of send emails is mail_mail.body_html, not body anymore.
Signature adding is back to mail_followers.notify().
Subject adding is still done just before sending.
Updated mail_mail view. mail.compose.message: body_text inside <pre>.
[TESTS] mail: added tests for message_post, updated tests for mail.message.compose to test the composer only.
bzr revid: tde@openerp.com-20120830085116-o5h13yqodt0vof0k
2012-08-30 10:51:16 +02:00
Olivier Dony
d8c65aa88e
[IMP] mail.notification: simplify model creation + some lint cleanup
...
No need for extra constraints/defaults, in OpenERP
boolean values are `true` and `not true` (false/NULL).
This seems to work well with db indexes too.
bzr revid: odo@openerp.com-20120829164614-9kqrownb7q4vzrjc
2012-08-29 18:46:14 +02:00
Thibault Delavallée
9b6379462b
[REF] mail_mail: cool and clean refactoring of the models.
...
Removed body_html and content_subtype fields. We now entirely
rely on the body field, that holds sanitized HTML.
Added a user_signature field from email_template. mail_mail.send()
is now responsible of adding the signature on emails.
mail_notification.notify() sets the user_signature flag on
emails send for notifciations.
mail_mail.send() is responsible of adding a default subject
on emails send if there is no subject on the mail.message,
and res_id and model are set.
purchase_requisition: removed an override of mail.message
schedule_with_attach.
bzr revid: tde@openerp.com-20120829150002-v8t581oesnw0rhvl
2012-08-29 17:00:02 +02:00
Fabien Meghazi
6e80e425d1
[IMP] Use 'open' action in kanban views
...
bzr revid: fme@openerp.com-20120829114847-dzvqs8gaas03ma5b
2012-08-29 13:48:47 +02:00
Thibault Delavallée
1d131bae84
[RENAME] mail: res.partner: renamed notification_email_pref into notification_email_send, because this pref suffix is very ugly.
...
bzr revid: tde@openerp.com-20120829114424-fznd0ujsqnk1hve7
2012-08-29 13:44:24 +02:00