From 2071b1141dfbae9626b77744e971881308b68cc6 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 28 Mar 2019 08:49:59 -0600 Subject: [PATCH] [FIX] PEP8 errors --- agreement/models/agreement.py | 2 +- agreement/models/agreement_appendix.py | 2 +- agreement/models/agreement_clause.py | 2 +- agreement/models/agreement_recital.py | 2 +- agreement/models/agreement_section.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index 37feb4b4..d9595e27 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -346,7 +346,7 @@ class Agreement(models.Model): self.sub_model_object_field_id = False if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( - [('model', '=', self.field_id.relation)])[0] + [('model', '=', self.field_id.relation)])[0] if self.sub_model_object_field_id: self.copyvalue = "${object.%s.%s or %s}" %\ (self.field_id.name, diff --git a/agreement/models/agreement_appendix.py b/agreement/models/agreement_appendix.py index a224d7a0..9c0d799d 100644 --- a/agreement/models/agreement_appendix.py +++ b/agreement/models/agreement_appendix.py @@ -61,7 +61,7 @@ class AgreementAppendix(models.Model): self.sub_model_object_field_id = False if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( - [('model', '=', self.field_id.relation)])[0] + [('model', '=', self.field_id.relation)])[0] if self.sub_model_object_field_id: self.copyvalue = "${object.%s.%s or %s}" %\ (self.field_id.name, diff --git a/agreement/models/agreement_clause.py b/agreement/models/agreement_clause.py index 84dbc19b..c8ae2a75 100644 --- a/agreement/models/agreement_clause.py +++ b/agreement/models/agreement_clause.py @@ -70,7 +70,7 @@ class AgreementClause(models.Model): self.sub_model_object_field_id = False if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( - [('model', '=', self.field_id.relation)])[0] + [('model', '=', self.field_id.relation)])[0] if self.sub_model_object_field_id: self.copyvalue = "${object.%s.%s or %s}" %\ (self.field_id.name, diff --git a/agreement/models/agreement_recital.py b/agreement/models/agreement_recital.py index b10ea4a3..c7a30adb 100644 --- a/agreement/models/agreement_recital.py +++ b/agreement/models/agreement_recital.py @@ -62,7 +62,7 @@ class AgreementRecital(models.Model): self.sub_model_object_field_id = False if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( - [('model', '=', self.field_id.relation)])[0] + [('model', '=', self.field_id.relation)])[0] if self.sub_model_object_field_id: self.copyvalue = "${object.%s.%s or %s}" %\ (self.field_id.name, diff --git a/agreement/models/agreement_section.py b/agreement/models/agreement_section.py index 74e7ebba..e6a2b2ae 100644 --- a/agreement/models/agreement_section.py +++ b/agreement/models/agreement_section.py @@ -61,7 +61,7 @@ class AgreementSection(models.Model): self.sub_model_object_field_id = False if self.field_id and self.field_id.relation: self.sub_object_id = self.env['ir.model'].search( - [('model', '=', self.field_id.relation)])[0] + [('model', '=', self.field_id.relation)])[0] if self.sub_model_object_field_id: self.copyvalue = "${object.%s.%s or %s}" %\ (self.field_id.name,