54 lines
1.3 KiB
Python
Executable File
54 lines
1.3 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 . import dss_ads
|
|
from odoo.exceptions import ValidationError
|
|
from datetime import date
|
|
from datetime import datetime
|
|
from babel.dates import format_date
|
|
from dateutil.relativedelta import relativedelta
|
|
from pyffmpeg import FFmpeg
|
|
from tuya_iot import TuyaOpenAPI, TUYA_LOGGER
|
|
from tuya_connector import TuyaOpenAPI, TUYA_LOGGER
|
|
import sys
|
|
|
|
TUYA_LOGGER.setLevel(logging.DEBUG)
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
class dsswebcontracts_all(models.Model):
|
|
|
|
_name = "dss.web_contracts.all"
|
|
_description = "DigitalSignage Web_Vertraege all"
|
|
_inherit = ['mail.thread','mail.activity.mixin','dss.triggermodel']
|
|
|
|
uuid = fields.Char(default=lambda self: self._default_uuid(), required=True, readonly=True, copy=False, string='UUID')
|
|
|
|
|
|
# def action_send_email(self):
|
|
# """ Sendet eine E-Mail mit den Inhalten des Objekts """
|
|
# template = self.env.ref('dss.email_template_my_model')
|
|
# if template:
|
|
#
|
|
#
|
|
# template.send_mail(self.id, force_send=True)
|
|
|
|
|