From ad81655ae66967fe15eb174a8c926a9b09939ae4 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Fri, 29 Mar 2019 17:46:53 +0100 Subject: [PATCH] [FIX] flake8(2) --- agreement_legal/models/agreement_recital.py | 3 +-- agreement_legal/models/agreement_section.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/agreement_legal/models/agreement_recital.py b/agreement_legal/models/agreement_recital.py index f380f167..ec65c29e 100644 --- a/agreement_legal/models/agreement_recital.py +++ b/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): diff --git a/agreement_legal/models/agreement_section.py b/agreement_legal/models/agreement_section.py index 0a1d00d4..f278aae8 100644 --- a/agreement_legal/models/agreement_section.py +++ b/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):