From 6e70c95a7cb30a27be0c7a3aec6dee0713074b5c Mon Sep 17 00:00:00 2001 From: gitea Date: Wed, 2 Apr 2025 16:38:04 +0000 Subject: [PATCH] fixed update client details --- static/src/js/partner_access_popup.js | 12 +- static/src/xml/ows_briefing_details.xml | 261 +----------------------- 2 files changed, 6 insertions(+), 267 deletions(-) diff --git a/static/src/js/partner_access_popup.js b/static/src/js/partner_access_popup.js index 81a27f7..38a252a 100644 --- a/static/src/js/partner_access_popup.js +++ b/static/src/js/partner_access_popup.js @@ -22,21 +22,19 @@ odoo.define('open_workshop.partner_access_popup', function (require) { screens.ClientListScreenWidget.include({ - show: function () { - this._super(); + display_client_details: function (visibility,partner, clickpos) { + this._super(visibility,partner, clickpos); var self = this; var client = this.pos.get_order().get_client(); - if (!client) { - console.log("⚠️ Kein Kunde ausgewählt"); + if (visibility !== 'show' || !partner) { + console.log("⛔ Kein Partner oder nicht im show-Modus"); return; } - console.log("👤 client Objekt:", client); - console.log("🆔 client.id:", client && client.id); rpc.query({ model: 'ows.machine', method: 'get_access_list_grouped', - args: [client.id], + args: [partner.id], }).then(function (result) { console.log("✅ Maschinenfreigaben vom Server:", result); diff --git a/static/src/xml/ows_briefing_details.xml b/static/src/xml/ows_briefing_details.xml index 128d21d..24a4235 100644 --- a/static/src/xml/ows_briefing_details.xml +++ b/static/src/xml/ows_briefing_details.xml @@ -98,265 +98,6 @@ - -
- -
-
- Sab. Laser - - - Ja - - - - - Nein - - -
-
- Prusa - - - Ja - - - - - Nein - - -
-
- Prusa MMU - - - Ja - - - - - Nein - - -
-
- 3D Delta - - - Ja - - - - - Nein - - -
-
- CNC Beami - - - Ja - - - - - Nein - - -
-
- -
-
- Felder Kreissäge - - - Ja - - - - - Nein - - -
-
- Felder Bandsäge - - - Ja - - - - - Nein - - -
-
- Abricht-/Dickenhobel - - - Ja - - - - - Nein - - -
-
- Drechselbank - - - Ja - - - - - Nein - - -
-
- Festool Domino Fräse - - - Ja - - - - - Nein - - -
-
- Maffel Duo Dübler - - - Ja - - - - - Nein - - -
-
- Lamello Zeta P2 - - - Ja - - - - - Nein - - -
-
- -
-
- Säge Metall - - - Ja - - - - - Nein - - -
-
- MIG/MAG Schweißgerät - - - Ja - - - - - Nein - - -
-
- WIG Schweißgerät - - - Ja - - - - - Nein - - -
-
- Schweißen divers (alt Schweißen) - - - Ja - - - - - Nein - - -
-
- Drehbank - - - Ja - - - - - Nein - - -
-
- Fräse Deckel FP2 - - - Ja - - - - - Nein - - -
-
- Abkantbank - - - Ja - - - - - Nein - - -
-
-
-
+