[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

[UPD] Update agreement_legal.pot
This commit is contained in:
Jairo Llopis
2020-03-06 12:04:49 +00:00
committed by Patrick Wilson
parent df86be0ddf
commit 1954652b3d
3 changed files with 5 additions and 2 deletions

View File

@@ -915,8 +915,11 @@ msgid "Name:"
msgstr ""
#. module: agreement_legal
#: code:addons/agreement_legal/models/agreement.py:78
#: code:addons/agreement_legal/models/agreement.py:79
#: code:addons/agreement_legal/models/agreement.py:359
#: code:addons/agreement_legal/models/agreement.py:360
#: code:addons/agreement_legal/models/agreement.py:362
#: code:addons/agreement_legal/models/agreement.py:363
#, python-format
msgid "New"

View File

@@ -5,8 +5,7 @@ from odoo import _, api, fields, models
class Agreement(models.Model):
_name = "agreement"
_inherit = ["agreement", "mail.thread"]
_inherit = "agreement"
# General
name = fields.Char(string="Title", required=True)

View File

@@ -235,6 +235,7 @@
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>