This commit is contained in:
2026-01-03 14:49:03 +01:00
parent 31a6a0c4ce
commit 0a51165a07

View File

@@ -121,10 +121,29 @@ const lotData = [
type: 'matched',
state: 'all',
wh: 'all',
group: 'by_physic'
group: 'by_physic',
origin: 'physic'
})},
{ status: "Available", count: lot_a, color: "bg-gray-400", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[["r_lot_matched", ">", 0]],'exec_window',{
purchase: null,
sale: null,
shipment: null,
type: 'not matched',
state: 'all',
wh: 'all',
group: 'by_physic',
origin: 'physic'
})},
{ status: "All", count: lot_al, color: "bg-sky-600", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[["r_lot_matched", ">", 0]],'exec_window',{
purchase: null,
sale: null,
shipment: null,
type: 'all',
state: 'all',
wh: 'all',
group: 'by_physic',
origin: 'physic'
})},
{ status: "Available", count: lot_a, color: "bg-gray-400", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
{ status: "All", count: lot_al, color: "bg-sky-600", onClick: () => openInTryton("lot.report", undefined, ['tree', 'form'],[['id', '>', 0]],'exec_window') },
];
const kpis = [
@@ -513,6 +532,7 @@ export default function App() {
<div
key={idx}
className="flex justify-between items-center p-2 rounded hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer"
onClick={() => openInTryton('currency.currency', undefined, ["form"], [[('id','=',2)]])}
>
<div>
<div className="flex items-center gap-2">
@@ -602,7 +622,7 @@ export default function App() {
<div className="grid grid-rows-2 gap-3">
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','=','paid'),('type','=','in')]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
@@ -614,7 +634,7 @@ export default function App() {
</button>
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','!=','paid'),('type','=','in')]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
@@ -636,7 +656,7 @@ export default function App() {
<div className="grid grid-rows-2 gap-3">
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','=','paid'),('type','=','out')]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
@@ -648,7 +668,7 @@ export default function App() {
</button>
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
onClick={() => openInTryton('account.invoice', undefined, ["tree","form"], [[('state','!=','paid'),('type','=','out')]])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
@@ -671,7 +691,7 @@ export default function App() {
{/* TO VALIDATE */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","draft"]])}
onClick={() => openInTryton('account.move', undefined, ["tree","form"], [['state","!=","posted']])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-teal-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">
@@ -684,7 +704,7 @@ export default function App() {
{/* POSTED */}
<button
onClick={() => openInTryton("account.move", undefined, ["tree","form"], [["state","=","posted"]])}
onClick={() => openInTryton('account.move', undefined, ["tree","form"], [['state','=','posted']])}
className="group rounded-lg border border-gray-200 dark:border-gray-600 p-4 flex flex-col items-center justify-center hover:bg-sky-50 dark:hover:bg-gray-700 transition hover:-translate-y-0.5 hover:shadow-md"
>
<span className="text-3xl font-bold text-gray-500 dark:text-white transition-transform group-hover:scale-110">