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