Transport 1

This commit is contained in:
jopster 2025-04-04 09:20:26 +02:00
parent 894d428c04
commit 4de4aeac4b
287 changed files with 145 additions and 137 deletions

View File

@ -45,7 +45,7 @@
'views/dss_zahlungen.xml',
'views/dss_web_contracts.xml',
'views/dss_invoices.xml',
'views/dss_m2mmail.xml',
'views/dss_m2mmail_views.xml',
'views/mainsystem_view.xml',
'views/dss_importinvoicelist.xml',
'views/menu.xml',

0
__pycache__/__init__.cpython-311.pyc Normal file → Executable file
View File

0
attendance.xml Normal file → Executable file
View File

0
controllers/__init__.py Normal file → Executable file
View File

BIN
controllers/__pycache__/__init__.cpython-311.pyc Normal file → Executable file

Binary file not shown.

Binary file not shown.

BIN
controllers/__pycache__/main.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
controllers/dss_screendesigner_controller.py Normal file → Executable file
View File

0
controllers/main.py Normal file → Executable file
View File

0
controllers/website_form.py Normal file → Executable file
View File

0
data/ir_model_data.xml Normal file → Executable file
View File

0
hr_attendance_view.xml Normal file → Executable file
View File

View File

@ -27,4 +27,4 @@ from . import dss_invoices
from . import dss_importinvoicelist
from . import dss_web_contracts
from . import dss_m2mmail
from . import dsslogger

0
models/__pycache__/company.cpython-311.pyc Normal file → Executable file
View File

BIN
models/__pycache__/dss.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
models/__pycache__/dss_activity.cpython-311.pyc Normal file → Executable file
View File

BIN
models/__pycache__/dss_activity_mixin.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_ads.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_advertisefields.cpython-311.pyc Normal file → Executable file

Binary file not shown.

Binary file not shown.

BIN
models/__pycache__/dss_display_templates.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
models/__pycache__/dss_eventdays.cpython-311.pyc Normal file → Executable file
View File

0
models/__pycache__/dss_geraetetypen.cpython-311.pyc Normal file → Executable file
View File

View File

BIN
models/__pycache__/dss_importinvoicelist.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_invoices.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
models/__pycache__/dss_maintains.cpython-311.pyc Normal file → Executable file
View File

BIN
models/__pycache__/dss_marker.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_onlinestate.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_provision.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_provisionstypen.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
models/__pycache__/dss_software.cpython-311.pyc Normal file → Executable file
View File

0
models/__pycache__/dss_systems.cpython-311.pyc Normal file → Executable file
View File

0
models/__pycache__/dss_systemtypen.cpython-311.pyc Normal file → Executable file
View File

BIN
models/__pycache__/dss_triggerexecute.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_triggervalues.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_web_contracts.cpython-311.pyc Normal file → Executable file

Binary file not shown.

BIN
models/__pycache__/dss_zahlungen.cpython-311.pyc Normal file → Executable file

Binary file not shown.

0
models/dss_activity_mixin.py Normal file → Executable file
View File

0
models/dss_ads.py Normal file → Executable file
View File

View File

@ -8,6 +8,7 @@ import datetime
import json
import re
import uuid
from .dsslogger import OdooCustomLogger
import logging
import base64
import subprocess
@ -31,6 +32,8 @@ from tuya_connector import TuyaOpenAPI, TUYA_LOGGER
import sys
TUYA_LOGGER.setLevel(logging.DEBUG)
# logging.setLoggerClass(OdooCustomLogger)
_logger = logging.getLogger(__name__)
class dsscontracts(models.Model):

0
models/dss_importinvoicelist.py Normal file → Executable file
View File

0
models/dss_invoices.py Normal file → Executable file
View File

40
models/dss_m2mmail.py Normal file → Executable file
View File

@ -1,15 +1,55 @@
import uuid
import logging
from odoo import api, fields, models, _
from odoo import tools
_logger = logging.getLogger(__name__)
class dssm2mvalues(models.Model):
@api.model
def analyze_emails(self):
# Prüfe, ob der Datensatz ein Email-Objekt ist
email_text = self.website_message_ids.body
# Prüfe, ob der Text "ProjektID:" enthält
if "ProjektID:" in email_text:
# Finde die Position von "ProjektID:"
pos = email_text.find("ProjektID:")
_logger.info("Import M2M Emails - Get ID. File - Message : pos "+str(pos))
# Extrahiere die nächsten 3 Ziffern
project_id = email_text[pos + 11:pos + 14].strip()
self.project_id = project_id
self.analyzed = True
@api.model
def create(self, vals):
result = super(dssm2mvalues, self).create(vals)
settings = self.env['dss.settings'].search([],limit=1)
cron_job = settings.m2mcron
if cron_job:
_logger.info("Import M2M Emails - Create - Cron activating : "+str(cron_job))
cron_job._trigger()
return result
_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')
analyzed = fields.Boolean('Analysiert', default=False, tracking=True)
project_id = fields.Char(string='Projekt-ID',tracking=True)
project = fields.Many2one('dss.projects', string='Projekt', compute='_compute_project')
@api.depends('project_id')
def _compute_project(self):
self.project = False
for record in self:
if record.project_id:
project = self.env['dss.projects'].search([('projectid', '=', int(record.project_id))])
if project:
record.project = project
# ... andere Methoden ...
@api.model
def _default_uuid(self):
return str(uuid.uuid4())

0
models/dss_mailthreat.py Normal file → Executable file
View File

0
models/dss_marker.py Normal file → Executable file
View File

0
models/dss_onlinestate.py Normal file → Executable file
View File

View File

@ -2,8 +2,9 @@ import ast
import datetime
import json
import re
import uuid
from .dsslogger import OdooCustomLogger
import logging
import uuid
import base64
import subprocess
import tempfile
@ -31,10 +32,14 @@ from tuya_connector import TuyaOpenAPI, TUYA_LOGGER
import sys
TUYA_LOGGER.setLevel(logging.DEBUG)
logging.setLoggerClass(OdooCustomLogger)
_logger = logging.getLogger(__name__)
class dssprojects(models.Model):
_name = "dss.projects"
_description = "DigitalSignage Projekte"
_rec_name = "projektname"

0
models/dss_provision.py Normal file → Executable file
View File

0
models/dss_provisionstypen.py Normal file → Executable file
View File

View File

@ -61,7 +61,8 @@ class dssSettings(models.Model):
rporturl = fields.Char('RPort URL',tracking=True)
rportusername = fields.Char('RPort Username',tracking=True)
rporttoken = fields.Char('RPort API Token',tracking=True)
showdebug = fields.Boolean('Debug',help='Debug Informationen aktivieren ',tracking=True)
m2mcron = fields.Many2one('ir.cron',string='M2M Cron',tracking=True)
def _get_settingvalue(self,valuename):
settings = (self.env['dss.settings'].search([],limit=1))

7
models/dss_trigger.py Normal file → Executable file
View File

@ -138,6 +138,7 @@ class dsstriggergroups(models.Model):
def run_triggers(self, changes, Dataset, triggers):
_logger.info("Trigger in run_triggers ! - start count :"+str(len(triggers)) )
for trig in triggers:
if trig.trigger_active:
_logger.info("Trigger in run_triggers - Working on : "+str(trig.triggername)+'('+str(trig.id)+')')
dochecktrigger = False
@ -193,9 +194,9 @@ class dsstriggergroups(models.Model):
Wert = ""
if field_type=="many2one":
Wert = str(Dataset[fieldname].id)
# Dataset[fieldname].model
# SubWertDB = self.env[].search([('id', '=', field.id)])
# Wert = SubWertDB.id
# Dataset[fieldname].model
# SubWertDB = self.env[].search([('id', '=', field.id)])
# Wert = SubWertDB.id
if field_type=="char":
Wert = str(Dataset[fieldname])
_logger.info("Trigger in run_triggers - specific value : "+str(changes)+" ("+str(Wert)+') -> '+str(trig.trigger_value)+' - '+str(field)+' / '+str(field_type))

0
models/dss_triggerexecute.py Normal file → Executable file
View File

0
models/dss_triggervalues.py Normal file → Executable file
View File

0
models/dss_web_contracts.py Normal file → Executable file
View File

0
models/dss_zahlungen.py Normal file → Executable file
View File

0
my_attendances.js Normal file → Executable file
View File

0
res_partner.py Normal file → Executable file
View File

0
static/images/dsscalc.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

0
static/src/archiv/google_map_templates.xml Normal file → Executable file
View File

0
static/src/archiv/lib/images/conv30.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

0
static/src/archiv/lib/images/conv40.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
static/src/archiv/lib/images/conv50.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
static/src/archiv/lib/images/heart30.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
static/src/archiv/lib/images/heart40.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
static/src/archiv/lib/images/heart50.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
static/src/archiv/lib/images/m1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
static/src/archiv/lib/images/m2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
static/src/archiv/lib/images/m3.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
static/src/archiv/lib/images/m4.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

0
static/src/archiv/lib/images/m5.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

0
static/src/archiv/lib/images/people35.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
static/src/archiv/lib/images/people45.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

0
static/src/archiv/lib/images/people55.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
static/src/archiv/lib/images/pin.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
static/src/archiv/screenDesignerView.js Normal file → Executable file
View File

0
static/src/archiv/website_google_map.js Normal file → Executable file
View File

0
static/src/css/screenDesignerView.css Normal file → Executable file
View File

0
static/src/helpers/img/pat-blue.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
static/src/helpers/img/pat-orange.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
static/src/helpers/img/pat-red.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
static/src/helpers/img/pat-yellow.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
static/src/helpers/v2/app.js Normal file → Executable file
View File

0
static/src/helpers/v2/img-front/calendar-270x150.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
static/src/helpers/v2/img-front/month-270x150.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

0
static/src/helpers/v2/img-front/scheduler-270x150.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
static/src/helpers/v2/main.css Normal file → Executable file
View File

0
static/src/helpers/v2/reporter.js Normal file → Executable file
View File

0
static/src/img/calendar.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

0
static/src/img/calendar_rf.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

0
static/src/img/conv30.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

0
static/src/img/conv40.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
static/src/img/conv50.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
static/src/img/dsscalc.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Some files were not shown because too many files have changed in this diff Show More