mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] agreement_legal: Migration to 13.0
This commit is contained in:
@@ -22,7 +22,9 @@ class AgreementAppendix(models.Model):
|
||||
string="Dynamic Content",
|
||||
help="compute dynamic Content",
|
||||
)
|
||||
agreement_id = fields.Many2one("agreement", string="Agreement", ondelete="cascade")
|
||||
agreement_id = fields.Many2one(
|
||||
comodel_name="agreement", string="Agreement", ondelete="cascade"
|
||||
)
|
||||
active = fields.Boolean(
|
||||
string="Active",
|
||||
default=True,
|
||||
@@ -56,7 +58,6 @@ class AgreementAppendix(models.Model):
|
||||
)
|
||||
|
||||
# compute the dynamic content for mako expression
|
||||
@api.multi
|
||||
def _compute_dynamic_content(self):
|
||||
MailTemplates = self.env["mail.template"]
|
||||
for appendix in self:
|
||||
|
||||
Reference in New Issue
Block a user