Browse Source

[ADD] emc_document: Chatter on documents

pull/1/head
Rémy Taymans 7 years ago
parent
commit
556bb90db9
  1. 1
      easy_my_coop_document/__openerp__.py
  2. 1
      easy_my_coop_document/models/document.py
  3. 5
      easy_my_coop_document/views/easy_my_coop_document_views.xml

1
easy_my_coop_document/__openerp__.py

@ -22,6 +22,7 @@
'depends': [
'base',
'web',
'mail',
],
'data': [

1
easy_my_coop_document/models/document.py

@ -11,6 +11,7 @@ class Document(models.Model):
_name = 'easy_my_coop.document'
_description = "Document"
_order = 'document_date desc, name'
_inherit = 'mail.thread'
name = fields.Char("Name", required=True)
description = fields.Text("Description")

5
easy_my_coop_document/views/easy_my_coop_document_views.xml

@ -34,6 +34,11 @@
<field name="publication_date" readonly="True"/>
</group>
</sheet>
<!-- Communication -->
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="message_ids" widget="mail_thread" />
</div>
</form>
</field>
</record>

Loading…
Cancel
Save