44 lines
1.1 KiB
Python
Executable File
44 lines
1.1 KiB
Python
Executable File
# -*- coding: utf-8 -*
|
|
|
|
# Test
|
|
# Test2
|
|
|
|
import ast
|
|
import datetime
|
|
import json
|
|
import re
|
|
import uuid
|
|
import logging
|
|
import base64
|
|
import subprocess
|
|
import tempfile
|
|
import easywebdav
|
|
import os
|
|
import os.path
|
|
|
|
|
|
from odoo import api, fields, models, _
|
|
from odoo import tools
|
|
from . import dss_settings
|
|
from odoo.exceptions import ValidationError
|
|
import sys
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
class dssmarker(models.Model):
|
|
_name = "dss.marker"
|
|
_description = "DigitalSignage Datensatz-Marker"
|
|
_inherit = ['mail.thread','mail.activity.mixin']
|
|
_rec_name = "markername"
|
|
uuid = fields.Char(default=lambda self: self._default_uuid(), required=True, readonly=True, copy=False, string='UUID')
|
|
markerid = fields.Char('Eind. ID',help="Bitte eine Eindeutige Kennung z.B: GMARKER1112 einfallen lassen ",tracking=True)
|
|
markername = fields.Char('Name',tracking=True)
|
|
description = fields.Text('Beschreibung',tracking=True)
|
|
|
|
@api.model
|
|
def _default_uuid(self):
|
|
return str(uuid.uuid4())
|
|
|
|
@api.model
|
|
def readmarker(self):
|
|
return self.env['dss.marker'].browse() |