From 4b6dd9991aeb13ce7de88bf5082b9dffc54a4834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agathe=20Moll=C3=A9?= Date: Mon, 22 Jun 2015 11:47:22 -0400 Subject: [PATCH] [IMP] Description field can be in text type too --- super_calendar/models/super_calendar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/super_calendar/models/super_calendar.py b/super_calendar/models/super_calendar.py index 2d11171cb..da04ac608 100644 --- a/super_calendar/models/super_calendar.py +++ b/super_calendar/models/super_calendar.py @@ -177,7 +177,8 @@ class SuperCalendarConfiguratorLine(models.Model): description_field_id = fields.Many2one( comodel_name='ir.model.fields', string='Description field', - domain="[('model_id', '=', name), ('ttype', '=', 'char')]", + domain=("['&','|',('ttype', '=', 'char'),('ttype', '=', 'text')," + "('model_id', '=', name)]"), ) description_code = fields.Text( string='Description field',