From da18339f85bcff0bbd6f86929a0c49c6a91c0da0 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 11 Apr 2019 09:54:08 -0500 Subject: [PATCH] Update agreement_appendix.py --- agreement/models/agreement_appendix.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/agreement/models/agreement_appendix.py b/agreement/models/agreement_appendix.py index 9c0d799d..d70f2e21 100644 --- a/agreement/models/agreement_appendix.py +++ b/agreement/models/agreement_appendix.py @@ -62,11 +62,11 @@ class AgreementAppendix(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