@gisce/react-ooui 2.96.0 → 2.97.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react-ooui.es.js
CHANGED
|
@@ -586,7 +586,7 @@ const En = class En {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
_s(En, "handler");
|
|
589
|
-
let
|
|
589
|
+
let V = En;
|
|
590
590
|
const ma = (t) => {
|
|
591
591
|
let e, n, r;
|
|
592
592
|
if (!t)
|
|
@@ -716,7 +716,7 @@ const ma = (t) => {
|
|
|
716
716
|
p(!1);
|
|
717
717
|
}
|
|
718
718
|
async function I() {
|
|
719
|
-
const $ = (await
|
|
719
|
+
const $ = (await V.getHandler().search({
|
|
720
720
|
params: [["translatable", "=", "1"]],
|
|
721
721
|
fieldsToRetrieve: ["code", "name"],
|
|
722
722
|
model: "res.lang"
|
|
@@ -729,7 +729,7 @@ const ma = (t) => {
|
|
|
729
729
|
async function x(A) {
|
|
730
730
|
const $ = {};
|
|
731
731
|
for (const R of A) {
|
|
732
|
-
const S = (await
|
|
732
|
+
const S = (await V.getHandler().readObjects({
|
|
733
733
|
model: r,
|
|
734
734
|
ids: [o],
|
|
735
735
|
fieldsToRetrieve: [i],
|
|
@@ -762,7 +762,7 @@ const ma = (t) => {
|
|
|
762
762
|
g(!0);
|
|
763
763
|
try {
|
|
764
764
|
for (const A of Object.keys(h))
|
|
765
|
-
h[A] !== v.current[A] && await
|
|
765
|
+
h[A] !== v.current[A] && await V.getHandler().update({
|
|
766
766
|
model: r,
|
|
767
767
|
id: o,
|
|
768
768
|
values: { [i]: h[A] },
|
|
@@ -1303,7 +1303,7 @@ const ss = async (t) => {
|
|
|
1303
1303
|
};
|
|
1304
1304
|
let u = [], p;
|
|
1305
1305
|
if (a === "tree" && (o != null && o.arch)) {
|
|
1306
|
-
const y = (h = Jt(o)) == null ? void 0 : h.colors, v = await
|
|
1306
|
+
const y = (h = Jt(o)) == null ? void 0 : h.colors, v = await V.getHandler().readEvalUiObjects({
|
|
1307
1307
|
model: n,
|
|
1308
1308
|
ids: d,
|
|
1309
1309
|
arch: o == null ? void 0 : o.arch,
|
|
@@ -1315,7 +1315,7 @@ const ss = async (t) => {
|
|
|
1315
1315
|
});
|
|
1316
1316
|
u = v[0], p = Mn(v[1]);
|
|
1317
1317
|
} else
|
|
1318
|
-
u = await
|
|
1318
|
+
u = await V.getHandler().readObjects({
|
|
1319
1319
|
model: n,
|
|
1320
1320
|
ids: d,
|
|
1321
1321
|
fields: f[a],
|
|
@@ -1407,7 +1407,7 @@ const xu = ({
|
|
|
1407
1407
|
const a = e.findIndex((c) => c.id === o.id), l = e.findIndex((c) => c.id === i.id);
|
|
1408
1408
|
return a - l;
|
|
1409
1409
|
}), r;
|
|
1410
|
-
}, Tu = async (t, e, n, r) => await
|
|
1410
|
+
}, Tu = async (t, e, n, r) => await V.getHandler().searchAllIds({
|
|
1411
1411
|
model: e,
|
|
1412
1412
|
params: [["id", "in", t]],
|
|
1413
1413
|
context: n,
|
|
@@ -1423,7 +1423,7 @@ const xu = ({
|
|
|
1423
1423
|
attrs: o,
|
|
1424
1424
|
treeOoui: i
|
|
1425
1425
|
}) => {
|
|
1426
|
-
const a = await
|
|
1426
|
+
const a = await V.getHandler().readEvalUiObjects({
|
|
1427
1427
|
model: t,
|
|
1428
1428
|
ids: e,
|
|
1429
1429
|
arch: n.arch,
|
|
@@ -1593,7 +1593,7 @@ const bn = ({
|
|
|
1593
1593
|
ze(() => {
|
|
1594
1594
|
g();
|
|
1595
1595
|
}, [e]);
|
|
1596
|
-
const m = async (h) => o && o[h] ? o[h] : await
|
|
1596
|
+
const m = async (h) => o && o[h] ? o[h] : await V.getHandler().getView({
|
|
1597
1597
|
model: n,
|
|
1598
1598
|
type: h,
|
|
1599
1599
|
context: { ...p == null ? void 0 : p(), ...r }
|
|
@@ -2127,7 +2127,7 @@ async function _a({
|
|
|
2127
2127
|
rootContext: e = {},
|
|
2128
2128
|
globalValues: n = {}
|
|
2129
2129
|
}) {
|
|
2130
|
-
const r = "ir.actions.act_window", o = `${r},${t}`, i = await
|
|
2130
|
+
const r = "ir.actions.act_window", o = `${r},${t}`, i = await V.getHandler().getActionData({
|
|
2131
2131
|
action: o,
|
|
2132
2132
|
context: e
|
|
2133
2133
|
}), a = on({
|
|
@@ -2144,7 +2144,7 @@ async function _a({
|
|
|
2144
2144
|
} = i, g = p === "tree";
|
|
2145
2145
|
if (!l.active_id)
|
|
2146
2146
|
return { title: f };
|
|
2147
|
-
const h = i.domain ? await
|
|
2147
|
+
const h = i.domain ? await V.getHandler().evalDomain({
|
|
2148
2148
|
domain: i.domain,
|
|
2149
2149
|
values: n,
|
|
2150
2150
|
context: l
|
|
@@ -2154,7 +2154,7 @@ async function _a({
|
|
|
2154
2154
|
if (x)
|
|
2155
2155
|
y.push(I);
|
|
2156
2156
|
else {
|
|
2157
|
-
const { view_id: T } = await
|
|
2157
|
+
const { view_id: T } = await V.getHandler().getView({
|
|
2158
2158
|
model: c,
|
|
2159
2159
|
type: k,
|
|
2160
2160
|
id: x,
|
|
@@ -2467,28 +2467,28 @@ const { getValueForOperator: Bs } = Gi, Gu = (t) => {
|
|
|
2467
2467
|
manualIds: u,
|
|
2468
2468
|
fixedHeight: p
|
|
2469
2469
|
} = t, [m, g] = F(!1), [h, y] = F(), [v, b] = F(0), [w, I] = F(), [x, k] = F(), [T, _] = F(), [A, $] = F(), [R] = _e(
|
|
2470
|
-
|
|
2470
|
+
V.getHandler().searchAllIds
|
|
2471
2471
|
), [S] = _e(
|
|
2472
|
-
|
|
2472
|
+
V.getHandler().readObjects
|
|
2473
2473
|
), [O] = _e(
|
|
2474
|
-
|
|
2474
|
+
V.getHandler().searchCount
|
|
2475
2475
|
), [E] = _e(
|
|
2476
|
-
|
|
2476
|
+
V.getHandler().evalDomain
|
|
2477
2477
|
), [C] = _e(
|
|
2478
|
-
|
|
2478
|
+
V.getHandler().parseCondition
|
|
2479
2479
|
);
|
|
2480
2480
|
ie(() => {
|
|
2481
2481
|
j();
|
|
2482
2482
|
}, [e, o]);
|
|
2483
2483
|
async function P({
|
|
2484
|
-
domain:
|
|
2484
|
+
domain: N,
|
|
2485
2485
|
isTotal: L
|
|
2486
2486
|
}) {
|
|
2487
2487
|
if (L)
|
|
2488
|
-
return await M({ domain:
|
|
2488
|
+
return await M({ domain: N });
|
|
2489
2489
|
if (d && f) {
|
|
2490
2490
|
const B = u || await R({
|
|
2491
|
-
params:
|
|
2491
|
+
params: N,
|
|
2492
2492
|
model: e,
|
|
2493
2493
|
context: r
|
|
2494
2494
|
}), U = await S({
|
|
@@ -2504,14 +2504,14 @@ const { getValueForOperator: Bs } = Gi, Gu = (t) => {
|
|
|
2504
2504
|
} else
|
|
2505
2505
|
return u ? u.length : await O({
|
|
2506
2506
|
model: e,
|
|
2507
|
-
params:
|
|
2507
|
+
params: N,
|
|
2508
2508
|
context: r
|
|
2509
2509
|
});
|
|
2510
2510
|
}
|
|
2511
|
-
async function M({ domain:
|
|
2511
|
+
async function M({ domain: N }) {
|
|
2512
2512
|
if (d && f) {
|
|
2513
2513
|
const L = await R({
|
|
2514
|
-
params:
|
|
2514
|
+
params: N,
|
|
2515
2515
|
model: e,
|
|
2516
2516
|
context: r
|
|
2517
2517
|
}), B = await S({
|
|
@@ -2527,13 +2527,13 @@ const { getValueForOperator: Bs } = Gi, Gu = (t) => {
|
|
|
2527
2527
|
} else
|
|
2528
2528
|
return await O({
|
|
2529
2529
|
model: e,
|
|
2530
|
-
params:
|
|
2530
|
+
params: N,
|
|
2531
2531
|
context: r
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
async function j() {
|
|
2535
2535
|
g(!0), $(void 0);
|
|
2536
|
-
let
|
|
2536
|
+
let N, L;
|
|
2537
2537
|
try {
|
|
2538
2538
|
const B = await P({ domain: n, isTotal: !1 });
|
|
2539
2539
|
if (y(B), i) {
|
|
@@ -2542,12 +2542,12 @@ const { getValueForOperator: Bs } = Gi, Gu = (t) => {
|
|
|
2542
2542
|
values: {},
|
|
2543
2543
|
context: r
|
|
2544
2544
|
});
|
|
2545
|
-
|
|
2545
|
+
N = await P({
|
|
2546
2546
|
domain: U,
|
|
2547
2547
|
isTotal: !0
|
|
2548
|
-
}), I(
|
|
2548
|
+
}), I(N);
|
|
2549
2549
|
}
|
|
2550
|
-
if (
|
|
2550
|
+
if (N ? (L = Math.round(B / N * 100 * 100) / 100, b(L)) : b(0), o) {
|
|
2551
2551
|
const U = await C({
|
|
2552
2552
|
condition: o,
|
|
2553
2553
|
values: { value: B, percent: L },
|
|
@@ -2594,10 +2594,10 @@ const { getValueForOperator: Bs } = Gi, Gu = (t) => {
|
|
|
2594
2594
|
uninformedString: a,
|
|
2595
2595
|
manualIds: l
|
|
2596
2596
|
} = t, [c, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = _e(
|
|
2597
|
-
|
|
2597
|
+
V.getHandler().getFields
|
|
2598
2598
|
), [w] = _e(
|
|
2599
|
-
|
|
2600
|
-
), [I] = _e(
|
|
2599
|
+
V.getHandler().readObjects
|
|
2600
|
+
), [I] = _e(V.getHandler().search), x = D(async () => {
|
|
2601
2601
|
d(!0), u(void 0), v(n.type || "line");
|
|
2602
2602
|
const k = zu({ ooui: n });
|
|
2603
2603
|
let T, _;
|
|
@@ -2752,7 +2752,7 @@ async function Us({
|
|
|
2752
2752
|
});
|
|
2753
2753
|
const c = await Promise.all(
|
|
2754
2754
|
Object.entries(l).map(async ([f, u]) => {
|
|
2755
|
-
const p = await
|
|
2755
|
+
const p = await V.getHandler().execute({
|
|
2756
2756
|
action: "name_get",
|
|
2757
2757
|
payload: u,
|
|
2758
2758
|
model: f,
|
|
@@ -3348,7 +3348,7 @@ function Na(t) {
|
|
|
3348
3348
|
] });
|
|
3349
3349
|
}
|
|
3350
3350
|
async function ls(t, e, n) {
|
|
3351
|
-
const r = (await
|
|
3351
|
+
const r = (await V.getHandler().getLogInfo({
|
|
3352
3352
|
model: t,
|
|
3353
3353
|
ids: [e]
|
|
3354
3354
|
}))[0], { create_date: o, create_uid: i, id: a, write_date: l, write_uid: c } = r;
|
|
@@ -3475,7 +3475,7 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3475
3475
|
), { openAction: d } = c || {}, f = K([]), { t: u } = ye(), { showErrorNotification: p } = ht(), m = is(
|
|
3476
3476
|
Dt.FEATURE_LOGGABLE_ACTIONS
|
|
3477
3477
|
), [g, h] = _e(
|
|
3478
|
-
|
|
3478
|
+
V.getHandler().logAction
|
|
3479
3479
|
);
|
|
3480
3480
|
ie(() => () => {
|
|
3481
3481
|
h();
|
|
@@ -3493,7 +3493,7 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3493
3493
|
context: P,
|
|
3494
3494
|
model: M,
|
|
3495
3495
|
datas: j = {},
|
|
3496
|
-
report_name:
|
|
3496
|
+
report_name: N,
|
|
3497
3497
|
type: L
|
|
3498
3498
|
} = S;
|
|
3499
3499
|
if (L !== "ir.actions.report.xml") {
|
|
@@ -3510,9 +3510,9 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3510
3510
|
values: E
|
|
3511
3511
|
}) : P;
|
|
3512
3512
|
try {
|
|
3513
|
-
const q = await
|
|
3513
|
+
const q = await V.getHandler().createReport({
|
|
3514
3514
|
model: M,
|
|
3515
|
-
name:
|
|
3515
|
+
name: N,
|
|
3516
3516
|
datas: j,
|
|
3517
3517
|
ids: U,
|
|
3518
3518
|
context: { ...C, ...J }
|
|
@@ -3527,7 +3527,7 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3527
3527
|
async function x(R) {
|
|
3528
3528
|
let S;
|
|
3529
3529
|
try {
|
|
3530
|
-
if (S = await
|
|
3530
|
+
if (S = await V.getHandler().getReport({
|
|
3531
3531
|
id: R
|
|
3532
3532
|
}), S.state && i.current === !0) {
|
|
3533
3533
|
i.current = !1, clearInterval(o.current), l(!1);
|
|
@@ -3575,7 +3575,7 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3575
3575
|
}) {
|
|
3576
3576
|
var B;
|
|
3577
3577
|
let C = R;
|
|
3578
|
-
R.res_model || (C = (await
|
|
3578
|
+
R.res_model || (C = (await V.getHandler().readObjects({
|
|
3579
3579
|
model: "ir.actions.act_window",
|
|
3580
3580
|
ids: [parseInt(R.id)],
|
|
3581
3581
|
context: E
|
|
@@ -3588,9 +3588,9 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3588
3588
|
...E,
|
|
3589
3589
|
...M
|
|
3590
3590
|
};
|
|
3591
|
-
let
|
|
3591
|
+
let N = [];
|
|
3592
3592
|
const L = C.domain;
|
|
3593
|
-
if (C.domain && (
|
|
3593
|
+
if (C.domain && (N = await V.getHandler().evalDomain({
|
|
3594
3594
|
domain: C.domain,
|
|
3595
3595
|
values: bn({
|
|
3596
3596
|
fields: S,
|
|
@@ -3599,14 +3599,14 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3599
3599
|
fields: S,
|
|
3600
3600
|
context: j
|
|
3601
3601
|
})), C.target === "new") {
|
|
3602
|
-
const U = await
|
|
3602
|
+
const U = await V.getHandler().getView({
|
|
3603
3603
|
model: C.res_model,
|
|
3604
3604
|
type: "form",
|
|
3605
3605
|
id: ((B = C == null ? void 0 : C.view_id) == null ? void 0 : B[0]) || void 0,
|
|
3606
3606
|
context: j
|
|
3607
3607
|
});
|
|
3608
3608
|
return _({
|
|
3609
|
-
domain:
|
|
3609
|
+
domain: N,
|
|
3610
3610
|
model: C.res_model,
|
|
3611
3611
|
formView: U,
|
|
3612
3612
|
context: j,
|
|
@@ -3622,7 +3622,7 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3622
3622
|
return d == null || d({
|
|
3623
3623
|
target: "current",
|
|
3624
3624
|
context: j,
|
|
3625
|
-
domain:
|
|
3625
|
+
domain: N,
|
|
3626
3626
|
model: C.res_model,
|
|
3627
3627
|
views: J,
|
|
3628
3628
|
title: C.name,
|
|
@@ -3655,8 +3655,8 @@ const wn = Zt.createContext(null), zs = async (t) => {
|
|
|
3655
3655
|
action_id: M,
|
|
3656
3656
|
context: E
|
|
3657
3657
|
});
|
|
3658
|
-
} catch (
|
|
3659
|
-
console.error(
|
|
3658
|
+
} catch (N) {
|
|
3659
|
+
console.error(N);
|
|
3660
3660
|
}
|
|
3661
3661
|
y ? A({ domain: R, model: S, formView: O, context: E, actionData: C }) : (w({ domain: R, model: S, context: E, formView: O, actionData: C }), v(!0));
|
|
3662
3662
|
}
|
|
@@ -3745,7 +3745,7 @@ async function Cf({
|
|
|
3745
3745
|
let a;
|
|
3746
3746
|
if (t)
|
|
3747
3747
|
for (const l of t) {
|
|
3748
|
-
const c = await
|
|
3748
|
+
const c = await V.getHandler().getView({
|
|
3749
3749
|
model: n,
|
|
3750
3750
|
type: l[1],
|
|
3751
3751
|
id: l[0],
|
|
@@ -3756,7 +3756,7 @@ async function Cf({
|
|
|
3756
3756
|
else {
|
|
3757
3757
|
const l = e.split(",");
|
|
3758
3758
|
for (const c of l) {
|
|
3759
|
-
const d = await
|
|
3759
|
+
const d = await V.getHandler().getView({
|
|
3760
3760
|
model: n,
|
|
3761
3761
|
type: c,
|
|
3762
3762
|
context: r
|
|
@@ -3821,7 +3821,7 @@ const Tf = Nt(xf), La = ({
|
|
|
3821
3821
|
selectedRowItems: n,
|
|
3822
3822
|
onRefreshParentValues: r
|
|
3823
3823
|
}), [c, d] = F(null), [f, u] = F(!1), [p] = _e(
|
|
3824
|
-
|
|
3824
|
+
V.getHandler().getToolbar
|
|
3825
3825
|
), m = i || c, g = D(async () => {
|
|
3826
3826
|
if (i || c != null && c.action || c != null && c.print)
|
|
3827
3827
|
return m;
|
|
@@ -4037,7 +4037,7 @@ function Df({
|
|
|
4037
4037
|
permissions: C
|
|
4038
4038
|
} = me(_t), P = en(
|
|
4039
4039
|
Dt.FEATURE_ADVANCED_EXPORT
|
|
4040
|
-
), { t: M } = ye(), [j,
|
|
4040
|
+
), { t: M } = ye(), [j, N] = F(!1), L = K(!0), { showErrorNotification: B } = ht(), U = D(() => {
|
|
4041
4041
|
var Y;
|
|
4042
4042
|
(Y = m == null ? void 0 : m.current) == null || Y.refreshResults();
|
|
4043
4043
|
}, [m]), { actionButtonProps: J, printButtonProps: q } = Ha({
|
|
@@ -4058,7 +4058,7 @@ function Df({
|
|
|
4058
4058
|
try {
|
|
4059
4059
|
u == null || u(!0);
|
|
4060
4060
|
const le = l[0].id;
|
|
4061
|
-
await
|
|
4061
|
+
await V.getHandler().duplicate({
|
|
4062
4062
|
id: le,
|
|
4063
4063
|
model: p,
|
|
4064
4064
|
context: { ...t }
|
|
@@ -4078,7 +4078,7 @@ function Df({
|
|
|
4078
4078
|
]), G = D(async () => {
|
|
4079
4079
|
var Y;
|
|
4080
4080
|
try {
|
|
4081
|
-
c == null || c(!0), await
|
|
4081
|
+
c == null || c(!0), await V.getHandler().deleteObjects({
|
|
4082
4082
|
model: p,
|
|
4083
4083
|
ids: l.map((le) => le.id),
|
|
4084
4084
|
context: { ...t }
|
|
@@ -4135,7 +4135,7 @@ function Df({
|
|
|
4135
4135
|
);
|
|
4136
4136
|
return;
|
|
4137
4137
|
}
|
|
4138
|
-
|
|
4138
|
+
N(!0);
|
|
4139
4139
|
},
|
|
4140
4140
|
[p, t, _, se, l]
|
|
4141
4141
|
);
|
|
@@ -4297,7 +4297,7 @@ function Df({
|
|
|
4297
4297
|
Xy,
|
|
4298
4298
|
{
|
|
4299
4299
|
visible: j,
|
|
4300
|
-
onClose: () =>
|
|
4300
|
+
onClose: () => N(!1),
|
|
4301
4301
|
model: p,
|
|
4302
4302
|
domain: Q,
|
|
4303
4303
|
limit: A,
|
|
@@ -4452,7 +4452,7 @@ const { useToken: kf } = nt, { Title: $f, Text: wr } = an, Xr = ({
|
|
|
4452
4452
|
enabled: o = !0
|
|
4453
4453
|
}) => {
|
|
4454
4454
|
const [i, a] = F(!0), [l, c] = F(), [d, f] = F(), u = K(!1), [p, m] = _e(
|
|
4455
|
-
|
|
4455
|
+
V.getHandler().getView
|
|
4456
4456
|
), { showErrorNotification: g } = ht();
|
|
4457
4457
|
ze(() => (o && h(), () => {
|
|
4458
4458
|
m();
|
|
@@ -4517,9 +4517,9 @@ const { useToken: kf } = nt, { Title: $f, Text: wr } = an, Xr = ({
|
|
|
4517
4517
|
n(), o();
|
|
4518
4518
|
}, []);
|
|
4519
4519
|
const [e, n] = _e(
|
|
4520
|
-
|
|
4520
|
+
V.getHandler().readUserViewPrefs
|
|
4521
4521
|
), [r, o] = _e(
|
|
4522
|
-
|
|
4522
|
+
V.getHandler().saveUserViewPrefs
|
|
4523
4523
|
), i = Rt(async () => {
|
|
4524
4524
|
if (!t)
|
|
4525
4525
|
throw new Error("Unknown column state key");
|
|
@@ -4625,7 +4625,7 @@ const { useToken: kf } = nt, { Title: $f, Text: wr } = an, Xr = ({
|
|
|
4625
4625
|
showEmptyValues: r
|
|
4626
4626
|
}) => {
|
|
4627
4627
|
const [o, i] = F(), [a, l] = F(!1), [c, d] = _e(
|
|
4628
|
-
|
|
4628
|
+
V.getHandler().readAggregates
|
|
4629
4629
|
), f = kn(() => {
|
|
4630
4630
|
if (t)
|
|
4631
4631
|
return t.columns.filter((m) => Object.keys(m).some((g) => {
|
|
@@ -6044,8 +6044,8 @@ const ws = /* @__PURE__ */ fa(Ih), Tl = Nt(
|
|
|
6044
6044
|
return R.filter((E) => _ ? O[E.id] === !0 : !0).sort((E, C) => {
|
|
6045
6045
|
const P = E, M = C;
|
|
6046
6046
|
if (_) {
|
|
6047
|
-
const j = b.indexOf(P.id),
|
|
6048
|
-
return j -
|
|
6047
|
+
const j = b.indexOf(P.id), N = b.indexOf(M.id);
|
|
6048
|
+
return j - N;
|
|
6049
6049
|
}
|
|
6050
6050
|
return kr(P.label).localeCompare(
|
|
6051
6051
|
kr(M.label)
|
|
@@ -6672,9 +6672,9 @@ const or = ({
|
|
|
6672
6672
|
results: d,
|
|
6673
6673
|
onRecordsUpdated: f
|
|
6674
6674
|
} = t, u = te(() => c != null && c.field_parent ? { ...c == null ? void 0 : c.fields, [c == null ? void 0 : c.field_parent]: {} } : c == null ? void 0 : c.fields, [c]), p = (c == null ? void 0 : c.fields_in_conditions) !== void 0, m = K(null), [g, h] = F(!0), [y, v] = _e(
|
|
6675
|
-
|
|
6675
|
+
V.getHandler().readObjects
|
|
6676
6676
|
), [b, w] = _e(
|
|
6677
|
-
|
|
6677
|
+
V.getHandler().parseConditions
|
|
6678
6678
|
), I = Ss(), x = K({}), k = D(
|
|
6679
6679
|
(S, O) => O ? o == null ? void 0 : o.some(
|
|
6680
6680
|
(E) => JSON.stringify(S[E]) !== JSON.stringify(O[E])
|
|
@@ -6704,19 +6704,19 @@ const or = ({
|
|
|
6704
6704
|
fieldsToRetrieve: o,
|
|
6705
6705
|
context: r
|
|
6706
6706
|
}), P = sn(a, C), M = P.filter((j) => {
|
|
6707
|
-
const
|
|
6708
|
-
return k(j,
|
|
6707
|
+
const N = x.current[j.id];
|
|
6708
|
+
return k(j, N);
|
|
6709
6709
|
});
|
|
6710
6710
|
if (p && l && a && T() && M.length > 0) {
|
|
6711
6711
|
const j = or({
|
|
6712
6712
|
treeOoui: a
|
|
6713
|
-
}),
|
|
6713
|
+
}), N = M.map((L) => ({ ...d == null ? void 0 : d.find(
|
|
6714
6714
|
(U) => U.id === L.id
|
|
6715
6715
|
), ...L }));
|
|
6716
6716
|
try {
|
|
6717
6717
|
const L = await b({
|
|
6718
6718
|
conditions: j,
|
|
6719
|
-
values:
|
|
6719
|
+
values: N,
|
|
6720
6720
|
context: r
|
|
6721
6721
|
});
|
|
6722
6722
|
l(L, a), M.forEach((B) => {
|
|
@@ -6786,7 +6786,7 @@ const or = ({
|
|
|
6786
6786
|
const [f, u] = F(!1), p = K([]), m = e == null ? void 0 : e.fields, g = (e == null ? void 0 : e.fields_in_conditions) !== void 0, [h, y] = F(
|
|
6787
6787
|
/* @__PURE__ */ new Set()
|
|
6788
6788
|
), v = K(/* @__PURE__ */ new Set()), b = K([]), w = K(null), [I, x] = F(!0), [k, T] = _e(
|
|
6789
|
-
async (L) =>
|
|
6789
|
+
async (L) => V.getHandler().processSearchResults({
|
|
6790
6790
|
searchIds: L.searchIds,
|
|
6791
6791
|
model: t,
|
|
6792
6792
|
fieldsToRetrieve: L.fieldsToRetrieve,
|
|
@@ -6794,7 +6794,7 @@ const or = ({
|
|
|
6794
6794
|
fields: m
|
|
6795
6795
|
})
|
|
6796
6796
|
), [_, A] = _e(
|
|
6797
|
-
|
|
6797
|
+
V.getHandler().parseConditions
|
|
6798
6798
|
), $ = Ss();
|
|
6799
6799
|
ie(() => {
|
|
6800
6800
|
o === !1 && M(), (o === void 0 || o === !0) && !$ && M(), (o === void 0 || o === !0) && $ && j();
|
|
@@ -6914,7 +6914,7 @@ const or = ({
|
|
|
6914
6914
|
x(!1), w.current && (clearInterval(w.current), w.current = null), T(), A();
|
|
6915
6915
|
}, [T, A]), j = D(() => {
|
|
6916
6916
|
g && x(!0);
|
|
6917
|
-
}, [g]),
|
|
6917
|
+
}, [g]), N = D((L) => {
|
|
6918
6918
|
if (!L || L.length === 0)
|
|
6919
6919
|
return;
|
|
6920
6920
|
const B = [...b.current];
|
|
@@ -6934,8 +6934,8 @@ const or = ({
|
|
|
6934
6934
|
}), b.current = B;
|
|
6935
6935
|
}, []);
|
|
6936
6936
|
return ie(() => {
|
|
6937
|
-
d && d(
|
|
6938
|
-
}, [d,
|
|
6937
|
+
d && d(N);
|
|
6938
|
+
}, [d, N]), {
|
|
6939
6939
|
refresh: () => {
|
|
6940
6940
|
y(/* @__PURE__ */ new Set()), b.current = [], v.current.clear();
|
|
6941
6941
|
},
|
|
@@ -6945,7 +6945,7 @@ const or = ({
|
|
|
6945
6945
|
pause: M,
|
|
6946
6946
|
resume: j,
|
|
6947
6947
|
onHasFunctionFieldsToParseConditions: R,
|
|
6948
|
-
syncExternalRecordUpdates:
|
|
6948
|
+
syncExternalRecordUpdates: N
|
|
6949
6949
|
};
|
|
6950
6950
|
}, El = ({
|
|
6951
6951
|
onFilterSearchClick: t
|
|
@@ -7180,13 +7180,13 @@ const Nh = (t) => /* @__PURE__ */ s(Le, { ...t, children: /* @__PURE__ */ s(Dl,
|
|
|
7180
7180
|
), { openRelate: d, openAction: f } = c || {}, u = me(
|
|
7181
7181
|
wn
|
|
7182
7182
|
), { processAction: p } = u || {}, [m, g] = _e(
|
|
7183
|
-
|
|
7183
|
+
V.getHandler().getView
|
|
7184
7184
|
), [h, y] = _e(
|
|
7185
|
-
|
|
7185
|
+
V.getHandler().getToolbar
|
|
7186
7186
|
), [v, b] = _e(
|
|
7187
|
-
|
|
7187
|
+
V.getHandler().getFields
|
|
7188
7188
|
), [w, I] = _e(
|
|
7189
|
-
|
|
7189
|
+
V.getHandler().readObjects
|
|
7190
7190
|
), x = en(
|
|
7191
7191
|
Dt.FEATURE_GET_TOOLBAR
|
|
7192
7192
|
), k = D(() => {
|
|
@@ -7336,7 +7336,7 @@ const uw = Object.values(yn), Wh = (t) => {
|
|
|
7336
7336
|
if (!e || e && o && a)
|
|
7337
7337
|
return;
|
|
7338
7338
|
l(!0);
|
|
7339
|
-
const h = (await
|
|
7339
|
+
const h = (await V.getHandler().execute({
|
|
7340
7340
|
action: "name_get",
|
|
7341
7341
|
payload: [f],
|
|
7342
7342
|
model: c,
|
|
@@ -7375,7 +7375,7 @@ function Yh(t) {
|
|
|
7375
7375
|
const zh = (t) => /* @__PURE__ */ s(Le, { ...t, children: /* @__PURE__ */ s(Pl, { ...t }) }), Pl = (t) => {
|
|
7376
7376
|
var m;
|
|
7377
7377
|
const { t: e } = ye(), [n, r] = _e(
|
|
7378
|
-
|
|
7378
|
+
V.getHandler().readObjects
|
|
7379
7379
|
), { getFieldValue: o } = me(Je) || {}, { ooui: i, value: a } = t, [l, c] = F("default");
|
|
7380
7380
|
let d = a, f = dr, u = a;
|
|
7381
7381
|
i.selectionValues.size ? d = i.selectionValues.get(a) : Array.isArray(a) ? (u = a[0], d = a[1]) : i.fieldType === "boolean" && (d = a ? Yh(i.label) : `${e("not")} ${i.label.toLowerCase()}`, f = Du);
|
|
@@ -7694,7 +7694,7 @@ const zh = (t) => /* @__PURE__ */ s(Le, { ...t, children: /* @__PURE__ */ s(Pl,
|
|
|
7694
7694
|
context: r
|
|
7695
7695
|
}) => {
|
|
7696
7696
|
const [o, i] = F([]), [a, l] = F(!1), [c, d] = _e(
|
|
7697
|
-
|
|
7697
|
+
V.getHandler().readObjects
|
|
7698
7698
|
), { relation: f, field: u } = n, p = D(async () => {
|
|
7699
7699
|
try {
|
|
7700
7700
|
l(!0);
|
|
@@ -7800,11 +7800,11 @@ function hg(t, e) {
|
|
|
7800
7800
|
elementRef: T,
|
|
7801
7801
|
offset: pg
|
|
7802
7802
|
}), [A, $] = _e(
|
|
7803
|
-
|
|
7803
|
+
V.getHandler().searchCount
|
|
7804
7804
|
), [R, S] = _e(
|
|
7805
|
-
|
|
7805
|
+
V.getHandler().searchForTree
|
|
7806
7806
|
), [O, E] = _e(
|
|
7807
|
-
|
|
7807
|
+
V.getHandler().searchAllIds
|
|
7808
7808
|
);
|
|
7809
7809
|
ie(() => () => {
|
|
7810
7810
|
$(), S(), E();
|
|
@@ -7816,7 +7816,7 @@ function hg(t, e) {
|
|
|
7816
7816
|
context: d
|
|
7817
7817
|
}), {
|
|
7818
7818
|
setTreeIsLoading: j,
|
|
7819
|
-
searchVisible:
|
|
7819
|
+
searchVisible: N,
|
|
7820
7820
|
setSearchVisible: L,
|
|
7821
7821
|
setSelectedRowItems: B,
|
|
7822
7822
|
setTreeFirstVisibleRow: U,
|
|
@@ -8160,14 +8160,14 @@ function hg(t, e) {
|
|
|
8160
8160
|
Ue,
|
|
8161
8161
|
le,
|
|
8162
8162
|
m
|
|
8163
|
-
]), Tn = K(Q), Pt = K(
|
|
8163
|
+
]), Tn = K(Q), Pt = K(N);
|
|
8164
8164
|
ze(() => {
|
|
8165
8165
|
const ue = !ws(
|
|
8166
8166
|
Q,
|
|
8167
8167
|
Tn.current
|
|
8168
|
-
), Ie = Pt.current && !
|
|
8169
|
-
ue && (Ie || p === "top") && Fn(), Tn.current = Q, Pt.current =
|
|
8170
|
-
}, [Q,
|
|
8168
|
+
), Ie = Pt.current && !N;
|
|
8169
|
+
ue && (Ie || p === "top") && Fn(), Tn.current = Q, Pt.current = N;
|
|
8170
|
+
}, [Q, N]);
|
|
8171
8171
|
const Fn = D(async () => {
|
|
8172
8172
|
var ue;
|
|
8173
8173
|
et([]), rt(), Ye(), $e.current = void 0, x(!1), (ue = g == null ? void 0 : g.current) == null || ue.refresh(), we();
|
|
@@ -8230,7 +8230,7 @@ function hg(t, e) {
|
|
|
8230
8230
|
]
|
|
8231
8231
|
), Wt = te(
|
|
8232
8232
|
() => ({
|
|
8233
|
-
isOpen:
|
|
8233
|
+
isOpen: N,
|
|
8234
8234
|
fields: { ...P == null ? void 0 : P.fields, ...C == null ? void 0 : C.fields },
|
|
8235
8235
|
searchFields: Vn([
|
|
8236
8236
|
P == null ? void 0 : P.search_fields,
|
|
@@ -8239,7 +8239,7 @@ function hg(t, e) {
|
|
|
8239
8239
|
searchValues: ee
|
|
8240
8240
|
}),
|
|
8241
8241
|
[
|
|
8242
|
-
|
|
8242
|
+
N,
|
|
8243
8243
|
P == null ? void 0 : P.fields,
|
|
8244
8244
|
P == null ? void 0 : P.search_fields,
|
|
8245
8245
|
C == null ? void 0 : C.fields,
|
|
@@ -8383,7 +8383,7 @@ const Vl = Nt(hg), Di = (t, e = "14px -apple-system") => {
|
|
|
8383
8383
|
onSelectAllRecords: T
|
|
8384
8384
|
} = t, _ = K(null), [A, $] = F([]), R = K(!1), [S, O] = F(), { t: E } = ye(), C = K(r), P = me(
|
|
8385
8385
|
_t
|
|
8386
|
-
), { title: M = void 0, setTitle: j = void 0 } = (I ? P : {}) || {},
|
|
8386
|
+
), { title: M = void 0, setTitle: j = void 0 } = (I ? P : {}) || {}, N = en(
|
|
8387
8387
|
Dt.FEATURE_MANY2ONE_SORT
|
|
8388
8388
|
), L = te(() => {
|
|
8389
8389
|
if (S)
|
|
@@ -8393,9 +8393,9 @@ const Vl = Nt(hg), Di = (t, e = "14px -apple-system") => {
|
|
|
8393
8393
|
...Ts
|
|
8394
8394
|
},
|
|
8395
8395
|
x,
|
|
8396
|
-
|
|
8396
|
+
N
|
|
8397
8397
|
);
|
|
8398
|
-
}, [S, x,
|
|
8398
|
+
}, [S, x, N]);
|
|
8399
8399
|
Ht(e, () => ({
|
|
8400
8400
|
unselectAll: () => {
|
|
8401
8401
|
var G;
|
|
@@ -8533,13 +8533,13 @@ const Ll = (t) => {
|
|
|
8533
8533
|
searchParams: k = [],
|
|
8534
8534
|
setSearchValues: T,
|
|
8535
8535
|
clearSelection: _
|
|
8536
|
-
} = t, [A, $] = F(!1), [R, S] = F(!1), [O, E] = F(), [C, P] = F(1), [M, j] = F(0), [
|
|
8536
|
+
} = t, [A, $] = F(!1), [R, S] = F(!1), [O, E] = F(), [C, P] = F(1), [M, j] = F(0), [N, L] = F(), [B, U] = F([]), [J, q] = F(void 0), [se, ee] = F(void 0), Q = K(I || St), re = K([]), G = D(
|
|
8537
8537
|
(he) => {
|
|
8538
8538
|
y == null || y([...he]), U([...he]);
|
|
8539
8539
|
},
|
|
8540
8540
|
[y]
|
|
8541
8541
|
), oe = D(() => v || B, [v, B]), ae = D(async () => {
|
|
8542
|
-
const he = await
|
|
8542
|
+
const he = await V.getHandler().nameSearch({
|
|
8543
8543
|
model: e,
|
|
8544
8544
|
payload: l,
|
|
8545
8545
|
limit: Q.current,
|
|
@@ -8549,7 +8549,7 @@ const Ll = (t) => {
|
|
|
8549
8549
|
if (L(he.length), f == null || f(he.length), he.length > 0) {
|
|
8550
8550
|
const $e = he.map((Xe) => Xe == null ? void 0 : Xe[0]), { colors: Re, status: De } = Jt(u), Ce = {};
|
|
8551
8551
|
Re && (Ce.colors = Re), De && (Ce.status = De);
|
|
8552
|
-
const Te = await
|
|
8552
|
+
const Te = await V.getHandler().readEvalUiObjects({
|
|
8553
8553
|
model: e,
|
|
8554
8554
|
ids: $e,
|
|
8555
8555
|
arch: u == null ? void 0 : u.arch,
|
|
@@ -8583,7 +8583,7 @@ const Ll = (t) => {
|
|
|
8583
8583
|
async (he) => {
|
|
8584
8584
|
const { params: $e, newOffset: Re } = he || {}, De = Xt($e || k, b), { colors: Ce, status: Te } = Jt(u), je = {};
|
|
8585
8585
|
Ce && (je.colors = Ce), Te && (je.status = Te);
|
|
8586
|
-
const { totalItems: Qe, results: rt, attrsEvaluated: Xe } = await
|
|
8586
|
+
const { totalItems: Qe, results: rt, attrsEvaluated: Xe } = await V.getHandler().searchForTree({
|
|
8587
8587
|
params: De,
|
|
8588
8588
|
limit: Q.current,
|
|
8589
8589
|
offset: Re || M,
|
|
@@ -8697,7 +8697,7 @@ const Ll = (t) => {
|
|
|
8697
8697
|
I
|
|
8698
8698
|
]), fe = D(
|
|
8699
8699
|
async (he) => {
|
|
8700
|
-
const $e = he[(u == null ? void 0 : u.field_parent) || "child_id"], Re = await
|
|
8700
|
+
const $e = he[(u == null ? void 0 : u.field_parent) || "child_id"], Re = await V.getHandler().readObjects({
|
|
8701
8701
|
model: e,
|
|
8702
8702
|
ids: $e,
|
|
8703
8703
|
fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
|
|
@@ -8706,12 +8706,12 @@ const Ll = (t) => {
|
|
|
8706
8706
|
return G([...oe(), ...Re]), sn(Jt(u), Re);
|
|
8707
8707
|
},
|
|
8708
8708
|
[u, e, d, oe, G]
|
|
8709
|
-
), Fe = D(async () => await
|
|
8709
|
+
), Fe = D(async () => await V.getHandler().searchAllIds({
|
|
8710
8710
|
params: Xt(k, b),
|
|
8711
8711
|
model: e,
|
|
8712
8712
|
context: d,
|
|
8713
|
-
totalItems:
|
|
8714
|
-
}), [e, d,
|
|
8713
|
+
totalItems: N
|
|
8714
|
+
}), [e, d, N, k, b]);
|
|
8715
8715
|
return {
|
|
8716
8716
|
submit: Y,
|
|
8717
8717
|
clear: ve,
|
|
@@ -8728,7 +8728,7 @@ const Ll = (t) => {
|
|
|
8728
8728
|
fetchChildrenForRecord: fe,
|
|
8729
8729
|
colorsForResults: J,
|
|
8730
8730
|
statusForResults: se,
|
|
8731
|
-
totalItems:
|
|
8731
|
+
totalItems: N,
|
|
8732
8732
|
getAllIds: Fe
|
|
8733
8733
|
};
|
|
8734
8734
|
};
|
|
@@ -8752,7 +8752,7 @@ function bg(t, e) {
|
|
|
8752
8752
|
_t
|
|
8753
8753
|
), {
|
|
8754
8754
|
setResults: j = void 0,
|
|
8755
|
-
setCurrentItemIndex:
|
|
8755
|
+
setCurrentItemIndex: N = void 0,
|
|
8756
8756
|
currentId: L = void 0,
|
|
8757
8757
|
results: B = void 0,
|
|
8758
8758
|
selectedRowItems: U = void 0,
|
|
@@ -8809,7 +8809,7 @@ function bg(t, e) {
|
|
|
8809
8809
|
treeView: x,
|
|
8810
8810
|
sorter: re,
|
|
8811
8811
|
setSorter: G,
|
|
8812
|
-
setCurrentItemIndex:
|
|
8812
|
+
setCurrentItemIndex: N,
|
|
8813
8813
|
setResultsActionView: j,
|
|
8814
8814
|
resultsActionView: B,
|
|
8815
8815
|
domain: c,
|
|
@@ -8839,13 +8839,13 @@ function bg(t, e) {
|
|
|
8839
8839
|
}, st = async () => {
|
|
8840
8840
|
I(n);
|
|
8841
8841
|
let Ve = r;
|
|
8842
|
-
r || (Ve = await
|
|
8842
|
+
r || (Ve = await V.getHandler().getView({
|
|
8843
8843
|
model: n,
|
|
8844
8844
|
type: "form",
|
|
8845
8845
|
context: u
|
|
8846
8846
|
}));
|
|
8847
8847
|
let dt = o;
|
|
8848
|
-
o || (dt = await
|
|
8848
|
+
o || (dt = await V.getHandler().getView({
|
|
8849
8849
|
model: n,
|
|
8850
8850
|
type: "tree",
|
|
8851
8851
|
context: u
|
|
@@ -8862,7 +8862,7 @@ function bg(t, e) {
|
|
|
8862
8862
|
), be = D(
|
|
8863
8863
|
async (Ve) => {
|
|
8864
8864
|
const { id: dt } = Ve;
|
|
8865
|
-
O.current || (O.current = await
|
|
8865
|
+
O.current || (O.current = await V.getHandler().treeButOpen({
|
|
8866
8866
|
id: x.view_id,
|
|
8867
8867
|
model: w,
|
|
8868
8868
|
context: u
|
|
@@ -9022,12 +9022,12 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9022
9022
|
isActive: P,
|
|
9023
9023
|
currentPage: M,
|
|
9024
9024
|
setCurrentPage: j,
|
|
9025
|
-
order:
|
|
9025
|
+
order: N,
|
|
9026
9026
|
setOrder: L,
|
|
9027
9027
|
limit: B,
|
|
9028
9028
|
setLimit: U
|
|
9029
9029
|
} = Al({ useLocalState: !i }), { treeMaxLimit: J } = zt(), q = Math.min(B, J), [se, ee] = F(!0), [Q, re] = F(), [G, oe] = F([]), [ae, X] = F(!1), ne = a || $, de = K(ne), Y = K(_), le = K(g), ve = K(), fe = K([]), Fe = K(!1), he = (r == null ? void 0 : r.fields_in_conditions) !== void 0, $e = te(() => qa({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), [Re, De] = _e(
|
|
9030
|
-
|
|
9030
|
+
V.getHandler().parseConditions
|
|
9031
9031
|
), {
|
|
9032
9032
|
fetchColumnState: Ce,
|
|
9033
9033
|
loading: Te,
|
|
@@ -9079,11 +9079,11 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9079
9079
|
results: O,
|
|
9080
9080
|
onRecordsUpdated: st
|
|
9081
9081
|
}), { showErrorNotification: be } = ht(), [ce, Pe] = _e(
|
|
9082
|
-
|
|
9082
|
+
V.getHandler().searchCount
|
|
9083
9083
|
), [Oe, He] = _e(
|
|
9084
|
-
|
|
9084
|
+
V.getHandler().searchForTree
|
|
9085
9085
|
), [Ft, gt] = _e(
|
|
9086
|
-
|
|
9086
|
+
V.getHandler().searchAllIds
|
|
9087
9087
|
), et = te(
|
|
9088
9088
|
() => Xt(_ || [], c),
|
|
9089
9089
|
[c, _]
|
|
@@ -9178,7 +9178,7 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9178
9178
|
M,
|
|
9179
9179
|
ne,
|
|
9180
9180
|
c,
|
|
9181
|
-
|
|
9181
|
+
N
|
|
9182
9182
|
]), ie(() => {
|
|
9183
9183
|
var Se;
|
|
9184
9184
|
if (ne !== de.current) {
|
|
@@ -9204,9 +9204,9 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9204
9204
|
try {
|
|
9205
9205
|
m(!0);
|
|
9206
9206
|
let Se;
|
|
9207
|
-
if (
|
|
9207
|
+
if (N != null && N.length) {
|
|
9208
9208
|
const at = Ir({
|
|
9209
|
-
state:
|
|
9209
|
+
state: N
|
|
9210
9210
|
});
|
|
9211
9211
|
Se = Rr(at);
|
|
9212
9212
|
}
|
|
@@ -9250,7 +9250,7 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9250
9250
|
n,
|
|
9251
9251
|
e,
|
|
9252
9252
|
m,
|
|
9253
|
-
|
|
9253
|
+
N,
|
|
9254
9254
|
ne,
|
|
9255
9255
|
c,
|
|
9256
9256
|
et,
|
|
@@ -9338,7 +9338,7 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9338
9338
|
(kt, [pn, $t]) => ($t != null && $t.is_function || (kt[pn] = $t), kt),
|
|
9339
9339
|
{}
|
|
9340
9340
|
));
|
|
9341
|
-
const ue = await
|
|
9341
|
+
const ue = await V.getHandler().readObjects({
|
|
9342
9342
|
model: o,
|
|
9343
9343
|
ids: Me,
|
|
9344
9344
|
fields: Ke,
|
|
@@ -9399,7 +9399,7 @@ const Hl = Nt(bg), wg = St, Sg = (t) => {
|
|
|
9399
9399
|
updateColumnState: Qe,
|
|
9400
9400
|
currentPage: M,
|
|
9401
9401
|
limit: q,
|
|
9402
|
-
order:
|
|
9402
|
+
order: N,
|
|
9403
9403
|
setOrder: L,
|
|
9404
9404
|
setTreeFirstVisibleColumn: I,
|
|
9405
9405
|
onGetFirstVisibleColumn: ut,
|
|
@@ -9575,7 +9575,7 @@ const Ao = (t) => {
|
|
|
9575
9575
|
const r = K(), o = me(
|
|
9576
9576
|
wn
|
|
9577
9577
|
), { processAction: i } = o || {}, [a, l] = _e(
|
|
9578
|
-
|
|
9578
|
+
V.getHandler().treeButOpen
|
|
9579
9579
|
), { showErrorNotification: c } = ht();
|
|
9580
9580
|
return ie(() => () => {
|
|
9581
9581
|
l();
|
|
@@ -9648,7 +9648,7 @@ function Ag(t, e) {
|
|
|
9648
9648
|
onRowHasBeenSelected: P,
|
|
9649
9649
|
onSearchFilterClear: M,
|
|
9650
9650
|
onSearchFilterSubmit: j,
|
|
9651
|
-
onSideSearchFilterClose:
|
|
9651
|
+
onSideSearchFilterClose: N,
|
|
9652
9652
|
onSideSearchFilterSubmit: L,
|
|
9653
9653
|
totalRowsLoading: B,
|
|
9654
9654
|
totalRows: U,
|
|
@@ -9726,7 +9726,7 @@ function Ag(t, e) {
|
|
|
9726
9726
|
searchValues: $,
|
|
9727
9727
|
onSearchFilterClear: M,
|
|
9728
9728
|
onSearchFilterSubmit: j,
|
|
9729
|
-
onSideSearchFilterClose:
|
|
9729
|
+
onSideSearchFilterClose: N,
|
|
9730
9730
|
onSideSearchFilterSubmit: L
|
|
9731
9731
|
}
|
|
9732
9732
|
),
|
|
@@ -9962,7 +9962,7 @@ const Ig = Nt(Ag), Ln = "legacy", Rg = (t) => {
|
|
|
9962
9962
|
permissions: E,
|
|
9963
9963
|
permissionsLoading: C,
|
|
9964
9964
|
permissionsError: P
|
|
9965
|
-
} = t, [M, j] = F(!1), [
|
|
9965
|
+
} = t, [M, j] = F(!1), [N, L] = F(!1), [B, U] = F(!1), [J, q] = F(!0), [se, ee] = F(!0), [Q, re] = F([]), [G, oe] = F(!1), [ae, X] = F(
|
|
9966
9966
|
R || []
|
|
9967
9967
|
), [ne, de] = F(!1), [Y, le] = F(!0), [ve, fe] = F(), [Fe, he] = F(
|
|
9968
9968
|
yf(
|
|
@@ -10007,7 +10007,7 @@ const Ig = Nt(Ag), Ln = "legacy", Rg = (t) => {
|
|
|
10007
10007
|
availableViews: i,
|
|
10008
10008
|
formIsSaving: M,
|
|
10009
10009
|
setFormIsSaving: j,
|
|
10010
|
-
formHasChanges:
|
|
10010
|
+
formHasChanges: N,
|
|
10011
10011
|
setFormHasChanges: L,
|
|
10012
10012
|
formRef: a,
|
|
10013
10013
|
searchTreeRef: l,
|
|
@@ -10185,7 +10185,7 @@ const Ig = Nt(Ag), Ln = "legacy", Rg = (t) => {
|
|
|
10185
10185
|
viewData: d
|
|
10186
10186
|
} = t, [f, u] = F(!1), [p, m] = F(), g = me(
|
|
10187
10187
|
_t
|
|
10188
|
-
), { setGraphIsLoading: h = void 0 } = g || {}, [y] = _e(
|
|
10188
|
+
), { setGraphIsLoading: h = void 0 } = g || {}, [y] = _e(V.getHandler().getView);
|
|
10189
10189
|
Ht(e, () => ({
|
|
10190
10190
|
refresh: () => {
|
|
10191
10191
|
v();
|
|
@@ -10253,7 +10253,7 @@ const Ig = Nt(Ag), Ln = "legacy", Rg = (t) => {
|
|
|
10253
10253
|
}
|
|
10254
10254
|
}, Wn = Nt(Og), Dg = (t) => {
|
|
10255
10255
|
const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: i } = t, [a, l] = F(!1), [c, d] = F(), [f, u] = F(), [p] = _e(
|
|
10256
|
-
|
|
10256
|
+
V.getHandler().readForView
|
|
10257
10257
|
), m = D(async () => {
|
|
10258
10258
|
l(!0), d(void 0), i && n.push(["id", "in", i]);
|
|
10259
10259
|
try {
|
|
@@ -10419,7 +10419,7 @@ const Ig = Nt(Ag), Ln = "legacy", Rg = (t) => {
|
|
|
10419
10419
|
o();
|
|
10420
10420
|
}, [e]);
|
|
10421
10421
|
async function o() {
|
|
10422
|
-
const i = await
|
|
10422
|
+
const i = await V.getHandler().search({
|
|
10423
10423
|
params: [],
|
|
10424
10424
|
model: e,
|
|
10425
10425
|
limit: 1
|
|
@@ -10437,10 +10437,10 @@ function $g(t) {
|
|
|
10437
10437
|
domain: i = [],
|
|
10438
10438
|
visible: a = !0,
|
|
10439
10439
|
parentContext: l = {}
|
|
10440
|
-
} = t, [c, d] = F(!1), [f, u] = F(!1), [p, m] = F(), [g, h] = F(), [y, v] = F(), [b, w] = F(1), [I, x] = F(0), k = K(St), T = K([]), [_, A] = F(0), [$, R] = F([]), [S, O] = F(void 0), [E, C] = F(), [P, M] = F(), [j,
|
|
10440
|
+
} = t, [c, d] = F(!1), [f, u] = F(!1), [p, m] = F(), [g, h] = F(), [y, v] = F(), [b, w] = F(1), [I, x] = F(0), k = K(St), T = K([]), [_, A] = F(0), [$, R] = F([]), [S, O] = F(void 0), [E, C] = F(), [P, M] = F(), [j, N] = F(), [L, B] = F(!1), U = K([]), J = (ae) => {
|
|
10441
10441
|
B(!0), w(ae), x((ae - 1) * k.current);
|
|
10442
10442
|
}, q = async () => {
|
|
10443
|
-
const ae = U.current.length > 0 ? U.current : i, X = Xt(T.current, ae), { colors: ne } = Jt(g), { totalItems: de, results: Y, attrsEvaluated: le } = await
|
|
10443
|
+
const ae = U.current.length > 0 ? U.current : i, X = Xt(T.current, ae), { colors: ne } = Jt(g), { totalItems: de, results: Y, attrsEvaluated: le } = await V.getHandler().searchForTree({
|
|
10444
10444
|
params: X,
|
|
10445
10445
|
limit: k.current,
|
|
10446
10446
|
offset: I,
|
|
@@ -10469,29 +10469,29 @@ function $g(t) {
|
|
|
10469
10469
|
f && a && se();
|
|
10470
10470
|
}, [b, I, f, a]);
|
|
10471
10471
|
const ee = async (ae) => {
|
|
10472
|
-
u(!1), d(!0),
|
|
10472
|
+
u(!1), d(!0), N(void 0);
|
|
10473
10473
|
try {
|
|
10474
10474
|
ae === "action" ? await Q() : await re(), u(!0);
|
|
10475
10475
|
} catch (X) {
|
|
10476
|
-
|
|
10476
|
+
N(X);
|
|
10477
10477
|
} finally {
|
|
10478
10478
|
d(!1);
|
|
10479
10479
|
}
|
|
10480
10480
|
}, Q = async () => {
|
|
10481
|
-
const ae = await
|
|
10481
|
+
const ae = await V.getHandler().getViewsForAction({
|
|
10482
10482
|
action: e,
|
|
10483
10483
|
context: l
|
|
10484
10484
|
});
|
|
10485
10485
|
U.current = ae.domain, v(ae.views.get("form")), h(ae.views.get("tree")), m(ae.model), k.current = ae.limit;
|
|
10486
10486
|
}, re = async () => {
|
|
10487
10487
|
m(n);
|
|
10488
|
-
const ae = await
|
|
10488
|
+
const ae = await V.getHandler().getView({
|
|
10489
10489
|
model: n,
|
|
10490
10490
|
type: "form",
|
|
10491
10491
|
context: l
|
|
10492
10492
|
});
|
|
10493
10493
|
v(ae);
|
|
10494
|
-
const X = await
|
|
10494
|
+
const X = await V.getHandler().getView({
|
|
10495
10495
|
model: n,
|
|
10496
10496
|
type: "tree",
|
|
10497
10497
|
id: r,
|
|
@@ -10546,7 +10546,7 @@ const Wl = it($g), { useToken: Mg } = nt, Vg = (t) => {
|
|
|
10546
10546
|
}, Ng = (t) => {
|
|
10547
10547
|
var v;
|
|
10548
10548
|
const { token: e } = Mg(), { ooui: n, value: r } = t, { locale: o } = ye(), [i, a] = F(n.icon), [l, c] = F(n.color), [d, f] = _e(
|
|
10549
|
-
|
|
10549
|
+
V.getHandler().parseCondition
|
|
10550
10550
|
), u = Zn(
|
|
10551
10551
|
yn.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
|
|
10552
10552
|
);
|
|
@@ -10717,9 +10717,9 @@ const Wl = it($g), { useToken: Mg } = nt, Vg = (t) => {
|
|
|
10717
10717
|
return /* @__PURE__ */ s(Le, { type: "array", ...t, children: /* @__PURE__ */ s(Ug, { ooui: e }) });
|
|
10718
10718
|
}, Ug = (t) => {
|
|
10719
10719
|
const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, i = o.filter(($) => $.operation !== "pendingRemove").map(($) => $.id), [a, l] = F([]), [c, d] = F(), [f, u] = F(!1), { relation: p, context: m, readOnly: g, field: h } = n, y = me(Je), { getContext: v } = y || {}, [b, w] = _e(
|
|
10720
|
-
|
|
10720
|
+
V.getHandler().evalDomain
|
|
10721
10721
|
), [I, x] = _e(
|
|
10722
|
-
|
|
10722
|
+
V.getHandler().search
|
|
10723
10723
|
);
|
|
10724
10724
|
ie(() => () => {
|
|
10725
10725
|
w(), x();
|
|
@@ -11006,7 +11006,7 @@ const Wl = it($g), { useToken: Mg } = nt, Vg = (t) => {
|
|
|
11006
11006
|
onAutorefreshableFieldsChange: a,
|
|
11007
11007
|
isActive: l
|
|
11008
11008
|
} = t, c = K(null), [d, f] = F(!0), [u, p] = _e(
|
|
11009
|
-
|
|
11009
|
+
V.getHandler().readObjects
|
|
11010
11010
|
), m = Ss();
|
|
11011
11011
|
ie(() => {
|
|
11012
11012
|
l === !1 && h(), (l === void 0 || l === !0) && !m && h(), (l === void 0 || l === !0) && m && y();
|
|
@@ -11118,7 +11118,7 @@ function oy(t, e) {
|
|
|
11118
11118
|
forcedValues: k = {},
|
|
11119
11119
|
parentWidth: T,
|
|
11120
11120
|
onMustRefreshParent: _
|
|
11121
|
-
} = t, { t: A } = ye(), [$, R] = F(!1), [S, O] = F(), [E, C] = F(), [P] = Vt.useForm(), [M, j] = F(), [
|
|
11121
|
+
} = t, { t: A } = ye(), [$, R] = F(!1), [S, O] = F(), [E, C] = F(), [P] = Vt.useForm(), [M, j] = F(), [N, L] = F(), B = me(ql), [U, J] = F(), [q, se] = F(!1), ee = K(), Q = K({}), re = K({}), G = K(!1), oe = K(!1), ae = K(!1), ne = (T !== void 0 ? T : U) < ry, de = me(Je), { activeId: Y, getPlainValues: le } = de || {}, ve = K(!1), fe = me(
|
|
11122
11122
|
_t
|
|
11123
11123
|
), {
|
|
11124
11124
|
setFormIsSaving: Fe = void 0,
|
|
@@ -11161,7 +11161,7 @@ function oy(t, e) {
|
|
|
11161
11161
|
ee.current = void 0, C(void 0);
|
|
11162
11162
|
return;
|
|
11163
11163
|
}
|
|
11164
|
-
(r === void 0 &&
|
|
11164
|
+
(r === void 0 && N || r !== void 0 && N && r < 0) && (ee.current = void 0, C(void 0)), dn();
|
|
11165
11165
|
}
|
|
11166
11166
|
}, [r, n, m, g, w]), ie(() => {
|
|
11167
11167
|
q && (Se({
|
|
@@ -11185,7 +11185,7 @@ function oy(t, e) {
|
|
|
11185
11185
|
Fe == null || Fe(!1), d == null || d(z);
|
|
11186
11186
|
}, ce = D(() => r || ee.current, [r]), Pe = r || ee.current;
|
|
11187
11187
|
function Oe() {
|
|
11188
|
-
return
|
|
11188
|
+
return N;
|
|
11189
11189
|
}
|
|
11190
11190
|
function He() {
|
|
11191
11191
|
const z = ft(), Z = Oe(), pe = {};
|
|
@@ -11207,7 +11207,7 @@ function oy(t, e) {
|
|
|
11207
11207
|
}
|
|
11208
11208
|
function gt() {
|
|
11209
11209
|
const z = {
|
|
11210
|
-
...ut(
|
|
11210
|
+
...ut(N)
|
|
11211
11211
|
};
|
|
11212
11212
|
for (const Z in z)
|
|
11213
11213
|
z[Z] === void 0 && delete z[Z];
|
|
@@ -11227,7 +11227,7 @@ function oy(t, e) {
|
|
|
11227
11227
|
...Xe
|
|
11228
11228
|
}), [ce, Y, Xe]), Ut = async (z) => {
|
|
11229
11229
|
const Z = ce() ? E == null ? void 0 : E.context : {};
|
|
11230
|
-
return await
|
|
11230
|
+
return await V.getHandler().defaultGet({
|
|
11231
11231
|
model: n,
|
|
11232
11232
|
fields: z,
|
|
11233
11233
|
context: { ...v, ...Z },
|
|
@@ -11236,8 +11236,8 @@ function oy(t, e) {
|
|
|
11236
11236
|
}, At = () => Object.keys(
|
|
11237
11237
|
io({
|
|
11238
11238
|
source: Q.current,
|
|
11239
|
-
target: ut(
|
|
11240
|
-
fields:
|
|
11239
|
+
target: ut(N),
|
|
11240
|
+
fields: N
|
|
11241
11241
|
})
|
|
11242
11242
|
).length !== 0, ut = D(
|
|
11243
11243
|
(z) => {
|
|
@@ -11247,13 +11247,13 @@ function oy(t, e) {
|
|
|
11247
11247
|
[P]
|
|
11248
11248
|
), ft = D(() => {
|
|
11249
11249
|
const z = {
|
|
11250
|
-
...ut(
|
|
11250
|
+
...ut(N),
|
|
11251
11251
|
...dt()
|
|
11252
11252
|
};
|
|
11253
11253
|
for (const Z in z)
|
|
11254
11254
|
z[Z] === void 0 && delete z[Z];
|
|
11255
11255
|
return z;
|
|
11256
|
-
}, [ut, dt,
|
|
11256
|
+
}, [ut, dt, N]), wt = D(() => {
|
|
11257
11257
|
ve.current && (_ == null || _()), Fe == null || Fe(!1), o == null || o({ id: ce(), values: ft() });
|
|
11258
11258
|
}, [
|
|
11259
11259
|
ce,
|
|
@@ -11264,10 +11264,10 @@ function oy(t, e) {
|
|
|
11264
11264
|
]), xn = (z, Z) => {
|
|
11265
11265
|
Pt({
|
|
11266
11266
|
values: {
|
|
11267
|
-
...Rn(P.getFieldsValue(!0),
|
|
11267
|
+
...Rn(P.getFieldsValue(!0), N),
|
|
11268
11268
|
[z]: Z
|
|
11269
11269
|
},
|
|
11270
|
-
fields:
|
|
11270
|
+
fields: N,
|
|
11271
11271
|
reset: !1
|
|
11272
11272
|
});
|
|
11273
11273
|
}, Cn = (z) => P.getFieldsValue(!0)[z];
|
|
@@ -11293,7 +11293,7 @@ function oy(t, e) {
|
|
|
11293
11293
|
}
|
|
11294
11294
|
}, Et = async (z) => {
|
|
11295
11295
|
let Z, pe, xe, ke;
|
|
11296
|
-
Re == null || Re(!0), O(void 0), Ue(), z != null && z.fields ? (pe = z.fields, xe = z.arch) : (pe =
|
|
11296
|
+
Re == null || Re(!0), O(void 0), Ue(), z != null && z.fields ? (pe = z.fields, xe = z.arch) : (pe = N, xe = M), m && (z == null ? void 0 : z.forceRefresh) !== !0 ? Z = m : { values: Z, defaultGetCalled: ke } = await Fn({
|
|
11297
11297
|
fields: pe,
|
|
11298
11298
|
arch: xe
|
|
11299
11299
|
}), b && (Z = { ...Eu(b), ...Z }), Q.current = Rn(Z, pe), Pt({
|
|
@@ -11314,13 +11314,13 @@ function oy(t, e) {
|
|
|
11314
11314
|
}) : (wt == null || wt(), z(!0));
|
|
11315
11315
|
}), Tn = async () => {
|
|
11316
11316
|
if (l) {
|
|
11317
|
-
const z = await
|
|
11318
|
-
return (await
|
|
11317
|
+
const z = await V.getHandler().getActionStringForModel(n);
|
|
11318
|
+
return (await V.getHandler().getViewsForAction({
|
|
11319
11319
|
action: z,
|
|
11320
11320
|
context: v
|
|
11321
11321
|
})).views.get("form");
|
|
11322
11322
|
}
|
|
11323
|
-
return await
|
|
11323
|
+
return await V.getHandler().getView({
|
|
11324
11324
|
model: n,
|
|
11325
11325
|
type: "form",
|
|
11326
11326
|
context: v
|
|
@@ -11351,14 +11351,14 @@ function oy(t, e) {
|
|
|
11351
11351
|
fields: z,
|
|
11352
11352
|
values: {}
|
|
11353
11353
|
});
|
|
11354
|
-
if (pe = (await
|
|
11354
|
+
if (pe = (await V.getHandler().readObjects({
|
|
11355
11355
|
model: n,
|
|
11356
11356
|
ids: [ce()],
|
|
11357
11357
|
fields: Zg(z, ke == null ? void 0 : ke.contextForFields),
|
|
11358
11358
|
context: v
|
|
11359
11359
|
}))[0], y)
|
|
11360
11360
|
return { values: pe, defaultGetCalled: xe };
|
|
11361
|
-
const pt = await
|
|
11361
|
+
const pt = await V.getHandler().search({
|
|
11362
11362
|
params: [
|
|
11363
11363
|
["res_model", "=", n],
|
|
11364
11364
|
["res_id", "=", ce()]
|
|
@@ -11376,24 +11376,24 @@ function oy(t, e) {
|
|
|
11376
11376
|
if (ce()) {
|
|
11377
11377
|
const pe = io({
|
|
11378
11378
|
source: Q.current,
|
|
11379
|
-
target: ut(
|
|
11380
|
-
fields:
|
|
11379
|
+
target: ut(N),
|
|
11380
|
+
fields: N
|
|
11381
11381
|
});
|
|
11382
|
-
await
|
|
11382
|
+
await V.getHandler().update({
|
|
11383
11383
|
model: n,
|
|
11384
11384
|
id: ce(),
|
|
11385
11385
|
values: { ...pe, ...k },
|
|
11386
|
-
fields:
|
|
11386
|
+
fields: N,
|
|
11387
11387
|
context: {
|
|
11388
11388
|
...v,
|
|
11389
11389
|
...E == null ? void 0 : E.context
|
|
11390
11390
|
}
|
|
11391
|
-
}), Q.current = ut(
|
|
11391
|
+
}), Q.current = ut(N);
|
|
11392
11392
|
} else {
|
|
11393
|
-
const pe = ut(
|
|
11393
|
+
const pe = ut(N), xe = await V.getHandler().create({
|
|
11394
11394
|
model: n,
|
|
11395
11395
|
values: { ...pe, ...k },
|
|
11396
|
-
fields:
|
|
11396
|
+
fields: N,
|
|
11397
11397
|
context: {
|
|
11398
11398
|
...v,
|
|
11399
11399
|
...E == null ? void 0 : E.context
|
|
@@ -11416,7 +11416,7 @@ function oy(t, e) {
|
|
|
11416
11416
|
ae.current
|
|
11417
11417
|
), ae.current = !1;
|
|
11418
11418
|
const xe = ce();
|
|
11419
|
-
return u && (ee.current = void 0, Pt({ values: {}, fields:
|
|
11419
|
+
return u && (ee.current = void 0, Pt({ values: {}, fields: N, reset: !0 })), { succeed: !0, id: xe };
|
|
11420
11420
|
}
|
|
11421
11421
|
if (!At() && ce() && pe)
|
|
11422
11422
|
return oe.current = !1, he == null || he(!1), wt == null || wt(), { succeed: !0, id: ce() };
|
|
@@ -11428,7 +11428,7 @@ function oy(t, e) {
|
|
|
11428
11428
|
}), { succeed: !1, id: ce() };
|
|
11429
11429
|
R(!0), Fe == null || Fe(!0);
|
|
11430
11430
|
try {
|
|
11431
|
-
p === "api" ? await tn(z) : await Yn(z), u && (ee.current = void 0, Pt({ values: {}, fields:
|
|
11431
|
+
p === "api" ? await tn(z) : await Yn(z), u && (ee.current = void 0, Pt({ values: {}, fields: N, reset: !0 })), await Et({ forceRefresh: !0 }), Z = !0, we({
|
|
11432
11432
|
type: "success",
|
|
11433
11433
|
title: A("savedRegisters"),
|
|
11434
11434
|
duration: 3
|
|
@@ -11483,8 +11483,8 @@ function oy(t, e) {
|
|
|
11483
11483
|
return;
|
|
11484
11484
|
const Z = io({
|
|
11485
11485
|
source: re.current,
|
|
11486
|
-
target: ut(
|
|
11487
|
-
fields:
|
|
11486
|
+
target: ut(N),
|
|
11487
|
+
fields: N
|
|
11488
11488
|
}), pe = Object.keys(Z);
|
|
11489
11489
|
if (pe.length !== 0 && !(Ru({
|
|
11490
11490
|
changedFields: pe,
|
|
@@ -11501,7 +11501,7 @@ function oy(t, e) {
|
|
|
11501
11501
|
"many2one"
|
|
11502
11502
|
]
|
|
11503
11503
|
}) && z !== !0)) {
|
|
11504
|
-
const xe = Rn(P.getFieldsValue(!0),
|
|
11504
|
+
const xe = Rn(P.getFieldsValue(!0), N);
|
|
11505
11505
|
re.current = xe, c == null || c(xe), he == null || he(!0), Object.keys(xe).forEach((ke) => {
|
|
11506
11506
|
Ae(ke);
|
|
11507
11507
|
}), Ke(pe);
|
|
@@ -11519,15 +11519,15 @@ function oy(t, e) {
|
|
|
11519
11519
|
const Z = E == null ? void 0 : E.onChangeFields[z];
|
|
11520
11520
|
if (!Z) {
|
|
11521
11521
|
Wt({
|
|
11522
|
-
fields:
|
|
11522
|
+
fields: N,
|
|
11523
11523
|
arch: M,
|
|
11524
|
-
values: ut(
|
|
11524
|
+
values: ut(N)
|
|
11525
11525
|
});
|
|
11526
11526
|
return;
|
|
11527
11527
|
}
|
|
11528
11528
|
const pe = Ou({
|
|
11529
11529
|
values: {
|
|
11530
|
-
...ut(
|
|
11530
|
+
...ut(N),
|
|
11531
11531
|
context: {
|
|
11532
11532
|
...v,
|
|
11533
11533
|
...E == null ? void 0 : E.context
|
|
@@ -11535,28 +11535,28 @@ function oy(t, e) {
|
|
|
11535
11535
|
},
|
|
11536
11536
|
parentValues: le == null ? void 0 : le(),
|
|
11537
11537
|
onChangeFieldActionArgs: Z.args
|
|
11538
|
-
}), xe = await
|
|
11538
|
+
}), xe = await V.getHandler().executeOnChange({
|
|
11539
11539
|
model: n,
|
|
11540
11540
|
action: Z.method,
|
|
11541
11541
|
ids: ce() ? [ce()] : [],
|
|
11542
11542
|
payload: pe,
|
|
11543
|
-
fields:
|
|
11543
|
+
fields: N
|
|
11544
11544
|
});
|
|
11545
11545
|
if (xe.value) {
|
|
11546
11546
|
const ke = {
|
|
11547
|
-
...ut(
|
|
11547
|
+
...ut(N),
|
|
11548
11548
|
...xe.value
|
|
11549
11549
|
}, pt = wu({
|
|
11550
11550
|
values: ke,
|
|
11551
|
-
fields:
|
|
11551
|
+
fields: N
|
|
11552
11552
|
});
|
|
11553
11553
|
Wt({
|
|
11554
|
-
fields:
|
|
11554
|
+
fields: N,
|
|
11555
11555
|
arch: M,
|
|
11556
11556
|
values: pt
|
|
11557
11557
|
}), Pt({
|
|
11558
11558
|
values: pt,
|
|
11559
|
-
fields:
|
|
11559
|
+
fields: N,
|
|
11560
11560
|
reset: !1
|
|
11561
11561
|
});
|
|
11562
11562
|
}
|
|
@@ -11580,7 +11580,7 @@ function oy(t, e) {
|
|
|
11580
11580
|
if (xe.domain && Object.keys(xe.domain).length > 0) {
|
|
11581
11581
|
const ke = _u({
|
|
11582
11582
|
fieldsDomain: xe.domain,
|
|
11583
|
-
fields:
|
|
11583
|
+
fields: N
|
|
11584
11584
|
});
|
|
11585
11585
|
Wt({
|
|
11586
11586
|
fields: ke,
|
|
@@ -11593,7 +11593,7 @@ function oy(t, e) {
|
|
|
11593
11593
|
action: z,
|
|
11594
11594
|
context: Z
|
|
11595
11595
|
}) {
|
|
11596
|
-
const pe = await
|
|
11596
|
+
const pe = await V.getHandler().execute({
|
|
11597
11597
|
model: n,
|
|
11598
11598
|
action: z,
|
|
11599
11599
|
payload: [ce()],
|
|
@@ -11611,7 +11611,7 @@ function oy(t, e) {
|
|
|
11611
11611
|
let xe = {};
|
|
11612
11612
|
pe.context && (xe = on({
|
|
11613
11613
|
context: pe.context,
|
|
11614
|
-
fields:
|
|
11614
|
+
fields: N,
|
|
11615
11615
|
values: ft()
|
|
11616
11616
|
})), await Lt({
|
|
11617
11617
|
actionData: pe,
|
|
@@ -11621,7 +11621,7 @@ function oy(t, e) {
|
|
|
11621
11621
|
await Et({ forceRefresh: !0 });
|
|
11622
11622
|
}
|
|
11623
11623
|
async function ot({ action: z }) {
|
|
11624
|
-
const Z = await
|
|
11624
|
+
const Z = await V.getHandler().executeWorkflow({
|
|
11625
11625
|
model: n,
|
|
11626
11626
|
action: z,
|
|
11627
11627
|
payload: ce()
|
|
@@ -11632,7 +11632,7 @@ function oy(t, e) {
|
|
|
11632
11632
|
action: z,
|
|
11633
11633
|
context: Z
|
|
11634
11634
|
}) {
|
|
11635
|
-
const pe = (await
|
|
11635
|
+
const pe = (await V.getHandler().readObjects({
|
|
11636
11636
|
model: "ir.actions.actions",
|
|
11637
11637
|
ids: [parseInt(z)],
|
|
11638
11638
|
context: v
|
|
@@ -11645,7 +11645,7 @@ function oy(t, e) {
|
|
|
11645
11645
|
}) {
|
|
11646
11646
|
const { closeParent: pe } = await (rt == null ? void 0 : rt({
|
|
11647
11647
|
actionData: z,
|
|
11648
|
-
fields:
|
|
11648
|
+
fields: N,
|
|
11649
11649
|
values: ft(),
|
|
11650
11650
|
context: {
|
|
11651
11651
|
...v,
|
|
@@ -11663,9 +11663,9 @@ function oy(t, e) {
|
|
|
11663
11663
|
}
|
|
11664
11664
|
function pn(z) {
|
|
11665
11665
|
Wt({
|
|
11666
|
-
fields:
|
|
11666
|
+
fields: N,
|
|
11667
11667
|
arch: M,
|
|
11668
|
-
values: ut(
|
|
11668
|
+
values: ut(N),
|
|
11669
11669
|
operationInProgress: z
|
|
11670
11670
|
});
|
|
11671
11671
|
}
|
|
@@ -11673,24 +11673,24 @@ function oy(t, e) {
|
|
|
11673
11673
|
(z) => {
|
|
11674
11674
|
if (!M)
|
|
11675
11675
|
return;
|
|
11676
|
-
const Z = { ...ut(
|
|
11676
|
+
const Z = { ...ut(N), ...z };
|
|
11677
11677
|
Q.current = {
|
|
11678
11678
|
...Q.current,
|
|
11679
11679
|
...z
|
|
11680
|
-
}, Wt({ fields:
|
|
11680
|
+
}, Wt({ fields: N, arch: M, values: Z }), Pt({
|
|
11681
11681
|
values: Z,
|
|
11682
|
-
fields:
|
|
11682
|
+
fields: N,
|
|
11683
11683
|
reset: !1
|
|
11684
11684
|
});
|
|
11685
11685
|
},
|
|
11686
|
-
[M, Pt,
|
|
11686
|
+
[M, Pt, N, ut, Wt]
|
|
11687
11687
|
);
|
|
11688
11688
|
ty({
|
|
11689
11689
|
model: n,
|
|
11690
11690
|
id: Pe,
|
|
11691
11691
|
context: v,
|
|
11692
11692
|
autorefreshableFields: E == null ? void 0 : E.autorefreshableFields,
|
|
11693
|
-
fieldDefs:
|
|
11693
|
+
fieldDefs: N,
|
|
11694
11694
|
onAutorefreshableFieldsChange: $t,
|
|
11695
11695
|
isActive: je
|
|
11696
11696
|
});
|
|
@@ -11822,7 +11822,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
11822
11822
|
a && x();
|
|
11823
11823
|
}, [l, a]);
|
|
11824
11824
|
async function x() {
|
|
11825
|
-
const A = await
|
|
11825
|
+
const A = await V.getHandler().isShortcutFavorite({
|
|
11826
11826
|
action_id: v,
|
|
11827
11827
|
action_type: w,
|
|
11828
11828
|
view_id: I,
|
|
@@ -11832,12 +11832,12 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
11832
11832
|
}
|
|
11833
11833
|
async function k() {
|
|
11834
11834
|
if (m && h)
|
|
11835
|
-
await
|
|
11835
|
+
await V.getHandler().removeFavourite({
|
|
11836
11836
|
shortcut_id: h
|
|
11837
11837
|
});
|
|
11838
11838
|
else {
|
|
11839
11839
|
const { action_id: A, res_id: $, action_type: R, view_id: S } = l;
|
|
11840
|
-
await
|
|
11840
|
+
await V.getHandler().addFavourite({
|
|
11841
11841
|
action_id: A,
|
|
11842
11842
|
action_type: R,
|
|
11843
11843
|
view_id: S,
|
|
@@ -12012,7 +12012,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12012
12012
|
] });
|
|
12013
12013
|
}, sy = () => {
|
|
12014
12014
|
const [t, e] = _e(
|
|
12015
|
-
|
|
12015
|
+
V.getHandler().checkPermission
|
|
12016
12016
|
);
|
|
12017
12017
|
return ie(() => () => {
|
|
12018
12018
|
e();
|
|
@@ -12094,7 +12094,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12094
12094
|
model: i,
|
|
12095
12095
|
permissions: ["create", "write"],
|
|
12096
12096
|
enabled: !0
|
|
12097
|
-
}), j = (M == null ? void 0 : M.create) ?? !1,
|
|
12097
|
+
}), j = (M == null ? void 0 : M.create) ?? !1, N = (M == null ? void 0 : M.write) ?? !1, L = r.showSearch ?? !0, B = e && e[0] || void 0, U = e && e[1] || "";
|
|
12098
12098
|
ie(() => {
|
|
12099
12099
|
!Array.isArray(e) && e && Q(e);
|
|
12100
12100
|
}, [e]), ie(() => {
|
|
@@ -12115,7 +12115,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12115
12115
|
if (O.current && O.current.length > 0)
|
|
12116
12116
|
ee(k.current);
|
|
12117
12117
|
else {
|
|
12118
|
-
const Y = await
|
|
12118
|
+
const Y = await V.getHandler().nameSearch({
|
|
12119
12119
|
model: i,
|
|
12120
12120
|
payload: k.current,
|
|
12121
12121
|
context: { ...$ == null ? void 0 : $(), ...l }
|
|
@@ -12130,7 +12130,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12130
12130
|
}
|
|
12131
12131
|
}, ee = async (Y) => {
|
|
12132
12132
|
if (await re(), O.current && O.current.length > 0) {
|
|
12133
|
-
const le = await
|
|
12133
|
+
const le = await V.getHandler().searchAllIds({
|
|
12134
12134
|
params: O.current,
|
|
12135
12135
|
model: i,
|
|
12136
12136
|
context: { ...$ == null ? void 0 : $(), ...l },
|
|
@@ -12143,7 +12143,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12143
12143
|
}, Q = async (Y) => {
|
|
12144
12144
|
y(!0);
|
|
12145
12145
|
try {
|
|
12146
|
-
const le = await
|
|
12146
|
+
const le = await V.getHandler().execute({
|
|
12147
12147
|
action: "name_get",
|
|
12148
12148
|
payload: [Y],
|
|
12149
12149
|
model: i,
|
|
@@ -12157,7 +12157,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12157
12157
|
}
|
|
12158
12158
|
};
|
|
12159
12159
|
async function re() {
|
|
12160
|
-
d && (O.current = await
|
|
12160
|
+
d && (O.current = await V.getHandler().evalDomain({
|
|
12161
12161
|
domain: d,
|
|
12162
12162
|
values: bn({
|
|
12163
12163
|
fields: A(),
|
|
@@ -12265,7 +12265,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12265
12265
|
g(!1);
|
|
12266
12266
|
},
|
|
12267
12267
|
mustClearAfterSave: !0,
|
|
12268
|
-
readOnly: a || !
|
|
12268
|
+
readOnly: a || !N
|
|
12269
12269
|
}
|
|
12270
12270
|
)
|
|
12271
12271
|
] });
|
|
@@ -12375,7 +12375,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12375
12375
|
), l = me(
|
|
12376
12376
|
Bt
|
|
12377
12377
|
), { processAction: c } = a || {}, { openRelate: d } = l || {}, [f, u] = F(null), [p, m] = F(!1), [g] = _e(
|
|
12378
|
-
|
|
12378
|
+
V.getHandler().getToolbar
|
|
12379
12379
|
), h = o || f, y = D(async () => {
|
|
12380
12380
|
var T;
|
|
12381
12381
|
return await ((T = e.current) == null ? void 0 : T.submitForm());
|
|
@@ -12500,7 +12500,7 @@ const qn = Nt(oy), Gn = (t) => {
|
|
|
12500
12500
|
if (!t)
|
|
12501
12501
|
return;
|
|
12502
12502
|
i(!0);
|
|
12503
|
-
const c = await
|
|
12503
|
+
const c = await V.getHandler().duplicate({
|
|
12504
12504
|
id: t,
|
|
12505
12505
|
model: e,
|
|
12506
12506
|
context: r
|
|
@@ -12562,7 +12562,7 @@ function py(t) {
|
|
|
12562
12562
|
I == null || I();
|
|
12563
12563
|
},
|
|
12564
12564
|
context: a === "tree" ? b : (ee = w == null ? void 0 : w.current) == null ? void 0 : ee.getContext()
|
|
12565
|
-
}), { actionButtonProps: M, printButtonProps: j, relateButtonProps:
|
|
12565
|
+
}), { actionButtonProps: M, printButtonProps: j, relateButtonProps: N } = Ql({
|
|
12566
12566
|
toolbar: v,
|
|
12567
12567
|
model: o,
|
|
12568
12568
|
mustDisableButtons: n,
|
|
@@ -12693,7 +12693,7 @@ function py(t) {
|
|
|
12693
12693
|
Kt,
|
|
12694
12694
|
{
|
|
12695
12695
|
icon: /* @__PURE__ */ s(qr, {}),
|
|
12696
|
-
...
|
|
12696
|
+
...N
|
|
12697
12697
|
}
|
|
12698
12698
|
)
|
|
12699
12699
|
] })
|
|
@@ -12815,7 +12815,7 @@ const gy = (t) => {
|
|
|
12815
12815
|
domain: g,
|
|
12816
12816
|
fetchValues: h,
|
|
12817
12817
|
getAllHierarchyValues: y
|
|
12818
|
-
} = f || {}, { t: v } = ye(), [b, w] = F(!1), [I, x] = F(!1), [k, T] = F(), [_, A] = F(!1), [$, R] = F(!1), [S, O] = F(), [E, C] = F([]), [P, M] = F(!1), [j,
|
|
12818
|
+
} = f || {}, { t: v } = ye(), [b, w] = F(!1), [I, x] = F(!1), [k, T] = F(), [_, A] = F(!1), [$, R] = F(!1), [S, O] = F(), [E, C] = F([]), [P, M] = F(!1), [j, N] = F([]), [L, B] = F(), U = K(), [J, q] = F(void 0), se = K(), {
|
|
12819
12819
|
readOnly: ee,
|
|
12820
12820
|
relation: Q,
|
|
12821
12821
|
context: re,
|
|
@@ -12873,7 +12873,7 @@ const gy = (t) => {
|
|
|
12873
12873
|
}, [y()]);
|
|
12874
12874
|
const fe = D(async () => {
|
|
12875
12875
|
let W = [];
|
|
12876
|
-
G && (W = await
|
|
12876
|
+
G && (W = await V.getHandler().evalDomain({
|
|
12877
12877
|
domain: G,
|
|
12878
12878
|
values: bn({
|
|
12879
12879
|
fields: p(),
|
|
@@ -12886,7 +12886,7 @@ const gy = (t) => {
|
|
|
12886
12886
|
domain: g,
|
|
12887
12887
|
widgetFieldName: ae
|
|
12888
12888
|
})
|
|
12889
|
-
)), W.length > 0 &&
|
|
12889
|
+
)), W.length > 0 && N(W);
|
|
12890
12890
|
}, [
|
|
12891
12891
|
G,
|
|
12892
12892
|
g,
|
|
@@ -12909,12 +12909,12 @@ const gy = (t) => {
|
|
|
12909
12909
|
d(c + 1);
|
|
12910
12910
|
}) : d(c + 1));
|
|
12911
12911
|
}, Re = async () => {
|
|
12912
|
-
const W = X[c].id, be = (await
|
|
12912
|
+
const W = X[c].id, be = (await V.getHandler().readObjects({
|
|
12913
12913
|
model: Q,
|
|
12914
12914
|
ids: [W],
|
|
12915
12915
|
fields: o.get("form").fields,
|
|
12916
12916
|
context: { ...m == null ? void 0 : m(), ...re }
|
|
12917
|
-
}))[0], ce = (await
|
|
12917
|
+
}))[0], ce = (await V.getHandler().readObjects({
|
|
12918
12918
|
model: Q,
|
|
12919
12919
|
ids: [W],
|
|
12920
12920
|
fields: o.get("tree").fields,
|
|
@@ -13025,12 +13025,12 @@ const gy = (t) => {
|
|
|
13025
13025
|
const be = i, ce = W.filter((Pe) => !i.find((Oe) => Oe.id === Pe));
|
|
13026
13026
|
try {
|
|
13027
13027
|
for (const Pe of ce) {
|
|
13028
|
-
const Oe = (await
|
|
13028
|
+
const Oe = (await V.getHandler().readObjects({
|
|
13029
13029
|
model: Q,
|
|
13030
13030
|
ids: [Pe],
|
|
13031
13031
|
fields: o.get("form").fields,
|
|
13032
13032
|
context: { ...m == null ? void 0 : m(), ...re }
|
|
13033
|
-
}))[0], He = (await
|
|
13033
|
+
}))[0], He = (await V.getHandler().readObjects({
|
|
13034
13034
|
model: Q,
|
|
13035
13035
|
ids: [Pe],
|
|
13036
13036
|
fields: o.get("tree").fields,
|
|
@@ -13228,7 +13228,7 @@ const gy = (t) => {
|
|
|
13228
13228
|
}, [l()]);
|
|
13229
13229
|
const c = D(async () => {
|
|
13230
13230
|
let d = [];
|
|
13231
|
-
e && (d = await
|
|
13231
|
+
e && (d = await V.getHandler().evalDomain({
|
|
13232
13232
|
domain: e,
|
|
13233
13233
|
values: bn({
|
|
13234
13234
|
fields: o(),
|
|
@@ -13326,12 +13326,12 @@ const gy = (t) => {
|
|
|
13326
13326
|
async ({ id: g }) => {
|
|
13327
13327
|
if (!o)
|
|
13328
13328
|
return;
|
|
13329
|
-
const h = (await
|
|
13329
|
+
const h = (await V.getHandler().readObjects({
|
|
13330
13330
|
model: e,
|
|
13331
13331
|
ids: [g],
|
|
13332
13332
|
fields: o.fields,
|
|
13333
13333
|
context: n
|
|
13334
|
-
}))[0], y = (await
|
|
13334
|
+
}))[0], y = (await V.getHandler().readObjects({
|
|
13335
13335
|
model: e,
|
|
13336
13336
|
ids: [g],
|
|
13337
13337
|
fields: r.fields,
|
|
@@ -13568,7 +13568,7 @@ const Cy = ({
|
|
|
13568
13568
|
const { id: k } = x;
|
|
13569
13569
|
let T = o;
|
|
13570
13570
|
const _ = o.find((A) => A.id === k);
|
|
13571
|
-
(_ == null ? void 0 : _.values) === void 0 && (T = await
|
|
13571
|
+
(_ == null ? void 0 : _.values) === void 0 && (T = await V.getHandler().readObjects({
|
|
13572
13572
|
model: c,
|
|
13573
13573
|
ids: [x.id],
|
|
13574
13574
|
fields: d.fields,
|
|
@@ -13605,7 +13605,7 @@ const Cy = ({
|
|
|
13605
13605
|
async (g) => {
|
|
13606
13606
|
const h = [...n], y = g.filter((v) => !n.find((b) => b.id === v));
|
|
13607
13607
|
try {
|
|
13608
|
-
(await
|
|
13608
|
+
(await V.getHandler().readObjects({
|
|
13609
13609
|
model: a,
|
|
13610
13610
|
ids: y,
|
|
13611
13611
|
fields: {
|
|
@@ -13687,21 +13687,21 @@ const Cy = ({
|
|
|
13687
13687
|
endRow: M,
|
|
13688
13688
|
state: j
|
|
13689
13689
|
}) => {
|
|
13690
|
-
const
|
|
13690
|
+
const N = Ir({
|
|
13691
13691
|
state: j
|
|
13692
13692
|
}), { results: L, colors: B, status: U } = await a({
|
|
13693
13693
|
allItems: k.current,
|
|
13694
13694
|
startRow: P,
|
|
13695
13695
|
endRow: M,
|
|
13696
|
-
sortFields:
|
|
13696
|
+
sortFields: N
|
|
13697
13697
|
});
|
|
13698
13698
|
return w.current = { ...w.current, ...B }, !I.current && U && (I.current = {}), U && (I.current = { ...I.current, ...U }), L;
|
|
13699
13699
|
},
|
|
13700
13700
|
[a]
|
|
13701
13701
|
), S = D((P) => {
|
|
13702
|
-
var M, j,
|
|
13702
|
+
var M, j, N, L;
|
|
13703
13703
|
if (w.current[(j = (M = P.node) == null ? void 0 : M.data) == null ? void 0 : j.id])
|
|
13704
|
-
return { color: w.current[(L = (
|
|
13704
|
+
return { color: w.current[(L = (N = P.node) == null ? void 0 : N.data) == null ? void 0 : L.id] };
|
|
13705
13705
|
}, []), { loading: O, getColumnState: E, updateColumnState: C } = ds({
|
|
13706
13706
|
key: Fy({
|
|
13707
13707
|
...m,
|
|
@@ -13791,7 +13791,7 @@ const Cy = ({
|
|
|
13791
13791
|
}), j = te(() => {
|
|
13792
13792
|
const { title: Te } = i.get(c) || {};
|
|
13793
13793
|
return Te || o.label;
|
|
13794
|
-
}, [c, o.label, i]),
|
|
13794
|
+
}, [c, o.label, i]), N = o.type === "many2many", L = D(
|
|
13795
13795
|
(Te) => {
|
|
13796
13796
|
var je, Qe;
|
|
13797
13797
|
r == null || r({
|
|
@@ -13846,7 +13846,7 @@ const Cy = ({
|
|
|
13846
13846
|
context: _,
|
|
13847
13847
|
relation: m
|
|
13848
13848
|
}), { showRemoveConfirm: le } = Sy({
|
|
13849
|
-
isMany2many:
|
|
13849
|
+
isMany2many: N,
|
|
13850
13850
|
items: l,
|
|
13851
13851
|
triggerChange: L,
|
|
13852
13852
|
setFormHasChanges: q,
|
|
@@ -13892,7 +13892,7 @@ const Cy = ({
|
|
|
13892
13892
|
currentId: (De = l[f]) == null ? void 0 : De.id,
|
|
13893
13893
|
model: m,
|
|
13894
13894
|
readOnly: p || !1,
|
|
13895
|
-
isMany2Many:
|
|
13895
|
+
isMany2Many: N,
|
|
13896
13896
|
formHasChanges: B,
|
|
13897
13897
|
totalItems: l.length,
|
|
13898
13898
|
currentItemIndex: f,
|
|
@@ -14011,10 +14011,14 @@ const Cy = ({
|
|
|
14011
14011
|
const b = en(
|
|
14012
14012
|
Dt.FEATURE_GET_TOOLBAR
|
|
14013
14013
|
), w = async (T) => {
|
|
14014
|
-
if (
|
|
14014
|
+
if (V.getHandler().getView({
|
|
14015
|
+
model: r,
|
|
14016
|
+
type: T,
|
|
14017
|
+
context: { ...h == null ? void 0 : h(), ...a }
|
|
14018
|
+
}), o && o[T]) {
|
|
14015
14019
|
const _ = o[T];
|
|
14016
14020
|
if (b && !_.toolbar && (T === "form" || T === "tree")) {
|
|
14017
|
-
const A = await
|
|
14021
|
+
const A = await V.getHandler().getToolbar({
|
|
14018
14022
|
model: r,
|
|
14019
14023
|
type: T,
|
|
14020
14024
|
context: { ...h == null ? void 0 : h(), ...a }
|
|
@@ -14025,12 +14029,12 @@ const Cy = ({
|
|
|
14025
14029
|
}
|
|
14026
14030
|
if (b && (T === "form" || T === "tree")) {
|
|
14027
14031
|
const [_, A] = await Promise.all([
|
|
14028
|
-
|
|
14032
|
+
V.getHandler().getView({
|
|
14029
14033
|
model: r,
|
|
14030
14034
|
type: T,
|
|
14031
14035
|
context: { ...h == null ? void 0 : h(), ...a }
|
|
14032
14036
|
}),
|
|
14033
|
-
|
|
14037
|
+
V.getHandler().getToolbar({
|
|
14034
14038
|
model: r,
|
|
14035
14039
|
type: T,
|
|
14036
14040
|
context: { ...h == null ? void 0 : h(), ...a }
|
|
@@ -14038,7 +14042,7 @@ const Cy = ({
|
|
|
14038
14042
|
]);
|
|
14039
14043
|
return { ..._, toolbar: A };
|
|
14040
14044
|
}
|
|
14041
|
-
return await
|
|
14045
|
+
return await V.getHandler().getView({
|
|
14042
14046
|
model: r,
|
|
14043
14047
|
type: T,
|
|
14044
14048
|
context: { ...h == null ? void 0 : h(), ...a }
|
|
@@ -14376,7 +14380,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14376
14380
|
y.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (v = [
|
|
14377
14381
|
["id", "in", n == null ? void 0 : n.map((I) => I.id)]
|
|
14378
14382
|
]);
|
|
14379
|
-
const { datas: b } = await
|
|
14383
|
+
const { datas: b } = await V.getHandler().exportData({
|
|
14380
14384
|
model: t,
|
|
14381
14385
|
fields: Jy({
|
|
14382
14386
|
keys: y.selectedKeys,
|
|
@@ -14393,7 +14397,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14393
14397
|
},
|
|
14394
14398
|
[r, n, t, o, e, i, c]
|
|
14395
14399
|
), f = D(async () => {
|
|
14396
|
-
const y = await
|
|
14400
|
+
const y = await V.getHandler().getFields({
|
|
14397
14401
|
model: t,
|
|
14398
14402
|
context: e,
|
|
14399
14403
|
fields: []
|
|
@@ -14401,7 +14405,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14401
14405
|
return a.current["/"] = y, ki({ fields: y });
|
|
14402
14406
|
}, [t, e, a]), u = D(
|
|
14403
14407
|
async (y) => {
|
|
14404
|
-
const b = Uo(y, a.current)[Bo(y)], w = b.relation, I = await
|
|
14408
|
+
const b = Uo(y, a.current)[Bo(y)], w = b.relation, I = await V.getHandler().getFields({
|
|
14405
14409
|
model: w,
|
|
14406
14410
|
context: e,
|
|
14407
14411
|
fields: []
|
|
@@ -14445,7 +14449,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14445
14449
|
};
|
|
14446
14450
|
}, [e, t, u]), m = D(
|
|
14447
14451
|
async (y) => {
|
|
14448
|
-
await
|
|
14452
|
+
await V.getHandler().deleteObjects({
|
|
14449
14453
|
model: "ir.exports",
|
|
14450
14454
|
ids: [y.id],
|
|
14451
14455
|
context: e
|
|
@@ -14456,7 +14460,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14456
14460
|
async (y) => {
|
|
14457
14461
|
if (l.current.has(y))
|
|
14458
14462
|
return l.current.get(y);
|
|
14459
|
-
const v =
|
|
14463
|
+
const v = V.getHandler().getFields({
|
|
14460
14464
|
model: y,
|
|
14461
14465
|
context: e,
|
|
14462
14466
|
fields: []
|
|
@@ -14466,7 +14470,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14466
14470
|
[l, e]
|
|
14467
14471
|
), h = D(
|
|
14468
14472
|
async (y) => {
|
|
14469
|
-
const v = await g("ir.exports"), b = await g("ir.exports.line"), w = await
|
|
14473
|
+
const v = await g("ir.exports"), b = await g("ir.exports.line"), w = await V.getHandler().create({
|
|
14470
14474
|
model: "ir.exports",
|
|
14471
14475
|
values: {
|
|
14472
14476
|
name: y.name,
|
|
@@ -14476,7 +14480,7 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14476
14480
|
context: e
|
|
14477
14481
|
});
|
|
14478
14482
|
return await Promise.all(
|
|
14479
|
-
y.fields.map(async (I) => await
|
|
14483
|
+
y.fields.map(async (I) => await V.getHandler().create({
|
|
14480
14484
|
model: "ir.exports.line",
|
|
14481
14485
|
values: {
|
|
14482
14486
|
name: I.key,
|
|
@@ -14528,11 +14532,11 @@ const { useToken: Hy } = nt, { TextArea: Ho } = bt, jy = (t) => {
|
|
|
14528
14532
|
model: t,
|
|
14529
14533
|
context: e
|
|
14530
14534
|
}) => {
|
|
14531
|
-
const n = await
|
|
14535
|
+
const n = await V.getHandler().search({
|
|
14532
14536
|
model: "ir.exports",
|
|
14533
14537
|
params: [["resource", "=", t]],
|
|
14534
14538
|
context: e
|
|
14535
|
-
}), r = n.flatMap((i) => i.export_fields), o = await
|
|
14539
|
+
}), r = n.flatMap((i) => i.export_fields), o = await V.getHandler().readObjects({
|
|
14536
14540
|
model: "ir.exports.line",
|
|
14537
14541
|
ids: r,
|
|
14538
14542
|
context: e
|
|
@@ -14909,7 +14913,7 @@ function dv(t) {
|
|
|
14909
14913
|
if (!(!e || e.length === 0)) {
|
|
14910
14914
|
c(!0);
|
|
14911
14915
|
try {
|
|
14912
|
-
const b = await
|
|
14916
|
+
const b = await V.getHandler().readObjects({
|
|
14913
14917
|
model: "ir.attachment",
|
|
14914
14918
|
ids: e.map((w) => w.id),
|
|
14915
14919
|
fieldsToRetrieve: ["name", "datas_fname", "link"],
|
|
@@ -14937,7 +14941,7 @@ function dv(t) {
|
|
|
14937
14941
|
p(!0);
|
|
14938
14942
|
let w;
|
|
14939
14943
|
try {
|
|
14940
|
-
w = (await
|
|
14944
|
+
w = (await V.getHandler().readObjects({
|
|
14941
14945
|
model: "ir.attachment",
|
|
14942
14946
|
ids: [b.id],
|
|
14943
14947
|
context: a.current.getContext()
|
|
@@ -14999,7 +15003,7 @@ const uv = () => {
|
|
|
14999
15003
|
results: i,
|
|
15000
15004
|
searchQuery: a
|
|
15001
15005
|
} = ln(), [l, c] = _e(
|
|
15002
|
-
|
|
15006
|
+
V.getHandler().searchForTree
|
|
15003
15007
|
);
|
|
15004
15008
|
ie(() => () => {
|
|
15005
15009
|
c();
|
|
@@ -15110,17 +15114,17 @@ function fv({ toolbar: t }) {
|
|
|
15110
15114
|
f ? Un({ t: n, onOk: G }) : G();
|
|
15111
15115
|
},
|
|
15112
15116
|
[f, n]
|
|
15113
|
-
),
|
|
15117
|
+
), N = D(() => {
|
|
15114
15118
|
j(() => A.current.fetchValues());
|
|
15115
15119
|
}, [j, A]), { actionButtonProps: L, printButtonProps: B, relateButtonProps: U } = Ql({
|
|
15116
15120
|
toolbar: t,
|
|
15117
15121
|
model: v,
|
|
15118
15122
|
mustDisableButtons: M,
|
|
15119
15123
|
formRef: A,
|
|
15120
|
-
onRefreshParentValues:
|
|
15124
|
+
onRefreshParentValues: N
|
|
15121
15125
|
}), J = D(async () => {
|
|
15122
15126
|
try {
|
|
15123
|
-
b == null || b(!0), await
|
|
15127
|
+
b == null || b(!0), await V.getHandler().deleteObjects({
|
|
15124
15128
|
model: v,
|
|
15125
15129
|
ids: [p],
|
|
15126
15130
|
context: A.current.getContext()
|
|
@@ -15150,7 +15154,7 @@ function fv({ toolbar: t }) {
|
|
|
15150
15154
|
]), q = D(async () => {
|
|
15151
15155
|
try {
|
|
15152
15156
|
x == null || x(!0);
|
|
15153
|
-
const G = await
|
|
15157
|
+
const G = await V.getHandler().duplicate({
|
|
15154
15158
|
id: p,
|
|
15155
15159
|
model: v,
|
|
15156
15160
|
context: A.current.getContext()
|
|
@@ -15295,7 +15299,7 @@ function fv({ toolbar: t }) {
|
|
|
15295
15299
|
icon: /* @__PURE__ */ s(Br, {}),
|
|
15296
15300
|
tooltip: n("refresh"),
|
|
15297
15301
|
disabled: M || p === void 0,
|
|
15298
|
-
onClick:
|
|
15302
|
+
onClick: N
|
|
15299
15303
|
}
|
|
15300
15304
|
),
|
|
15301
15305
|
/* @__PURE__ */ s(mt, {}),
|
|
@@ -15630,7 +15634,7 @@ const bv = (t) => {
|
|
|
15630
15634
|
currentView: E,
|
|
15631
15635
|
totalItems: C,
|
|
15632
15636
|
searchTreeNameSearch: P
|
|
15633
|
-
} = u || {}, [M, j] = F(!0), [
|
|
15637
|
+
} = u || {}, [M, j] = F(!0), [N, L] = F(!0), [B, U] = F();
|
|
15634
15638
|
ie(() => {
|
|
15635
15639
|
n && L(!0);
|
|
15636
15640
|
}, [n]);
|
|
@@ -15640,7 +15644,7 @@ const bv = (t) => {
|
|
|
15640
15644
|
), q = Rt(async () => {
|
|
15641
15645
|
if (!n)
|
|
15642
15646
|
return;
|
|
15643
|
-
const de = await
|
|
15647
|
+
const de = await V.getHandler().searchAllIds({
|
|
15644
15648
|
params: P ? i : J,
|
|
15645
15649
|
model: r,
|
|
15646
15650
|
context: o,
|
|
@@ -15748,7 +15752,7 @@ const bv = (t) => {
|
|
|
15748
15752
|
showLimitOptions: !1
|
|
15749
15753
|
}
|
|
15750
15754
|
),
|
|
15751
|
-
ae ||
|
|
15755
|
+
ae || N ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
|
|
15752
15756
|
ne,
|
|
15753
15757
|
{
|
|
15754
15758
|
ref: d,
|
|
@@ -15961,7 +15965,7 @@ function Iv(t, e) {
|
|
|
15961
15965
|
order: w
|
|
15962
15966
|
} = t, [I, x] = F(), [k, T] = F([]), [_, A] = F(!0), $ = p || void 0, [R, S] = F(
|
|
15963
15967
|
$
|
|
15964
|
-
), [O, E] = F([]), [C, P] = F(), [M, j] = F([]), [
|
|
15968
|
+
), [O, E] = F([]), [C, P] = F(), [M, j] = F([]), [N, L] = F(), [B, U] = F(), [J, q] = F(!1), [se, ee] = F(!1), [Q, re] = F(), { t: G } = ye(), { showErrorNotification: oe } = ht(), {
|
|
15965
15969
|
permissions: ae,
|
|
15966
15970
|
loading: X,
|
|
15967
15971
|
error: ne
|
|
@@ -16006,7 +16010,7 @@ function Iv(t, e) {
|
|
|
16006
16010
|
const [Ae, Ue] = Ye;
|
|
16007
16011
|
Ue !== "dashboard" ? Ge.push({
|
|
16008
16012
|
viewTuple: Ye,
|
|
16009
|
-
promise:
|
|
16013
|
+
promise: V.getHandler().getView({
|
|
16010
16014
|
model: r,
|
|
16011
16015
|
type: Ue,
|
|
16012
16016
|
id: Ae,
|
|
@@ -16141,7 +16145,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
16141
16145
|
let st;
|
|
16142
16146
|
if (Ue === -1) {
|
|
16143
16147
|
try {
|
|
16144
|
-
st = (Ye = await
|
|
16148
|
+
st = (Ye = await V.getHandler().search({
|
|
16145
16149
|
model: r,
|
|
16146
16150
|
params: [["id", "in", [Ae]]],
|
|
16147
16151
|
skipRead: !0,
|
|
@@ -16209,7 +16213,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
16209
16213
|
results: M,
|
|
16210
16214
|
setResults: j,
|
|
16211
16215
|
currentModel: r,
|
|
16212
|
-
sorter:
|
|
16216
|
+
sorter: N,
|
|
16213
16217
|
setSorter: L,
|
|
16214
16218
|
totalItems: B,
|
|
16215
16219
|
setTotalItems: U,
|
|
@@ -16387,9 +16391,9 @@ function Ov(t, e) {
|
|
|
16387
16391
|
setIsLoading: p,
|
|
16388
16392
|
openAction: m,
|
|
16389
16393
|
moveItemsEnabled: g
|
|
16390
|
-
} = me(Rs), h = K(), y = K(), [v] = _e(
|
|
16391
|
-
|
|
16392
|
-
), [w] = _e(
|
|
16394
|
+
} = me(Rs), h = K(), y = K(), [v] = _e(V.getHandler().getView), [b] = _e(
|
|
16395
|
+
V.getHandler().readObjects
|
|
16396
|
+
), [w] = _e(V.getHandler().update), I = en(
|
|
16393
16397
|
Dt.FEATURE_READFORVIEW
|
|
16394
16398
|
);
|
|
16395
16399
|
ie(() => {
|
|
@@ -16462,7 +16466,7 @@ function Ov(t, e) {
|
|
|
16462
16466
|
const M = parseInt(P.action_id[0], 10), j = _a({
|
|
16463
16467
|
actionId: M,
|
|
16464
16468
|
rootContext: r
|
|
16465
|
-
}).then((
|
|
16469
|
+
}).then((N) => ({ ...C, actionData: N }));
|
|
16466
16470
|
O.push(j);
|
|
16467
16471
|
}
|
|
16468
16472
|
}
|
|
@@ -16479,17 +16483,17 @@ function Ov(t, e) {
|
|
|
16479
16483
|
return !1;
|
|
16480
16484
|
if (!j.position)
|
|
16481
16485
|
return !0;
|
|
16482
|
-
const
|
|
16486
|
+
const N = {
|
|
16483
16487
|
...JSON.parse(j.position.replace(/'/g, '"')),
|
|
16484
16488
|
id: j.id
|
|
16485
16489
|
};
|
|
16486
|
-
return JSON.stringify(M) !== JSON.stringify(
|
|
16490
|
+
return JSON.stringify(M) !== JSON.stringify(N);
|
|
16487
16491
|
});
|
|
16488
16492
|
if (O.length === 0)
|
|
16489
16493
|
return;
|
|
16490
16494
|
const C = a.filter((M) => O.map((j) => j.id).includes(M.id)).map((M) => {
|
|
16491
16495
|
const j = {
|
|
16492
|
-
...O.find((
|
|
16496
|
+
...O.find((N) => N.id === M.id)
|
|
16493
16497
|
};
|
|
16494
16498
|
return delete j.id, { ...M }, {
|
|
16495
16499
|
...M,
|
|
@@ -16517,7 +16521,7 @@ function Ov(t, e) {
|
|
|
16517
16521
|
return c ? /* @__PURE__ */ s(jt, {}) : f ? (console.error(f), /* @__PURE__ */ s(Tt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(Ev, { onPositionItemsChanged: $, children: a.map((S, O) => {
|
|
16518
16522
|
const { actionData: E, values: C } = S, { position: P, id: M } = C, {
|
|
16519
16523
|
actionId: j,
|
|
16520
|
-
actionType:
|
|
16524
|
+
actionType: N,
|
|
16521
16525
|
key: L,
|
|
16522
16526
|
title: B,
|
|
16523
16527
|
description: U,
|
|
@@ -16593,7 +16597,7 @@ function Ov(t, e) {
|
|
|
16593
16597
|
cc,
|
|
16594
16598
|
{
|
|
16595
16599
|
action_id: j,
|
|
16596
|
-
action_type:
|
|
16600
|
+
action_type: N,
|
|
16597
16601
|
tabKey: L,
|
|
16598
16602
|
title: B,
|
|
16599
16603
|
views: J,
|
|
@@ -16663,7 +16667,7 @@ const Dv = Nt(Ov), Pv = (t) => {
|
|
|
16663
16667
|
u(!0);
|
|
16664
16668
|
let _ = [];
|
|
16665
16669
|
if (n.domain) {
|
|
16666
|
-
const A = await
|
|
16670
|
+
const A = await V.getHandler().evalDomain({
|
|
16667
16671
|
domain: n.domain,
|
|
16668
16672
|
values: bn({
|
|
16669
16673
|
fields: v == null ? void 0 : v.getFields(),
|
|
@@ -16675,7 +16679,7 @@ const Dv = Nt(Ov), Pv = (t) => {
|
|
|
16675
16679
|
_ = [..._, ...A];
|
|
16676
16680
|
}
|
|
16677
16681
|
try {
|
|
16678
|
-
const $ = (await
|
|
16682
|
+
const $ = (await V.getHandler().search({
|
|
16679
16683
|
model: p,
|
|
16680
16684
|
params: _,
|
|
16681
16685
|
fieldsToRetrieve: [h],
|
|
@@ -17010,7 +17014,7 @@ function ub(t, e) {
|
|
|
17010
17014
|
const { children: n } = t, [r, o] = F("welcome"), { t: i } = ye(), { showErrorNotification: a } = ht(), { globalValues: l, rootContext: c } = zt(), d = is(
|
|
17011
17015
|
Dt.FEATURE_LOGGABLE_ACTIONS
|
|
17012
17016
|
), [f, u] = _e(
|
|
17013
|
-
|
|
17017
|
+
V.getHandler().logAction
|
|
17014
17018
|
);
|
|
17015
17019
|
ie(() => () => {
|
|
17016
17020
|
u();
|
|
@@ -17046,7 +17050,7 @@ function ub(t, e) {
|
|
|
17046
17050
|
g.current.set(R, S);
|
|
17047
17051
|
}
|
|
17048
17052
|
async function b(R) {
|
|
17049
|
-
const { actionRawData: S, res_id: O, limit: E } = R, C = await
|
|
17053
|
+
const { actionRawData: S, res_id: O, limit: E } = R, C = await V.getHandler().getFields({
|
|
17050
17054
|
model: R.model,
|
|
17051
17055
|
context: c
|
|
17052
17056
|
});
|
|
@@ -17055,7 +17059,7 @@ function ub(t, e) {
|
|
|
17055
17059
|
);
|
|
17056
17060
|
const M = O || P.active_id || P.id;
|
|
17057
17061
|
if (M) {
|
|
17058
|
-
const L = await
|
|
17062
|
+
const L = await V.getHandler().readObjects({
|
|
17059
17063
|
model: R.model,
|
|
17060
17064
|
context: c,
|
|
17061
17065
|
ids: [M]
|
|
@@ -17068,9 +17072,9 @@ function ub(t, e) {
|
|
|
17068
17072
|
fields: C,
|
|
17069
17073
|
values: { ...l, ...P || {} }
|
|
17070
17074
|
}) : j = {};
|
|
17071
|
-
const
|
|
17075
|
+
const N = await (async () => {
|
|
17072
17076
|
try {
|
|
17073
|
-
return S != null && S.domain && Array.isArray(S.domain) && S.domain.length > 0 ? S.domain : S && S.domain && !Array.isArray(S.domain) ? await
|
|
17077
|
+
return S != null && S.domain && Array.isArray(S.domain) && S.domain.length > 0 ? S.domain : S && S.domain && !Array.isArray(S.domain) ? await V.getHandler().evalDomain({
|
|
17074
17078
|
domain: S.domain,
|
|
17075
17079
|
values: { ...P || {}, ...l },
|
|
17076
17080
|
context: { ...c, ...j },
|
|
@@ -17084,7 +17088,7 @@ function ub(t, e) {
|
|
|
17084
17088
|
...R,
|
|
17085
17089
|
limit: E,
|
|
17086
17090
|
context: { ...c, ...j },
|
|
17087
|
-
domain:
|
|
17091
|
+
domain: N,
|
|
17088
17092
|
actionRawData: {
|
|
17089
17093
|
...S,
|
|
17090
17094
|
values: P,
|
|
@@ -17097,7 +17101,7 @@ function ub(t, e) {
|
|
|
17097
17101
|
view_id: S,
|
|
17098
17102
|
res_id: O
|
|
17099
17103
|
}) {
|
|
17100
|
-
const E = await
|
|
17104
|
+
const E = await V.getHandler().getView({
|
|
17101
17105
|
model: R,
|
|
17102
17106
|
id: S || void 0,
|
|
17103
17107
|
type: "form",
|
|
@@ -17124,7 +17128,7 @@ function ub(t, e) {
|
|
|
17124
17128
|
res_id: C,
|
|
17125
17129
|
domain: P = []
|
|
17126
17130
|
}) {
|
|
17127
|
-
const M = await
|
|
17131
|
+
const M = await V.getHandler().getActionData({
|
|
17128
17132
|
action: R,
|
|
17129
17133
|
context: c
|
|
17130
17134
|
});
|
|
@@ -17136,12 +17140,12 @@ function ub(t, e) {
|
|
|
17136
17140
|
});
|
|
17137
17141
|
return;
|
|
17138
17142
|
}
|
|
17139
|
-
const [j,
|
|
17143
|
+
const [j, N] = R.split(","), L = parseInt(N), B = M.context, U = on({
|
|
17140
17144
|
context: B,
|
|
17141
17145
|
values: l
|
|
17142
17146
|
}), J = M.domain, q = await (async () => {
|
|
17143
17147
|
try {
|
|
17144
|
-
return J ? await
|
|
17148
|
+
return J ? await V.getHandler().evalDomain({
|
|
17145
17149
|
domain: J,
|
|
17146
17150
|
values: l,
|
|
17147
17151
|
context: { ...c, ...U }
|
|
@@ -17164,7 +17168,7 @@ function ub(t, e) {
|
|
|
17164
17168
|
else if (le === "dashboard")
|
|
17165
17169
|
X.push([void 0, "dashboard"]);
|
|
17166
17170
|
else {
|
|
17167
|
-
const { view_id: ve } = await
|
|
17171
|
+
const { view_id: ve } = await V.getHandler().getView({
|
|
17168
17172
|
model: se,
|
|
17169
17173
|
type: le,
|
|
17170
17174
|
id: Y,
|
|
@@ -17233,14 +17237,14 @@ function ub(t, e) {
|
|
|
17233
17237
|
res_model: P,
|
|
17234
17238
|
context: M,
|
|
17235
17239
|
domain: j,
|
|
17236
|
-
views:
|
|
17240
|
+
views: N,
|
|
17237
17241
|
target: L,
|
|
17238
17242
|
string: B,
|
|
17239
17243
|
limit: U
|
|
17240
|
-
} = R, [J, q] =
|
|
17244
|
+
} = R, [J, q] = N[0], se = { id: J, type: q }, ee = M, Q = on({
|
|
17241
17245
|
context: ee,
|
|
17242
17246
|
values: { ...O, ...l }
|
|
17243
|
-
}), re = j, G = j ? await
|
|
17247
|
+
}), re = j, G = j ? await V.getHandler().evalDomain({
|
|
17244
17248
|
domain: j,
|
|
17245
17249
|
values: bn({
|
|
17246
17250
|
fields: S,
|
|
@@ -17252,7 +17256,7 @@ function ub(t, e) {
|
|
|
17252
17256
|
A({
|
|
17253
17257
|
model: P,
|
|
17254
17258
|
target: L,
|
|
17255
|
-
views:
|
|
17259
|
+
views: N,
|
|
17256
17260
|
context: { ...c, ...Q },
|
|
17257
17261
|
domain: G,
|
|
17258
17262
|
title: B,
|
|
@@ -17277,8 +17281,8 @@ function ub(t, e) {
|
|
|
17277
17281
|
overrideUnsettedLimit: P = !1,
|
|
17278
17282
|
values: M = {},
|
|
17279
17283
|
domain: j
|
|
17280
|
-
} = R,
|
|
17281
|
-
action:
|
|
17284
|
+
} = R, N = `${O},${S}`, L = await V.getHandler().getActionData({
|
|
17285
|
+
action: N,
|
|
17282
17286
|
context: c
|
|
17283
17287
|
}), B = L.context, U = on({
|
|
17284
17288
|
context: B,
|
|
@@ -17287,7 +17291,7 @@ function ub(t, e) {
|
|
|
17287
17291
|
});
|
|
17288
17292
|
let J = [];
|
|
17289
17293
|
const q = j && j.length > 0 ? j : L.domain;
|
|
17290
|
-
(j == null ? void 0 : j.length) > 0 ? J = j : L.domain && (J = await
|
|
17294
|
+
(j == null ? void 0 : j.length) > 0 ? J = j : L.domain && (J = await V.getHandler().evalDomain({
|
|
17291
17295
|
domain: L.domain,
|
|
17292
17296
|
values: { ...l, ...M },
|
|
17293
17297
|
context: { ...c, ...U }
|
|
@@ -17307,7 +17311,7 @@ function ub(t, e) {
|
|
|
17307
17311
|
else if (fe === "dashboard")
|
|
17308
17312
|
X.push([void 0, "dashboard"]);
|
|
17309
17313
|
else {
|
|
17310
|
-
const { view_id: Fe } = await
|
|
17314
|
+
const { view_id: Fe } = await V.getHandler().getView({
|
|
17311
17315
|
model: se,
|
|
17312
17316
|
type: fe,
|
|
17313
17317
|
id: ve,
|
|
@@ -17351,7 +17355,7 @@ function ub(t, e) {
|
|
|
17351
17355
|
res_id: C,
|
|
17352
17356
|
domain: P
|
|
17353
17357
|
}) {
|
|
17354
|
-
const M = await
|
|
17358
|
+
const M = await V.getHandler().getActionStringForModel(R);
|
|
17355
17359
|
await I({
|
|
17356
17360
|
action: M,
|
|
17357
17361
|
values: S,
|
|
@@ -17371,7 +17375,7 @@ function ub(t, e) {
|
|
|
17371
17375
|
title: P,
|
|
17372
17376
|
target: M,
|
|
17373
17377
|
initialView: j,
|
|
17374
|
-
action_id:
|
|
17378
|
+
action_id: N,
|
|
17375
17379
|
action_type: L,
|
|
17376
17380
|
res_id: B,
|
|
17377
17381
|
values: U,
|
|
@@ -17386,14 +17390,14 @@ function ub(t, e) {
|
|
|
17386
17390
|
try {
|
|
17387
17391
|
f({
|
|
17388
17392
|
action_type: L,
|
|
17389
|
-
action_id:
|
|
17393
|
+
action_id: N,
|
|
17390
17394
|
context: O
|
|
17391
17395
|
});
|
|
17392
17396
|
} catch (ae) {
|
|
17393
17397
|
console.error(ae);
|
|
17394
17398
|
}
|
|
17395
17399
|
if (M !== "current" && M !== void 0) {
|
|
17396
|
-
const ae = await
|
|
17400
|
+
const ae = await V.getHandler().getView({
|
|
17397
17401
|
model: E,
|
|
17398
17402
|
type: "form",
|
|
17399
17403
|
id: j.type === "form" ? j.id : void 0,
|
|
@@ -17405,7 +17409,7 @@ function ub(t, e) {
|
|
|
17405
17409
|
formView: ae,
|
|
17406
17410
|
context: { ...c, ...O },
|
|
17407
17411
|
actionData: {
|
|
17408
|
-
action_id:
|
|
17412
|
+
action_id: N,
|
|
17409
17413
|
action_type: L,
|
|
17410
17414
|
res_id: B,
|
|
17411
17415
|
view_id: ae.view_id
|
|
@@ -17418,7 +17422,7 @@ function ub(t, e) {
|
|
|
17418
17422
|
content: /* @__PURE__ */ s(
|
|
17419
17423
|
cc,
|
|
17420
17424
|
{
|
|
17421
|
-
action_id:
|
|
17425
|
+
action_id: N,
|
|
17422
17426
|
action_type: L,
|
|
17423
17427
|
tabKey: G,
|
|
17424
17428
|
title: P,
|
|
@@ -17450,16 +17454,16 @@ function ub(t, e) {
|
|
|
17450
17454
|
viewModes: E = ["tree", "form"]
|
|
17451
17455
|
}) {
|
|
17452
17456
|
const C = [];
|
|
17453
|
-
for (const
|
|
17454
|
-
if (
|
|
17457
|
+
for (const N of E)
|
|
17458
|
+
if (N === "dashboard")
|
|
17455
17459
|
C.push([void 0, "dashboard"]);
|
|
17456
17460
|
else {
|
|
17457
|
-
const { view_id: L } = await
|
|
17461
|
+
const { view_id: L } = await V.getHandler().getView({
|
|
17458
17462
|
model: R,
|
|
17459
|
-
type:
|
|
17463
|
+
type: N,
|
|
17460
17464
|
context: c
|
|
17461
17465
|
});
|
|
17462
|
-
C.push([L,
|
|
17466
|
+
C.push([L, N]);
|
|
17463
17467
|
}
|
|
17464
17468
|
const [P, M] = C[0];
|
|
17465
17469
|
return await A({
|
|
@@ -17755,7 +17759,7 @@ export {
|
|
|
17755
17759
|
Zv as CommentsTimelineField,
|
|
17756
17760
|
Ra as ConfigContext,
|
|
17757
17761
|
Bu as ConfigContextProvider,
|
|
17758
|
-
|
|
17762
|
+
V as ConnectionProvider,
|
|
17759
17763
|
Tf as ContentRootProvider,
|
|
17760
17764
|
mw as CurrentTabContent,
|
|
17761
17765
|
St as DEFAULT_SEARCH_LIMIT,
|