15 lines
465 B
Python
15 lines
465 B
Python
from odoo import api, fields, models, _
|
|
from odoo import tools
|
|
|
|
|
|
class dssm2mvalues(models.Model):
|
|
_name = "dss.m2mmail"
|
|
_description = "DigitalSignage M2M Rückmeldungen"
|
|
# _rec_name = "statusname"
|
|
_inherit = ['mail.thread', 'mail.activity.mixin']
|
|
uuid = fields.Char(default=lambda self: self._default_uuid(), required=True, readonly=True, copy=False, string='UUID')
|
|
|
|
@api.model
|
|
def _default_uuid(self):
|
|
return str(uuid.uuid4())
|