summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-08-25 16:38:32 +0200
committerRaphael Collet <rco@openerp.com>2016-08-31 17:21:45 +0200
commitff5e44d2dece70f2d1f56eba7dd4a5d2050c59ef (patch)
treef2e9be06fd7660398aa1c6e0ca5bd146261b0199 /addons
parent6eca5d038fe383a5d48ab99a4c3a0bcd47f674e3 (diff)
[REM] models: remove `_all_columns`
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/models/mail_mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_mail.py b/addons/mail/models/mail_mail.py
index 4ad711e09c6..aecb32cb5ac 100644
--- a/addons/mail/models/mail_mail.py
+++ b/addons/mail/models/mail_mail.py
@@ -74,7 +74,7 @@ class MailMail(models.Model):
def default_get(self, fields):
# protection for `default_type` values leaking from menu action context (e.g. for invoices)
# To remove when automatic context propagation is removed in web client
- if self._context.get('default_type') not in self._all_columns['message_type'].column.selection:
+ if self._context.get('default_type') not in type(self).message_type.base_field.selection:
self = self.with_context(dict(self._context, default_type=None))
return super(MailMail, self).default_get(fields)