mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Update agreement_section.py
This commit is contained in:
committed by
GitHub
parent
238d847fa3
commit
ffa0a841c9
@@ -62,11 +62,11 @@ class AgreementSection(models.Model):
|
|||||||
if self.field_id and self.field_id.relation:
|
if self.field_id and self.field_id.relation:
|
||||||
self.sub_object_id = self.env['ir.model'].search(
|
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:
|
if self.sub_model_object_field_id:
|
||||||
self.copyvalue = "${object.%s.%s or %s}" %\
|
self.copyvalue = "${object.%s.%s or %s}" %\
|
||||||
(self.field_id.name,
|
(self.field_id.name,
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user