[Remove] Remove code of replceing field name with message_type from type.

bzr revid: bth@tinyerp.com-20120823073753-pctl7filwo6we8uu
This commit is contained in:
Bhumi Thakkar (Open ERP)
2012-08-23 13:07:53 +05:30
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -54,10 +54,11 @@ class mail_alias(osv.Model):
def _get_alias_domain(self, cr, uid, ids, name, args, context=None):
ir_config_parameter = self.pool.get("ir.config_parameter")
domain = ir_config_parameter.get_param(cr, uid, "mail.catchall.domain", context=context)
domain = ir_config_parameter.get_param(cr, uid, "mail.catchall.domain", context=context)
return dict.fromkeys(ids, domain or "")
_columns = {
'alias_force_id': fields.integer('Alias Force Id'),
'alias_name': fields.char('Alias', required=True,
help="The name of the email alias, e.g. 'jobs' "
"if you want to catch emails for <jobs@example.my.openerp.com>",),
+1 -1
View File
@@ -98,7 +98,7 @@ class mail_group(osv.Model):
"Use this field anywhere a small image is required."),
'last_month_msg_nbr': fields.function(_get_last_month_msg_nbr, type='integer',
string='Messages count for last month'),
'alias_id': fields.many2one('mail.alias', 'Alias', ondelete="cascade",
'alias_id': fields.many2one('mail.alias', 'Alias', required=True, ondelete="cascade",
help="The email address associated with this group. New emails received will automatically "
"create new topics."),
}