12 lines
474 B
Python
12 lines
474 B
Python
from odoo import fields, models
|
|
|
|
class NotificationLogger(models.Model):
|
|
_name = 'sh.notification.logger'
|
|
_description = 'It keeps updated about the notification being sent'
|
|
_order = 'id desc'
|
|
|
|
name = fields.Char("Name")
|
|
error = fields.Char("Message")
|
|
datetime = fields.Datetime("Date & Time")
|
|
base_config_id = fields.Many2one('sh.send.notification')
|
|
status = fields.Selection([('success','Success'),('error','Failed')],string="Notification") |