From d99303c3470c33019205f8f00af9c0de4118b8db Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 11 Apr 2019 09:54:37 -0500 Subject: [PATCH] Update agreement_clause.py --- agreement/models/agreement_clause.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agreement/models/agreement_clause.py b/agreement/models/agreement_clause.py index c8ae2a75..182f4227 100644 --- a/agreement/models/agreement_clause.py +++ b/agreement/models/agreement_clause.py @@ -71,11 +71,11 @@ class AgreementClause(models.Model): if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( [('model', '=', self.field_id.relation)])[0] - if self.sub_model_object_field_id: - self.copyvalue = "${object.%s.%s or %s}" %\ - (self.field_id.name, - self.sub_model_object_field_id.name, - self.default_value or '\'\'') + if self.sub_model_object_field_id: + self.copyvalue = "${object.%s.%s or %s}" %\ + (self.field_id.name, + self.sub_model_object_field_id.name, + self.default_value or '\'\'') # compute the dynamic content for mako expression @api.multi