Added mail_notification model for the notification push system
bzr revid: tde@openerp.com-20120201170505-tbigadi8eo6gwr7m
This commit is contained in:
parent
fe065c137d
commit
d64f3c9783
|
@ -46,3 +46,23 @@ class mail_subscription(osv.osv):
|
|||
}
|
||||
|
||||
mail_subscription()
|
||||
|
||||
class mail_notification(osv.osv):
|
||||
"""
|
||||
TODO
|
||||
"""
|
||||
|
||||
_name = 'mail.notification'
|
||||
_rec_name = 'id'
|
||||
_columns = {
|
||||
'user_id': fields.many2one('res.users', string='User'
|
||||
ondelete='cascade', required=True),
|
||||
'message_id': fields.many2one('mail.message', string='Message'
|
||||
ondelete='cascade', required=True),
|
||||
'read': fields.boolean('Read'),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
}
|
||||
|
||||
mail_notification()
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue