[IMP] Improved module 'mail' to Create 'alias_force_id' field, alias_id put as required field, and remove type from record of ir.ui.view for 'mail.followers' object.
bzr revid: jra@tinyerp.com-20120829102223-rtq61663i1oz7r7x
This commit is contained in:
commit
31e026a56d
|
@ -63,6 +63,7 @@ class mail_alias(osv.Model):
|
|||
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>",),
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<record model="ir.ui.view" id="view_followers_tree">
|
||||
<field name="name">mail.followers.tree</field>
|
||||
<field name="model">mail.followers</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="priority">10</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Followers">
|
||||
|
|
|
@ -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."),
|
||||
}
|
||||
|
|
|
@ -459,7 +459,7 @@ class mail_thread(osv.Model):
|
|||
data.update({
|
||||
'email_to': email_to,
|
||||
'email_from': email_from or \
|
||||
thread._model._columns.get('user_id') and thread.user_id and thread.user_id.user_email,
|
||||
thread._model._columns.get('user_id') and thread.user_id and thread.user_id.email,
|
||||
'email_cc': email_cc,
|
||||
'email_bcc': email_bcc,
|
||||
'references': references,
|
||||
|
|
Loading…
Reference in New Issue