[IMP] Improved for

Notifications :
Add a Date column to the left of Contact field.

bzr revid: psa@tinyerp.com-20121210121302-qngfi4ozi3btummz
This commit is contained in:
Paramjit Singh Sahota
2012-12-10 17:43:02 +05:30
parent 5e143056c2
commit d81701a93d
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -63,12 +63,14 @@ class mail_notification(osv.Model):
'partner_id': fields.many2one('res.partner', string='Contact',
ondelete='cascade', required=True, select=1),
'read': fields.boolean('Read', select=1),
'date': fields.date('Date'),
'message_id': fields.many2one('mail.message', string='Message',
ondelete='cascade', required=True, select=1),
}
_defaults = {
'read': False,
'date': lambda *a: fields.datetime.now(),
}
def init(self, cr):
+1
View File
@@ -44,6 +44,7 @@
<field name="priority">10</field>
<field name="arch" type="xml">
<tree string="Notifications">
<field name="date"/>
<field name="partner_id"/>
<field name="message_id"/>
</tree>