update aus clientlist
All checks were successful
odoo-restore-open_workshop-install / run-odoo-backup-in-docker (push) Successful in 4m41s

This commit is contained in:
gitea 2025-04-13 09:24:33 +00:00
parent 9b16baf196
commit 3e0abbf184
4 changed files with 37 additions and 4 deletions

View File

@ -1 +1 @@
/opt/odoo/odoo/odoo-bin -d hobbyhimmel --update=open_workshop --stop-after-init /opt/odoo/odoo/odoo-bin -d hobbyhimmel --update=open_workshop --dev=all --stop-after-init

View File

@ -110,6 +110,7 @@ td {
} }
.pos { .pos {
background: #d3d3d3
direction: ltr; direction: ltr;
padding: 0; padding: 0;
margin: 0; margin: 0;
@ -386,7 +387,7 @@ td {
text-align: left; text-align: left;
box-shadow: 0px -5px 10px -6px rgb(82,82,82) inset; box-shadow: 0px -5px 10px -6px rgb(82,82,82) inset;
cursor: pointer; cursor: pointer;
width : 100%; width : 98%;
min-width: 45px; min-width: 45px;
/* overflow: auto; */ /* overflow: auto; */
} }
@ -406,6 +407,7 @@ td {
box-shadow: none; box-shadow: none;
-webkit-flex-shrink: 0; -webkit-flex-shrink: 0;
flex-shrink: 0; flex-shrink: 0;
width : 98%;
} }
.pos .order-button .order-sequence{ .pos .order-button .order-sequence{
@ -1138,6 +1140,7 @@ td {
width:100%; width:100%;
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
background: #d3d3d3;
} }
.pos .screen header h2 { .pos .screen header h2 {
margin-top: 0px; margin-top: 0px;
@ -1162,12 +1165,14 @@ td {
/* a) Generic Screen Layout Constructs */ /* a) Generic Screen Layout Constructs */
.screen .screen-content{ .screen .screen-content{
margin: 0px auto; /*margin: 0px auto;*/
left: 0px;
max-width: 1024px; max-width: 1024px;
text-align: left; text-align: left;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #eeeeee;
} }
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
@ -2540,6 +2545,7 @@ td {
flex-direction: row; flex-direction: row;
height: 100%; height: 100%;
width: 100%; width: 100%;
background: #d3d3d3
} }
.pos .order-selector { .pos .order-selector {

View File

@ -62,6 +62,33 @@ odoo.define('machine_access_sidebar', function (require) {
} }
}); });
// Sidebar aktualisieren bei Klick im ClientListScreenWidget (Vorschau)
screens.ClientListScreenWidget.include({
show: function () {
this._super();
$('.order-selector').hide(); // ← wird hier versteckt
},
hide: function () {
this._super();
$('.order-selector').show(); // ← beim Verlassen wieder zeigen
},
display_client_details: function (visibility, partner, clickpos) {
this._super(visibility, partner, clickpos);
try {
if (partner && typeof partner === 'object' && 'id' in partner) {
var sidebar = this.pos.chrome.sidebar_widget;
if (sidebar) {
console.log("👤 ClientListScreen: Vorschau für", partner.name);
sidebar.update_machine_access(partner);
}
}
} catch (e) {
console.warn("⚠️ Fehler beim Update der Sidebar nach Kundenauswahl:", e);
}
}
});
chrome.Chrome.include({ chrome.Chrome.include({
build_widgets: function () { build_widgets: function () {
this._super(); this._super();

View File

@ -42,7 +42,7 @@ odoo.define('open_workshop.partner_access_popup', function (require) {
const html = QWeb.render('PartnerMachineAccessList', { const html = QWeb.render('PartnerMachineAccessList', {
areas: result || [], areas: result || [],
}); });
self.$('.client-details-right').html(html); // self.$('.client-details-right').html(html);
}); });
}, },
}); });