mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
committed by
Patrick Wilson
parent
df86be0ddf
commit
1954652b3d
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user