Browse Source

[FIX] PEP8 errors

pull/293/head
Maxime Chambreuil 6 years ago
parent
commit
2071b1141d
  1. 2
      agreement/models/agreement.py
  2. 2
      agreement/models/agreement_appendix.py
  3. 2
      agreement/models/agreement_clause.py
  4. 2
      agreement/models/agreement_recital.py
  5. 2
      agreement/models/agreement_section.py

2
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,

2
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,

2
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,

2
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,

2
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,

Loading…
Cancel
Save