From 0f413a9aced14e85271737f816b17c68bb177b7a Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 29 Dec 2025 19:59:08 +0100 Subject: [PATCH] 29_12_25 --- src/App.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 99cd72be..5e6ba9dc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -42,10 +42,10 @@ function SplashScreen() { Communication Tryton -------------------------- */ -function openInTryton(model, res_id, view_mode = ['tree'], domain) { +function openInTryton(model, res_id, view_mode = ['tree'], domain, message = "open_tab") { window.parent.postMessage( { - type: "open_tab", + type: message, payload: { model, res_id, view_mode, domain }, }, "*" @@ -105,9 +105,9 @@ const shipmentData = [ ]; const lotData = [ - { status: "Matched", count: lot_m, color: "bg-teal-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]])}, - { status: "Available", count: lot_a, color: "bg-cyan-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]]) }, - { status: "All", count: lot_al, color: "bg-blue-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]]) }, + { status: "Matched", count: lot_m, color: "bg-teal-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window')}, + { status: "Available", count: lot_a, color: "bg-cyan-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') }, + { status: "All", count: lot_al, color: "bg-blue-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') }, ]; const kpis = [