diff --git a/src/App.jsx b/src/App.jsx index 0cc821ad..99cd72be 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -133,7 +133,7 @@ const kpis = [ trend: "+5% this month", trendValue: 5, icon: DollarSign, - action: () => openInTryton("account.invoice", undefined, ['tree']) + action: () => openInTryton("account.invoice", undefined, ['tree','form'],[['type', '=', 'in']]) }, { title: "Amount to receive ($)", @@ -141,7 +141,7 @@ const kpis = [ trend: "-1% this month", trendValue: -1, icon: HandCoins, - action: () => openInTryton("account.invoice", undefined, ['tree']) + action: () => openInTryton("account.invoice", undefined, ['tree','form'],[['type', '=', 'out']]) }, ]; @@ -178,7 +178,7 @@ const cards = [ value: inv_p, trend: "-2% this week", icon: Receipt, - action: () => openInTryton("account.invoice", undefined, ['tree']) + action: () => openInTryton("account.invoice", undefined, ['tree','form'],[['type', '=', 'in']]) }, { id: "sale_invoices", @@ -186,7 +186,7 @@ const cards = [ value: inv_s, trend: "+2% this week", icon: FileText, - action: () => openInTryton("account.invoice", undefined, ['tree']) + action: () => openInTryton("account.invoice", undefined, ['tree','form'],[['type', '=', 'out']]) }, { id: "payments_to_validate", @@ -194,7 +194,7 @@ const cards = [ value: move_cash, trend: "+12% this week", icon: HandCoins, - action: () => openInTryton("account.move", undefined, ['tree']) + action: () => openInTryton("account.move", undefined, ['tree','form'],[['journal', '=', 3]]) }, // { // id: "prepayments",