Commit Graph

132 Commits

Author SHA1 Message Date
Christophe Simonis 08ec6a3805 [FIX] mail: reset alias when copying users
bzr revid: chs@openerp.com-20131204112734-2h569udrxgsgw9kr
2013-12-04 12:27:34 +01:00
Christophe Simonis 3fa90321e1 [MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: chs@openerp.com-20130910124803-wxkb8gkz1tub5qjf
2013-09-10 14:48:03 +02:00
Denis Ledoux 546a191f0a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9459 rev-id: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
bzr revid: mat@openerp.com-20130826135110-f9q4p65ds2aholcw
bzr revid: dle@openerp.com-20130828141129-ecxl2vlpb8vw0o9f
bzr revid: dle@openerp.com-20130828162659-n8a0ku9o3h01qaov
bzr revid: dle@openerp.com-20130830094205-q3itwd7x0246d9n6
bzr revid: dle@openerp.com-20130830133604-mfnfbscn5wdk4vi4
bzr revid: dle@openerp.com-20130902131244-v9uh0s8rg4889i7j
bzr revid: mat@openerp.com-20130903134105-68ziuaccreu6rs61
bzr revid: chs@openerp.com-20130906171851-jtfsf4au1k30wwlr
bzr revid: dle@openerp.com-20130909103120-k5oefxgebhyslac3
bzr revid: dle@openerp.com-20130909170047-pbzw4ernvcpivbhh
bzr revid: chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: tde@openerp.com-20130912121059-k840pi4rwdzpez8g
bzr revid: dle@openerp.com-20130913085251-p906ci2divy82jur
bzr revid: tde@openerp.com-20130913092546-kzshg1a7sls566l8
bzr revid: mat@openerp.com-20130917122102-drf8fj9lrjj0fvju
bzr revid: mat@openerp.com-20130917161614-w8u2c1ayeb5kxm30
bzr revid: dle@openerp.com-20130918161305-7ep1642nxzyy3vhd
2013-09-18 18:13:05 +02:00
Olivier Dony baef4d3d92 [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent
The delete-rule was initially set to `cascade` in revision
6897.16.13 revid:odo@openerp.com-20120705141706-5gm5mmqode3bvkuc
because the ORM would not allow anything else for the FK of
an _inherits relationship.
This constraint was later lifted in 7.0 server at revision
4681 revid:odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
so we can now switch to the intended default behavior:
when deleting mail aliases we never want to cascade delete
the child records, as that could lead to unwanted deletions.
On the other hand the aliases are automatically deleted when
the record they belong to is deleted, as a kind of internal
dependency. This is the intended safe way to delete them.

There is a special case when the same alias is manually set
on multiple records, in which case you will not be able to
delete any of those records. This is an acceptable exception
and should be manually handled if ever needed, by temporarily
linking the records to delete to new dummy aliases.

bzr revid: odo@openerp.com-20130827150708-62hqk8p7twd527n0
2013-08-27 17:07:08 +02:00
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 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 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
Thibault Delavallée 89896f32bb [IMP] [CLEAN] [REF] mail, res_partner, res_users, hr: cleaned partner / employee profile following last specifications.
Partner profile is now classic, no more email-routing.
Writing on res.users, basically, begins a private discussion.
With HR, emails on res.users are private discussions, other
are post on employee profile.
Some cleaning in Chatter about Followers of ... , now talking about
partner or employee profile.

bzr revid: tde@openerp.com-20130515153159-cm52byvb7w6m1sxs
2013-05-15 17:31:59 +02:00
Thibault Delavallée 9180fbd76a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130429102102-y732cl7t6g1g163v
2013-04-29 12:21:02 +02:00
Martin Trigaux 5872475902 [MERGE] Latest trunk
bzr revid: mat@openerp.com-20130417103220-iu8j54t0rfqrf6hd
2013-04-17 12:32:20 +02:00
Vo Minh Thu 9541529215 [FIX] _auto_init(): when _auto_init() is overridden it does not return the super() result, which might brake functional fields initialization.
bzr revid: vmt@openerp.com-20130417075546-e3crirzk1trl9yr1
2013-04-17 09:55:46 +02:00
Thibault Delavallée a3de5c872f [REF] [IMP] mail_alias improvement
alias_name is not required anymore
crm, hr_job, project, mail_group, res_users: alias creation is now different
and done more like other inherits, except an alias_model_name that is given
to the context to find the alias alias_model_id.
crm, jr_job, project, mail_group, res_users: updated form views using
aliases
mail_alias: added a filter on 'inactive' aliases (alias_name False) and
added a button to redirect to the related document if any

bzr revid: tde@openerp.com-20130409111158-bv04n5o01z9l3c17
2013-04-09 13:11:58 +02:00
Martin Trigaux 52ddce88f3 [ADD] option to globally stop showing employeep suggestions
bzr revid: mat@openerp.com-20130403152443-3jqg0v182mcqsk0f
2013-04-03 17:24:43 +02:00
Martin Trigaux 46110fbf29 [ADD] option to globally stop showing group suggestions
bzr revid: mat@openerp.com-20130403151056-4vjno2k9n77drm6y
2013-04-03 17:10:56 +02:00
Thibault Delavallée 4d4935d551 [REM] removed duplicate method.
bzr revid: tde@openerp.com-20130307080616-63nuzq15jg0ijkr6
2013-03-07 09:06:16 +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 8d26dd9ffe [FIX] res_users: added override for new chatter-related methods. Kinda boring.
bzr revid: tde@openerp.com-20130222101302-dtn8tjroza8d9dce
2013-02-22 11:13:02 +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 43368e1159 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130115112753-p7ams94qeayg0her
2013-01-15 12:27:53 +01:00
Thibault Delavallée 9321e4cb67 [FIX] Wall: fixed attribute error on res.users, due to a missing method called by the JS.
bzr revid: tde@openerp.com-20130115110058-mmpcourm7i5p2hv2
2013-01-15 12:00:58 +01:00
Thibault Delavallée 89ba499556 [IMP] Partners do not follow themselves by default now.
bzr revid: tde@openerp.com-20130109104513-3vlyw4knqp4d6to2
2013-01-09 11:45:13 +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 dcd9f1d35e [IMP] mail: fixed a forgottent context.
bzr revid: tde@openerp.com-20121221161159-267ezrwo3bux3879
2012-12-21 17:11:59 +01:00
Thibault Delavallée be6dd64e1e [FIX] Fixed argument of wrapper.
bzr revid: tde@openerp.com-20121221160523-q11rzna9jz7zspyu
2012-12-21 17:05:23 +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
Christophe Matthieu 40b1c95e1a [IMP]mail: display checkbox for allow to add email (from email_from value) for creating partner and send email to this new partners.
bzr revid: chm@openerp.com-20121220123122-qsqn8w97t1tre3cq
2012-12-20 13:31:22 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Thibault Delavallée f64d4a5ada [CLEAN] mail: misc cleaning of read -> browse, SUPERUSER_ID -> uid, because no need to SUPERUSER in this case.
bzr revid: tde@openerp.com-20121212160804-n182n9bzo8vscuvt
2012-12-12 17:08:04 +01:00
Thibault Delavallée 45e1682327 [FIX] [CLEAN] mail: fixed some access rules issues; removed now unused files.
bzr revid: tde@openerp.com-20121211143301-b52ji02vynvgo3m9
2012-12-11 15:33:01 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Thibault Delavallée 0cde689fa9 [FIX] fetchmail: fixed sending email on res.users aliases. This is done by using the message_update method of the related partner.
bzr revid: tde@openerp.com-20121115160008-gpz50ryhdw7h3f8b
2012-11-15 17:00:08 +01:00
Thibault Delavallée 25c684b171 [FIX] Chatter: fixed posting on user/partner. Cleaned a bit default options of mail.js.
bzr revid: tde@openerp.com-20121115095400-u7h6rw8ltp0xprtt
2012-11-15 10:54:00 +01:00
Fabien Pinckaers 0cca84f1f7 [IMP] views
bzr revid: fp@tinyerp.com-20121115083400-i18b1yxfkq6j7y70
2012-11-15 09:34:00 +01:00
Thibault Delavallée a2d3d1df80 [CLEAN] message_post_api: removed unnecessary type arg (posting is a comment).
bzr revid: tde@openerp.com-20121029101230-x39pep9p5edd54ml
2012-10-29 11:12:30 +01:00
Christophe Matthieu 0d4fdc41f9 [FIX] mail: resolve error to read message after posting
bzr revid: chm@openerp.com-20121029092934-gqfg7gq90xs8w3k1
2012-10-29 10:29:34 +01:00
Thibault Delavallée 1e6e375662 [FIX] mail: fixed content_subtype stripped from context; fixed posting a message using the composer on res.users.
bzr revid: tde@openerp.com-20121019113408-ynxtc73mfaojh56p
2012-10-19 13:34:08 +02:00
Thibault Delavallée 3c7efc0de5 [FIX] Mailboxes: now post on res.users, with correct uid. Posts on res.users usign message_post_api are redirected to the related partner.
bzr revid: tde@openerp.com-20121017143335-xxgfe1fsqqwz2gon
2012-10-17 16:33:35 +02:00
Thibault Delavallée 5731a2a46c [FIX] mail: res_users: browse -> read to have partner_id, to avoid access rights issues.
bzr revid: tde@openerp.com-20121017141958-kvo8q82rltfhsfl8
2012-10-17 16:19:58 +02:00
Olivier Dony fac6e9246b [FIX] mail: allow overriding message_post in threads + fix res.users' delegation to res.partner
bzr revid: odo@openerp.com-20121009133132-at5j8pm8engxqi10
2012-10-09 15:31:32 +02:00
Fabien Pinckaers 57cf973eab [IMP] usability
bzr revid: fp@tinyerp.com-20120921084250-k3vsmvgg7y4abewj
2012-09-21 10:42:50 +02:00
Fabien Pinckaers 9df7381ced [FIX] clean error message when creating a user froma partner form
bzr revid: fp@tinyerp.com-20120913185231-efkupz42kovrekpx
2012-09-13 20:52:31 +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 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 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 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
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
Thibault Delavallée 4b0d1be1c0 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120827083705-p2edynkzch7hszrd
2012-08-27 10:37:05 +02:00
Thibault Delavallée 7423196143 [REVIEW] Updated some variable names to try to be more explicit.
bzr revid: tde@openerp.com-20120824143944-cjm0zwfaldbfztq1
2012-08-24 16:39:44 +02:00