[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:
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user