From 8e4df97ceecd2183df77facadc4bdfc60c210eb6 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 13 Oct 2015 09:20:02 +0200 Subject: [PATCH] Change model selection method name. --- mail_forward/models/compose_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_forward/models/compose_message.py b/mail_forward/models/compose_message.py index 64b08da4..d6511e4d 100644 --- a/mail_forward/models/compose_message.py +++ b/mail_forward/models/compose_message.py @@ -33,7 +33,7 @@ class MailForwardComposeMessage(models.TransientModel): return result @api.model - def models(self): + def _get_model_selection(self): """Get allowed models and their names.""" model_objs = self.env["res.request.link"].search( [("mail_forward_target", "=", True)], @@ -77,7 +77,7 @@ class MailForwardComposeMessage(models.TransientModel): return result destination_object_id = fields.Reference( - models, + _get_model_selection, "Destination object", help="Object where the forwarded message will be attached")