From d9b69a253cac29056fc2e67cb470da79f590e658 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 5 Apr 2019 17:36:18 +0200 Subject: [PATCH] FIX details --- agreement/models/agreement.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index dc975526..b09b4dbc 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -16,8 +16,7 @@ class Agreement(models.Model): domain=[('parent_id', '=', False)]) company_id = fields.Many2one( 'res.company', string='Company', - default=lambda self: self.env['res.company']._company_default_get( - 'agreement')) + default=lambda self: self.env['res.company']._company_default_get()) active = fields.Boolean(default=True) signature_date = fields.Date() start_date = fields.Date() @@ -28,7 +27,7 @@ class Agreement(models.Model): for agr in self: name = agr.name if agr.code: - name = u'[%s] %s' % (agr.code, agr.name) + name = '[%s] %s' % (agr.code, agr.name) res.append((agr.id, name)) return res