From cce13bb375520c0523ae0ecd31eaab147063b923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylv=C3=A8re=20Richard?= Date: Mon, 26 Oct 2015 10:51:48 +0100 Subject: [PATCH] use comma as separator. Put spaces into separator so that it is possible to remove spaces in the separator definition by overriding the method _get_separator. --- partner_academic_title/models/res_partner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_academic_title/models/res_partner.py b/partner_academic_title/models/res_partner.py index 32a5e68cc..b6c1c676a 100644 --- a/partner_academic_title/models/res_partner.py +++ b/partner_academic_title/models/res_partner.py @@ -30,7 +30,7 @@ class ResPartner(models.Model): _inherit = 'res.partner' def _get_separator(self): - return '-' + return ', ' @api.depends('academic_title_ids', 'academic_title_ids.sequence') @api.one @@ -40,7 +40,7 @@ class ResPartner(models.Model): title_ids = self.academic_title_ids.sorted(lambda r: r.sequence) for title in title_ids: if display_title: - display_title = "%s %s %s" % (display_title, separator, + display_title = "%s%s%s" % (display_title, separator, title.name) else: display_title = "%s" % (title.name)