|
|
@ -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): |
|
|
|