mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] flake8(2)
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import api, fields, models
|
||||||
|
|
||||||
|
|
||||||
class AgreementRecital(models.Model):
|
class AgreementRecital(models.Model):
|
||||||
_name = "agreement.recital"
|
_name = "agreement.recital"
|
||||||
_description = "Agreement Recitals"
|
_description = "Agreement Recitals"
|
||||||
@@ -64,7 +65,6 @@ class AgreementRecital(models.Model):
|
|||||||
template field.""",
|
template field.""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
|
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
|
||||||
def onchange_copyvalue(self):
|
def onchange_copyvalue(self):
|
||||||
self.sub_object_id = False
|
self.sub_object_id = False
|
||||||
@@ -84,7 +84,6 @@ class AgreementRecital(models.Model):
|
|||||||
self.sub_model_object_field_id.name,
|
self.sub_model_object_field_id.name,
|
||||||
self.default_value or '\'\'')
|
self.default_value or '\'\'')
|
||||||
|
|
||||||
|
|
||||||
# compute the dynamic content for mako expression
|
# compute the dynamic content for mako expression
|
||||||
@api.multi
|
@api.multi
|
||||||
def _compute_dynamic_content(self):
|
def _compute_dynamic_content(self):
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ class AgreementSection(models.Model):
|
|||||||
template field.""",
|
template field.""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
|
@api.onchange('field_id', 'sub_model_object_field_id', 'default_value')
|
||||||
def onchange_copyvalue(self):
|
def onchange_copyvalue(self):
|
||||||
self.sub_object_id = False
|
self.sub_object_id = False
|
||||||
@@ -87,7 +86,6 @@ class AgreementSection(models.Model):
|
|||||||
self.sub_model_object_field_id.name,
|
self.sub_model_object_field_id.name,
|
||||||
self.default_value or '\'\'')
|
self.default_value or '\'\'')
|
||||||
|
|
||||||
|
|
||||||
# compute the dynamic content for mako expression
|
# compute the dynamic content for mako expression
|
||||||
@api.multi
|
@api.multi
|
||||||
def _compute_dynamic_content(self):
|
def _compute_dynamic_content(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user