This commit is contained in:
2025-12-29 19:59:08 +01:00
parent 777eea143a
commit 0f413a9ace

View File

@@ -42,10 +42,10 @@ function SplashScreen() {
Communication Tryton 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( window.parent.postMessage(
{ {
type: "open_tab", type: message,
payload: { model, res_id, view_mode, domain }, payload: { model, res_id, view_mode, domain },
}, },
"*" "*"
@@ -105,9 +105,9 @@ const shipmentData = [
]; ];
const lotData = [ const lotData = [
{ status: "Matched", count: lot_m, color: "bg-teal-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]]) }, { 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]]) }, { status: "All", count: lot_al, color: "bg-blue-500", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
]; ];
const kpis = [ const kpis = [