[FIX] mail: alias: default value for alias_domain

otherwise it is not correctly computed on new records inheriting
from mail.alias class.
This commit is contained in:
Thibault Delavallée
2015-07-30 10:19:14 +02:00
parent 581aba9fdb
commit 744d7e2331
+2 -1
View File
@@ -62,7 +62,8 @@ class Alias(models.Model):
'Record Thread ID',
help="Optional ID of a thread (record) to which all incoming messages will be attached, even "
"if they did not reply to it. If set, this will disable the creation of new records completely.")
alias_domain = fields.Char('Alias domain', compute='_get_alias_domain')
alias_domain = fields.Char('Alias domain', compute='_get_alias_domain',
default=lambda self: self.env["ir.config_parameter"].get_param("mail.catchall.domain"))
alias_parent_model_id = fields.Many2one(
'ir.model', 'Parent Model',
help="Parent model holding the alias. The model holding the alias reference"