From 744d7e2331e1750141ec4b3d1bc14d7ef1593ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 29 Jul 2015 16:38:40 +0200 Subject: [PATCH] [FIX] mail: alias: default value for alias_domain otherwise it is not correctly computed on new records inheriting from mail.alias class. --- addons/mail/models/mail_alias.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/models/mail_alias.py b/addons/mail/models/mail_alias.py index 56844ad5243..b8c694e5fcc 100644 --- a/addons/mail/models/mail_alias.py +++ b/addons/mail/models/mail_alias.py @@ -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"