29_12_25
This commit is contained in:
10
src/App.jsx
10
src/App.jsx
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user