From 3626b9c8c67801d2edf96883f73fff26777a571e Mon Sep 17 00:00:00 2001 From: jopster Date: Mon, 8 Jul 2024 14:09:56 +0200 Subject: [PATCH] Project Maps, Trigger usw --- attendance.xml | 205 +++++++++++++++++++++++++++++++++ controllers/__init__.py | 4 + controllers/main.py | 53 +++++++++ hr_attendance_view.xml | 158 +++++++++++++++++++++++++ my_attendances.js | 59 ++++++++++ res_partner.py | 61 ++++++++++ static/images/dsscalc.png | Bin 0 -> 9083 bytes static/src/img/dsscalc.png | Bin 0 -> 9083 bytes views/google_map_templates.xml | 28 +++++ 9 files changed, 568 insertions(+) create mode 100644 attendance.xml create mode 100644 controllers/__init__.py create mode 100644 controllers/main.py create mode 100644 hr_attendance_view.xml create mode 100644 my_attendances.js create mode 100644 res_partner.py create mode 100644 static/images/dsscalc.png create mode 100644 static/src/img/dsscalc.png create mode 100644 views/google_map_templates.xml diff --git a/attendance.xml b/attendance.xml new file mode 100644 index 0000000..0d9dfe4 --- /dev/null +++ b/attendance.xml @@ -0,0 +1,205 @@ + + diff --git a/controllers/__init__.py b/controllers/__init__.py new file mode 100644 index 0000000..5d4b25d --- /dev/null +++ b/controllers/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import main diff --git a/controllers/main.py b/controllers/main.py new file mode 100644 index 0000000..36a2864 --- /dev/null +++ b/controllers/main.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo import http +import logging +from odoo.http import request +_logger = logging.getLogger(__name__) +from odoo.tools.json import scriptsafe + + +class GoogleMap(http.Controller): + ''' + This class generates on-the-fly partner maps that can be reused in every + website page. To do so, just use an ``