odoo/addons/mail
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
..
controllers [IMP] web: move controler download_attachment into mail. 2012-12-11 15:53:43 +01:00
data [FIX] mail: fixed wrong parsing of multipart/mixed emails. 2013-08-23 14:06:11 +02:00
doc [FIX] rst in mail 2013-01-18 17:55:24 +01:00
i18n Launchpad automatic translations update. 2013-08-27 05:03:16 +00:00
report [MERGE] trunk 2012-06-22 10:05:04 +02:00
security [MERGE] Sync with trunk. 2012-12-19 10:39:24 +01:00
static [FIX] OPW 586673: mail: make `read more/less` labels translatable 2013-06-06 18:18:37 +02:00
tests [FIX] mail: fixed wrong parsing of multipart/mixed emails. 2013-08-23 14:06:11 +02:00
wizard [FIX] mail: invite: avoid sendign a void invite message; but cleditor produces <br> instead of a void message when deleting the widget content. 2013-04-25 10:52:56 +02:00
__init__.py [MERGE] Sync with trunk. Cleaned a bit things lastly added in trunk/mail/tests. 2012-12-11 17:14:58 +01:00
__openerp__.py [FIX] mail: remove icons from "images" key of manifest 2013-01-31 19:48:05 +01:00
mail_alias.py [FIX] mail_alias, hr_job: when migrating to aliases, allow to have aliases creating records from a different model than the parent model; for example hr_job create hr_applicant records. 2013-05-16 14:02:27 +02:00
mail_alias_view.xml [MERGE] Next batch of improvements/fixes for mail.alias 2012-08-14 14:30:50 +02:00
mail_followers.py [FIX] mail_followers: avoid partners_to_notify parameter in _notify only if None, not if void. 2013-05-13 16:26:33 +02:00
mail_followers_view.xml [FIX] mail: the 'type' field is deprecated in the 'ir.ui.view' model 2012-10-10 14:36:51 +05:30
mail_group.py [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent 2013-08-27 17:07:08 +02:00
mail_group_menu.py [MERGE] From trunk 2012-12-17 15:43:06 +01:00
mail_group_view.xml [FIX] mail_group: fixed client action, no more Unread messages, send or log -> composition box with a correct message. 2013-03-27 10:58:22 +01:00
mail_mail.py [FIX] mail: res was not created if there are no email in email_list when sending emails 2013-07-26 12:10:08 +02:00
mail_mail_view.xml [FIX] mail_mail: fixed search view group_by using fields removed between 6.1 and 7.0; added group_by author_id. 2013-03-13 16:12:27 +01:00
mail_message.py [FIX] mail: check create access only for acess rights, not access rules (too permissive) 2013-08-21 17:39:18 +02:00
mail_message_subtype.py [CLEAN] Small cleanup of code. 2012-12-20 13:17:52 +01:00
mail_message_subtype.xml [CLEAN] mail: cleaned and updated automatic followers, now also possible on write without having to add something specific. parent_field -> relation_field on message.subtype model. Templates of automatic tracking do not use mako anymore, not necessary for small messages. Added a tmp hack in mail_message to avoid a crash, do not forget to remove it. 2012-12-19 17:42:39 +01:00
mail_message_view.xml [FIX] mail_message: fixed strings and names for read/unread filters. 2013-03-13 13:26:32 +01:00
mail_thread.py [FIX] mail: fixed wrong parsing of multipart/mixed emails. 2013-08-23 14:06:11 +02:00
mail_thread_view.xml [IMP] ir_ui_menu: trunk to 7.0 dynamic counters 2013-04-17 15:32:05 +02:00
mail_vote.py [FIX] [CLEAN] mail: fixed some access rules issues; removed now unused files. 2012-12-11 15:33:01 +01:00
res_config.py [FIX] mail: default alias_domain should be web.base.url 2012-10-08 14:03:51 +02:00
res_config_view.xml [FIX] auth_config 2012-08-17 00:55:37 +02:00
res_partner.py [CLEAN] crm, res_partner: added name on added filters; added oline breaks in big help of notification_email_send. 2013-03-13 13:51:24 +01:00
res_partner_view.xml [FIX] res_partner: mail now adds forgotten notification_email_send field; otherwise partner manager are not able to change the email reception policy for partners that are not users. 2013-03-08 13:48:35 +01:00
res_users.py [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent 2013-08-27 17:07:08 +02:00
res_users_view.xml [RENAME] mail: res.partner: renamed notification_email_pref into notification_email_send, because this pref suffix is very ugly. 2012-08-29 13:44:24 +02:00
update.py [FIX] mail opw update field date rename 2013-02-05 23:29:22 +01:00