Commit Graph

1379 Commits

Author SHA1 Message Date
Thibault Delavallée ab82f7a9ac [IMP] mail.js: fixed cleaning of composer after posting a comment; cleaned a bit js and css.
bzr revid: tde@openerp.com-20120912092143-7bih2gmoa3tm1jyn
2012-09-12 11:21:43 +02:00
Thibault Delavallée 4ede1863d6 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120912080624-kip95tfjiectqexa
2012-09-12 10:06:24 +02:00
Thibault Delavallée 1bd02156eb [IMP] mail.js: cleaned link behavior (not href anymore, delegated function for message_delete and message_read).
bzr revid: tde@openerp.com-20120911163853-y7g769dp53jym028
2012-09-11 18:38:53 +02:00
Thibault Delavallée 309e2353c6 [CLEAN] mail.js: some cleaning in Wall and RecordThread.
bzr revid: tde@openerp.com-20120911162415-altimitaw1nz2r03
2012-09-11 18:24:15 +02:00
Fabien Pinckaers 0296e350a9 [IMP] quick create partners with email
bzr revid: fp@tinyerp.com-20120911161900-7vd2qtd9e0guk1pu
2012-09-11 18:19:00 +02:00
Thibault Delavallée 8aba3e0210 [IMP] Chatter: added option to delete attachments in composer.
bzr revid: tde@openerp.com-20120911161700-ty7h844h6f0t7nea
2012-09-11 18:17:00 +02:00
Fabien Pinckaers d7b31c3202 [FIX] Force create when no email in name_create of mail.compose
bzr revid: fp@tinyerp.com-20120911153645-vpi3wi4ddt2tqr5s
2012-09-11 17:36:45 +02:00
Thibault Delavallée 0ef0b3df61 [FIX] Chatter: fixed reloading when posting a message; added domain for record threads, because there were no default domain on model and res_id.
bzr revid: tde@openerp.com-20120911141740-8t43y4hq5s79z34i
2012-09-11 16:17:40 +02:00
Thibault Delavallée cd4c6756bf [REM] mail.group: removed max-width.
bzr revid: tde@openerp.com-20120911134455-18kythu9ynjwe2iv
2012-09-11 15:44:55 +02:00
Thibault Delavallée 75488f0408 [CLEAN] mail.js: small cleaning.
bzr revid: tde@openerp.com-20120911133706-lhmy7s75b8eappra
2012-09-11 15:37:06 +02:00
Thibault Delavallée 9c50df8f31 [CLEAN] small cleanup of test_mail.
bzr revid: tde@openerp.com-20120911132245-35ik5ny86b2122zl
2012-09-11 15:22:45 +02:00
Thibault Delavallée b82a3a2223 [FIX] Wall: fixed search not taken into account in the domain given to the displayed threads.
bzr revid: tde@openerp.com-20120911132122-9w5d1jdk0br5khqs
2012-09-11 15:21:22 +02:00
Thibault Delavallée 13da3d028f [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120911132044-vqmmkg5tr6ijy5m3
2012-09-11 15:20:44 +02:00
Thibault Delavallée 52a2174a5d [FIX] Chatter: fixed CSS issues with attachments.
bzr revid: tde@openerp.com-20120911125019-9gdi4cjp6iefw5vz
2012-09-11 14:50:19 +02:00
Thibault Delavallée 57f2b2f909 [FIX] Fixed conflict that I has not seen.
bzr revid: tde@openerp.com-20120911121107-surc6mwhfldsa541
2012-09-11 14:11:07 +02:00
Thibault Delavallée dde8c1891d [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120911120604-jrnalik4zl1pyq2z
2012-09-11 14:06:04 +02:00
Thibault Delavallée e089d49703 [FIX] sale, mail: fixed Send by email, back to a wizard. Cleaned a bit some code related to that action.
bzr revid: tde@openerp.com-20120911094007-svlzik5kgmp4nuvy
2012-09-11 11:40:07 +02:00
Thibault Delavallée a44699ca70 [FIX] mail.js: RecordThread now really using message_ids field.
bzr revid: tde@openerp.com-20120910083624-wjdaqruoe42x33cq
2012-09-10 10:36:24 +02:00
Thibault Delavallée 871cd8ce33 [FIX] mail.js: fixed links to related record in chatter, model and res_id were incorrect.
bzr revid: tde@openerp.com-20120910083200-iqq5m9l1jxghfpr9
2012-09-10 10:32:00 +02:00
Thibault Delavallée 61b8f19ba4 [CLEAN] mail/res_users: cleaned comment in auto_init.
bzr revid: tde@openerp.com-20120910083135-2tef7mn01kujtyvj
2012-09-10 10:31:35 +02:00
Thibault Delavallée 9f5e3ac2d7 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120910082343-h272lkcl5tayi532
2012-09-10 10:23:43 +02:00
Thibault Delavallée 63fbe72b9c [FIX] mail: res_users: fixed the previous hook, done directly in SQL, to avoid doing sunversive things in _auto_init.
bzr revid: tde@openerp.com-20120907160841-f5ej19t7cdml10pr
2012-09-07 18:08:41 +02:00
Thibault Delavallée 83fe265fba [FIX] mail.js: fixed issue with user avatars.
bzr revid: tde@openerp.com-20120907151719-suopvkfbyzbb06ig
2012-09-07 17:17:19 +02:00
Thibault Delavallée dcc971af06 [IMP] mail: css: removed dead CSS code; pre is now displayed using the regular fonts.
bzr revid: tde@openerp.com-20120907150820-kw3c5vj99mcpffzg
2012-09-07 17:08:20 +02:00
Thibault Delavallée 294f18f611 [IMP] mail: res_users: added a hook so that already existing users follow themselves when installing Social.
bzr revid: tde@openerp.com-20120907150629-tme3hyijuzohy0r4
2012-09-07 17:06:29 +02:00
Thibault Delavallée 99612b95c0 [FIX] mail.js: fixed wrong res_id passed into subthreads; fixed message_post using a wrong dataset; fixed message_post calling message_fetch after posting with a proxy that gave default values, use a then without args instead.
bzr revid: tde@openerp.com-20120907144013-k7dfq1otoykuth96
2012-09-07 16:40:13 +02:00
Thibault Delavallée 910bc5f00a [REV] Reverted hack about attachments, that was not good.
bzr revid: tde@openerp.com-20120907115422-zfynv8pdsxk5p3vg
2012-09-07 13:54:22 +02:00
Thibault Delavallée 3982e5ba7a [IMP] mail_group, point of sale, hr: updated image fields help, as small and medium sizes are now 64x64 ans 128x128, to match more closely OpenERP image sizes. product: image_medium are not up-sized when resizing them. This means that images smaller than 128x128 won't be resized in image_medium. The purpose is to avoid having unwanted blank frame around images in POS.
bzr revid: tde@openerp.com-20120907095155-i5hlmidnkq7r2r7b
2012-09-07 11:51:55 +02:00
Thibault Delavallée b086b8a584 [CLEAN] mail_group, product, point_of_sale, hr: cleaned help of image, because it was too technical-related. Added a comment in code instead about PIL and base64. By the way, small cleaning of the white spaces.
bzr revid: tde@openerp.com-20120907092333-9f745210yr3p22ay
2012-09-07 11:23:33 +02:00
Thibault Delavallée 07663470e5 [FIX] mail.css: messages in 'pre' now use the OpenERP fonts, without margins.
bzr revid: tde@openerp.com-20120906140131-72xxfox3c5ctm4pa
2012-09-06 16:01:31 +02:00
Thibault Delavallée b6eeb581ac [REM] mail.css: removed dead css specifications.
bzr revid: tde@openerp.com-20120906134652-qc0br6b4kyxq5bdw
2012-09-06 15:46:52 +02:00
Thibault Delavallée 9b9bdae9e0 [IMP] composer: attachments are attached to the mail.compose.message record, not the related document anymore. This way, when deleting the mail.compose.message, attachments will be unlinked. Added deletion cascaded to res_model and res_id = 0, because of attachments added on a not-already-saved composer. BTW, cleaned mail/__openerp__.py.
bzr revid: tde@openerp.com-20120906134201-8845xov0mjbxh8mr
2012-09-06 15:42:01 +02:00
Thibault Delavallée a1fe453223 [IMP] mail_message: attachments deleted when unlinking are those with model=self._name, not only 'mail.mesage'. This allows to remove the unlink override in mail.compose.message.
bzr revid: tde@openerp.com-20120906125217-27nlyveznh12bk63
2012-09-06 14:52:17 +02:00
Thibault Delavallée e34fcc076c [FIX] mail.js: fixed wrong res_id passed into subthreads; fixed message_post using a wrong dataset; fixed message_post calling message_fetch after posting with a proxy that gave default values, use a then without args instead.
bzr revid: tde@openerp.com-20120906122046-g8vqkqlbb2ymb6ad
2012-09-06 14:20:46 +02:00
Thibault Delavallée 8303bef9ba [IMP] Chatter: added support for attachments.
bzr revid: tde@openerp.com-20120906111444-n7bsjv0f10p9c3x4
2012-09-06 13:14:44 +02:00
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