Browse Source

[FIX] flake8(2)

pull/301/head
Yves Goldberg 6 years ago
parent
commit
ad81655ae6
  1. 3
      agreement_legal/models/agreement_recital.py
  2. 2
      agreement_legal/models/agreement_section.py

3
agreement_legal/models/agreement_recital.py

@ -3,6 +3,7 @@
from odoo import api, fields, models
class AgreementRecital(models.Model):
_name = "agreement.recital"
_description = "Agreement Recitals"
@ -64,7 +65,6 @@ class AgreementRecital(models.Model):
template field.""",
)
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
def onchange_copyvalue(self):
self.sub_object_id = False
@ -84,7 +84,6 @@ class AgreementRecital(models.Model):
self.sub_model_object_field_id.name,
self.default_value or '\'\'')
# compute the dynamic content for mako expression
@api.multi
def _compute_dynamic_content(self):

2
agreement_legal/models/agreement_section.py

@ -67,7 +67,6 @@ class AgreementSection(models.Model):
template field.""",
)
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
def onchange_copyvalue(self):
self.sub_object_id = False
@ -87,7 +86,6 @@ class AgreementSection(models.Model):
self.sub_model_object_field_id.name,
self.default_value or '\'\'')
# compute the dynamic content for mako expression
@api.multi
def _compute_dynamic_content(self):

Loading…
Cancel
Save