[IMP] agreement,agreement_legal: support activities

- The `agreement` model now features mail and activities from its base module.
- The `agreement_legal` module doesn't need to add mail support now.
- Add activities to form views.

@Tecnativa TT22477
This commit is contained in:
Jairo Llopis
2020-03-06 12:04:49 +00:00
committed by Pedro M. Baeza
parent 24294cc0f2
commit baf52df001
3 changed files with 35 additions and 27 deletions

View File

@@ -8,6 +8,7 @@ from odoo import models, fields
class Agreement(models.Model):
_name = 'agreement'
_description = 'Agreement'
_inherit = ["mail.thread", "mail.activity.mixin"]
code = fields.Char(required=True, copy=False)
name = fields.Char(required=True)