@gisce/react-ooui 1.4.11-rc.1 → 1.4.12
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 +206 -206
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +5 -5
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/widgets/base/many2one/Many2oneSuffix.tsx +0 -3
package/dist/react-ooui.es.js
CHANGED
|
@@ -2387,7 +2387,7 @@ const Mt = ({
|
|
|
2387
2387
|
setLimit: A,
|
|
2388
2388
|
searchParams: D = [],
|
|
2389
2389
|
setSearchValues: E
|
|
2390
|
-
} = e, [x, C] = _(!1), [w, T] = _(!1), [$, M] = _(), [S, R] = _(1), [k, I] = _(0), [
|
|
2390
|
+
} = e, [x, C] = _(!1), [w, T] = _(!1), [$, M] = _(), [S, R] = _(1), [k, I] = _(0), [N, O] = _(), [j, q] = _([]), [U, J] = _(void 0), [W, L] = _(void 0), B = fe(b || Bt), te = fe([]), Z = Le((ie) => {
|
|
2391
2391
|
g == null || g([...ie]), q([...ie]);
|
|
2392
2392
|
}, []), ae = Le(() => v || j, [v, j]), X = Le(async () => {
|
|
2393
2393
|
const ie = await H.getHandler().nameSearch({
|
|
@@ -2408,7 +2408,7 @@ const Mt = ({
|
|
|
2408
2408
|
context: d,
|
|
2409
2409
|
attrs: Re
|
|
2410
2410
|
}), ee = Ze[0];
|
|
2411
|
-
te.current = [...ee], J(Qt(Ze[1])),
|
|
2411
|
+
te.current = [...ee], J(Qt(Ze[1])), L(xr(Ze[1]));
|
|
2412
2412
|
const De = ee.map((ke) => ke.id), Ae = y !== void 0 ? It({
|
|
2413
2413
|
resultsToSort: ee,
|
|
2414
2414
|
sorter: y,
|
|
@@ -2443,7 +2443,7 @@ const Mt = ({
|
|
|
2443
2443
|
context: d,
|
|
2444
2444
|
attrs: ee
|
|
2445
2445
|
});
|
|
2446
|
-
J(Qt(ke)),
|
|
2446
|
+
J(Qt(ke)), L(xr(ke)), te.current = [...Ae];
|
|
2447
2447
|
const le = y !== void 0 ? It({
|
|
2448
2448
|
resultsToSort: Ae,
|
|
2449
2449
|
sorter: y,
|
|
@@ -2585,7 +2585,7 @@ const Mt = ({
|
|
|
2585
2585
|
fetchChildrenForRecord: We,
|
|
2586
2586
|
colorsForResults: U,
|
|
2587
2587
|
statusForResults: W,
|
|
2588
|
-
totalItems:
|
|
2588
|
+
totalItems: N
|
|
2589
2589
|
};
|
|
2590
2590
|
}, et = Xe.createContext(null), pl = (e) => {
|
|
2591
2591
|
const {
|
|
@@ -2614,7 +2614,7 @@ const Mt = ({
|
|
|
2614
2614
|
setSearchTreeNameSearch: E,
|
|
2615
2615
|
goToResourceId: x,
|
|
2616
2616
|
limit: C
|
|
2617
|
-
} = e, [w, T] = _(!1), [$, M] = _(!1), [S, R] = _(!1), [k, I] = _(!0), [
|
|
2617
|
+
} = e, [w, T] = _(!1), [$, M] = _(!1), [S, R] = _(!1), [k, I] = _(!0), [N, O] = _(!0), [j, q] = _([]), [U, J] = _(!1), [W, L] = _([]), [B, te] = _(!1), [Z, ae] = _(!0), [X, z] = _(), [he, be] = _({}), [Ee, Ve] = _(C !== void 0 ? C : Bt), [Pe, We] = _(i);
|
|
2618
2618
|
pe(() => {
|
|
2619
2619
|
m && m.length > 0 && !y && (p == null || p(0), f == null || f(m[0].id));
|
|
2620
2620
|
}, [m]), pe(() => {
|
|
@@ -2653,7 +2653,7 @@ const Mt = ({
|
|
|
2653
2653
|
setRemovingItem: R,
|
|
2654
2654
|
formIsLoading: k,
|
|
2655
2655
|
setFormIsLoading: I,
|
|
2656
|
-
treeIsLoading:
|
|
2656
|
+
treeIsLoading: N,
|
|
2657
2657
|
setTreeIsLoading: O,
|
|
2658
2658
|
attachments: j,
|
|
2659
2659
|
setAttachments: q,
|
|
@@ -2661,7 +2661,7 @@ const Mt = ({
|
|
|
2661
2661
|
setSelectedRowItems: b,
|
|
2662
2662
|
duplicatingItem: U,
|
|
2663
2663
|
setDuplicatingItem: J,
|
|
2664
|
-
setSearchParams:
|
|
2664
|
+
setSearchParams: L,
|
|
2665
2665
|
searchParams: W,
|
|
2666
2666
|
searchVisible: B,
|
|
2667
2667
|
setSearchVisible: te,
|
|
@@ -2752,7 +2752,7 @@ const Mt = ({
|
|
|
2752
2752
|
const {
|
|
2753
2753
|
ids: I
|
|
2754
2754
|
} = S || {};
|
|
2755
|
-
let
|
|
2755
|
+
let N = I || [];
|
|
2756
2756
|
const O = typeof $ == "string" ? wt({
|
|
2757
2757
|
context: $,
|
|
2758
2758
|
fields: C,
|
|
@@ -2763,7 +2763,7 @@ const Mt = ({
|
|
|
2763
2763
|
model: M,
|
|
2764
2764
|
name: R,
|
|
2765
2765
|
datas: S,
|
|
2766
|
-
ids:
|
|
2766
|
+
ids: N,
|
|
2767
2767
|
context: {
|
|
2768
2768
|
...T,
|
|
2769
2769
|
...O
|
|
@@ -3092,7 +3092,7 @@ function Cl(e, t) {
|
|
|
3092
3092
|
} = e, {
|
|
3093
3093
|
t: x,
|
|
3094
3094
|
lang: C
|
|
3095
|
-
} = Y(ve), [w, T] = _(!1), [$, M] = _(), [S, R] = _(), [k] = it.useForm(), [I,
|
|
3095
|
+
} = Y(ve), [w, T] = _(!1), [$, M] = _(), [S, R] = _(), [k] = it.useForm(), [I, N] = _(), [O, j] = _(), q = Y(vo), [U, J] = _(), [W, L] = _(!1), B = fe(), te = fe({}), Z = fe({}), ae = fe(!1), X = fe(!1), z = fe(!1), be = (E !== void 0 ? E : U) < xl, Ee = Y(Ne), {
|
|
3096
3096
|
activeId: Ve,
|
|
3097
3097
|
getPlainValues: Pe
|
|
3098
3098
|
} = Ee || {}, We = Y(et), {
|
|
@@ -3129,7 +3129,7 @@ function Cl(e, t) {
|
|
|
3129
3129
|
}, [i, r, y, p, V]), pe(() => {
|
|
3130
3130
|
W && (vn({
|
|
3131
3131
|
elementHasLostFocus: !0
|
|
3132
|
-
}),
|
|
3132
|
+
}), L(!1));
|
|
3133
3133
|
}, [W]);
|
|
3134
3134
|
const le = (K, G, oe, re) => {
|
|
3135
3135
|
de == null || de(!1), ie == null || ie(!1), s == null || s(K, G, oe, re), je == null || je(K);
|
|
@@ -3237,7 +3237,7 @@ function Cl(e, t) {
|
|
|
3237
3237
|
fields: G,
|
|
3238
3238
|
arch: oe
|
|
3239
3239
|
} = K;
|
|
3240
|
-
j(G),
|
|
3240
|
+
j(G), N(oe), await gt({
|
|
3241
3241
|
fields: G,
|
|
3242
3242
|
arch: oe
|
|
3243
3243
|
});
|
|
@@ -3264,7 +3264,7 @@ function Cl(e, t) {
|
|
|
3264
3264
|
fields: oe,
|
|
3265
3265
|
arch: re,
|
|
3266
3266
|
values: G
|
|
3267
|
-
}), we == null || we(!1), de == null || de(!1), Te &&
|
|
3267
|
+
}), we == null || we(!1), de == null || de(!1), Te && L(!0);
|
|
3268
3268
|
}, nr = async () => new Promise(async (K) => {
|
|
3269
3269
|
Oe() ? Ut({
|
|
3270
3270
|
lang: C,
|
|
@@ -4442,16 +4442,16 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4442
4442
|
toolbar: I
|
|
4443
4443
|
} = R;
|
|
4444
4444
|
(w = I.action) == null || w.filter((O) => O.hasOwnProperty("context")).map((O) => k.push(...Cn(O.context))), (T = I.action) == null || T.filter((O) => O.hasOwnProperty("domain")).map((O) => k.push(...lr(O.domain))), ($ = I.relate) == null || $.filter((O) => O.hasOwnProperty("context")).map((O) => k.push(...Cn(O.context))), (M = I.relate) == null || M.filter((O) => O.hasOwnProperty("domain")).map((O) => k.push(...lr(O.domain))), (S = I.print) == null || S.filter((O) => O.hasOwnProperty("context")).map((O) => k.push(...Cn(O.context))), k = k.filter((O) => Object.keys(R.fields).indexOf(O) > -1);
|
|
4445
|
-
let
|
|
4446
|
-
k.length > 0 && (
|
|
4445
|
+
let N = {};
|
|
4446
|
+
k.length > 0 && (N = (await H.getHandler().readObjects({
|
|
4447
4447
|
model: r,
|
|
4448
4448
|
ids: [t],
|
|
4449
4449
|
fieldsToRetrieve: k,
|
|
4450
4450
|
context: i
|
|
4451
|
-
}))[0]),
|
|
4452
|
-
...Ot(
|
|
4451
|
+
}))[0]), N = {
|
|
4452
|
+
...Ot(N, k),
|
|
4453
4453
|
active_id: t
|
|
4454
|
-
}, y(
|
|
4454
|
+
}, y(N), d(!1);
|
|
4455
4455
|
} catch (R) {
|
|
4456
4456
|
d(!1), Ge(R);
|
|
4457
4457
|
return;
|
|
@@ -4502,7 +4502,7 @@ const Bl = (e) => /* @__PURE__ */ n(ye, {
|
|
|
4502
4502
|
const T = f.toolbar.relate.find(($) => $.id === parseInt(w.key));
|
|
4503
4503
|
if (!T)
|
|
4504
4504
|
return;
|
|
4505
|
-
|
|
4505
|
+
g({
|
|
4506
4506
|
relateData: T,
|
|
4507
4507
|
values: m,
|
|
4508
4508
|
fields: f.fields,
|
|
@@ -4623,8 +4623,8 @@ var To = { exports: {} };
|
|
|
4623
4623
|
}, m: function M(S, R) {
|
|
4624
4624
|
if (S.date() < R.date())
|
|
4625
4625
|
return -M(R, S);
|
|
4626
|
-
var k = 12 * (R.year() - S.year()) + (R.month() - S.month()), I = S.clone().add(k, c),
|
|
4627
|
-
return +(-(k + (R - I) / (
|
|
4626
|
+
var k = 12 * (R.year() - S.year()) + (R.month() - S.month()), I = S.clone().add(k, c), N = R - I < 0, O = S.clone().add(k + (N ? -1 : 1), c);
|
|
4627
|
+
return +(-(k + (R - I) / (N ? I - O : O - I)) || 0);
|
|
4628
4628
|
}, a: function(M) {
|
|
4629
4629
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4630
4630
|
}, p: function(M) {
|
|
@@ -4640,8 +4640,8 @@ var To = { exports: {} };
|
|
|
4640
4640
|
if (!S)
|
|
4641
4641
|
return A;
|
|
4642
4642
|
if (typeof S == "string") {
|
|
4643
|
-
var
|
|
4644
|
-
D[
|
|
4643
|
+
var N = S.toLowerCase();
|
|
4644
|
+
D[N] && (I = N), R && (D[N] = R, I = N);
|
|
4645
4645
|
var O = S.split("-");
|
|
4646
4646
|
if (!I && O.length > 1)
|
|
4647
4647
|
return M(O[0]);
|
|
@@ -4666,7 +4666,7 @@ var To = { exports: {} };
|
|
|
4666
4666
|
var S = M.prototype;
|
|
4667
4667
|
return S.parse = function(R) {
|
|
4668
4668
|
this.$d = function(k) {
|
|
4669
|
-
var I = k.date,
|
|
4669
|
+
var I = k.date, N = k.utc;
|
|
4670
4670
|
if (I === null)
|
|
4671
4671
|
return new Date(NaN);
|
|
4672
4672
|
if (w.u(I))
|
|
@@ -4677,7 +4677,7 @@ var To = { exports: {} };
|
|
|
4677
4677
|
var O = I.match(g);
|
|
4678
4678
|
if (O) {
|
|
4679
4679
|
var j = O[2] - 1 || 0, q = (O[7] || "0").substring(0, 3);
|
|
4680
|
-
return
|
|
4680
|
+
return N ? new Date(Date.UTC(O[1], j, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, q)) : new Date(O[1], j, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, q);
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
return new Date(I);
|
|
@@ -4703,37 +4703,37 @@ var To = { exports: {} };
|
|
|
4703
4703
|
}, S.valueOf = function() {
|
|
4704
4704
|
return this.$d.getTime();
|
|
4705
4705
|
}, S.startOf = function(R, k) {
|
|
4706
|
-
var I = this,
|
|
4706
|
+
var I = this, N = !!w.u(k) || k, O = w.p(R), j = function(Z, ae) {
|
|
4707
4707
|
var X = w.w(I.$u ? Date.UTC(I.$y, ae, Z) : new Date(I.$y, ae, Z), I);
|
|
4708
|
-
return
|
|
4708
|
+
return N ? X : X.endOf(d);
|
|
4709
4709
|
}, q = function(Z, ae) {
|
|
4710
|
-
return w.w(I.toDate()[Z].apply(I.toDate("s"), (
|
|
4711
|
-
}, U = this.$W, J = this.$M, W = this.$D,
|
|
4710
|
+
return w.w(I.toDate()[Z].apply(I.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), I);
|
|
4711
|
+
}, U = this.$W, J = this.$M, W = this.$D, L = "set" + (this.$u ? "UTC" : "");
|
|
4712
4712
|
switch (O) {
|
|
4713
4713
|
case y:
|
|
4714
|
-
return
|
|
4714
|
+
return N ? j(1, 0) : j(31, 11);
|
|
4715
4715
|
case c:
|
|
4716
|
-
return
|
|
4716
|
+
return N ? j(1, J) : j(0, J + 1);
|
|
4717
4717
|
case f:
|
|
4718
4718
|
var B = this.$locale().weekStart || 0, te = (U < B ? U + 7 : U) - B;
|
|
4719
|
-
return j(
|
|
4719
|
+
return j(N ? W - te : W + (6 - te), J);
|
|
4720
4720
|
case d:
|
|
4721
4721
|
case p:
|
|
4722
|
-
return q(
|
|
4722
|
+
return q(L + "Hours", 0);
|
|
4723
4723
|
case u:
|
|
4724
|
-
return q(
|
|
4724
|
+
return q(L + "Minutes", 1);
|
|
4725
4725
|
case l:
|
|
4726
|
-
return q(
|
|
4726
|
+
return q(L + "Seconds", 2);
|
|
4727
4727
|
case a:
|
|
4728
|
-
return q(
|
|
4728
|
+
return q(L + "Milliseconds", 3);
|
|
4729
4729
|
default:
|
|
4730
4730
|
return this.clone();
|
|
4731
4731
|
}
|
|
4732
4732
|
}, S.endOf = function(R) {
|
|
4733
4733
|
return this.startOf(R, !1);
|
|
4734
4734
|
}, S.$set = function(R, k) {
|
|
4735
|
-
var I,
|
|
4736
|
-
if (
|
|
4735
|
+
var I, N = w.p(R), O = "set" + (this.$u ? "UTC" : ""), j = (I = {}, I[d] = O + "Date", I[p] = O + "Date", I[c] = O + "Month", I[y] = O + "FullYear", I[u] = O + "Hours", I[l] = O + "Minutes", I[a] = O + "Seconds", I[s] = O + "Milliseconds", I)[N], q = N === d ? this.$D + (k - this.$W) : k;
|
|
4736
|
+
if (N === c || N === y) {
|
|
4737
4737
|
var U = this.clone().set(p, 1);
|
|
4738
4738
|
U.$d[j](q), U.init(), this.$d = U.set(p, Math.min(this.$D, U.daysInMonth())).$d;
|
|
4739
4739
|
} else
|
|
@@ -4744,11 +4744,11 @@ var To = { exports: {} };
|
|
|
4744
4744
|
}, S.get = function(R) {
|
|
4745
4745
|
return this[w.p(R)]();
|
|
4746
4746
|
}, S.add = function(R, k) {
|
|
4747
|
-
var I,
|
|
4747
|
+
var I, N = this;
|
|
4748
4748
|
R = Number(R);
|
|
4749
4749
|
var O = w.p(k), j = function(J) {
|
|
4750
|
-
var W = C(
|
|
4751
|
-
return w.w(W.date(W.date() + Math.round(J * R)),
|
|
4750
|
+
var W = C(N);
|
|
4751
|
+
return w.w(W.date(W.date() + Math.round(J * R)), N);
|
|
4752
4752
|
};
|
|
4753
4753
|
if (O === c)
|
|
4754
4754
|
return this.set(c, this.$M + R);
|
|
@@ -4766,22 +4766,22 @@ var To = { exports: {} };
|
|
|
4766
4766
|
var k = this, I = this.$locale();
|
|
4767
4767
|
if (!this.isValid())
|
|
4768
4768
|
return I.invalidDate || h;
|
|
4769
|
-
var
|
|
4770
|
-
return ae && (ae[X] || ae(k,
|
|
4769
|
+
var N = R || "YYYY-MM-DDTHH:mm:ssZ", O = w.z(this), j = this.$H, q = this.$m, U = this.$M, J = I.weekdays, W = I.months, L = function(ae, X, z, he) {
|
|
4770
|
+
return ae && (ae[X] || ae(k, N)) || z[X].slice(0, he);
|
|
4771
4771
|
}, B = function(ae) {
|
|
4772
4772
|
return w.s(j % 12 || 12, ae, "0");
|
|
4773
4773
|
}, te = I.meridiem || function(ae, X, z) {
|
|
4774
4774
|
var he = ae < 12 ? "AM" : "PM";
|
|
4775
4775
|
return z ? he.toLowerCase() : he;
|
|
4776
|
-
}, Z = { YY: String(this.$y).slice(-2), YYYY: w.s(this.$y, 4, "0"), M: U + 1, MM: w.s(U + 1, 2, "0"), MMM:
|
|
4777
|
-
return
|
|
4776
|
+
}, Z = { YY: String(this.$y).slice(-2), YYYY: w.s(this.$y, 4, "0"), M: U + 1, MM: w.s(U + 1, 2, "0"), MMM: L(I.monthsShort, U, W, 3), MMMM: L(W, U), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: L(I.weekdaysMin, this.$W, J, 2), ddd: L(I.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: w.s(j, 2, "0"), h: B(1), hh: B(2), a: te(j, q, !0), A: te(j, q, !1), m: String(q), mm: w.s(q, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: O };
|
|
4777
|
+
return N.replace(v, function(ae, X) {
|
|
4778
4778
|
return X || Z[ae] || O.replace(":", "");
|
|
4779
4779
|
});
|
|
4780
4780
|
}, S.utcOffset = function() {
|
|
4781
4781
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4782
4782
|
}, S.diff = function(R, k, I) {
|
|
4783
|
-
var
|
|
4784
|
-
return J = (
|
|
4783
|
+
var N, O = w.p(k), j = C(R), q = (j.utcOffset() - this.utcOffset()) * i, U = this - j, J = w.m(this, j);
|
|
4784
|
+
return J = (N = {}, N[y] = J / 12, N[c] = J, N[m] = J / 3, N[f] = (U - q) / 6048e5, N[d] = (U - q) / 864e5, N[u] = U / o, N[l] = U / i, N[a] = U / r, N)[O] || U, I ? J : w.a(J);
|
|
4785
4785
|
}, S.daysInMonth = function() {
|
|
4786
4786
|
return this.endOf(c).$D;
|
|
4787
4787
|
}, S.$locale = function() {
|
|
@@ -4789,8 +4789,8 @@ var To = { exports: {} };
|
|
|
4789
4789
|
}, S.locale = function(R, k) {
|
|
4790
4790
|
if (!R)
|
|
4791
4791
|
return this.$L;
|
|
4792
|
-
var I = this.clone(),
|
|
4793
|
-
return
|
|
4792
|
+
var I = this.clone(), N = x(R, k, !0);
|
|
4793
|
+
return N && (I.$L = N), I;
|
|
4794
4794
|
}, S.clone = function() {
|
|
4795
4795
|
return w.w(this.$d, this);
|
|
4796
4796
|
}, S.toDate = function() {
|
|
@@ -5112,7 +5112,7 @@ function pn(e) {
|
|
|
5112
5112
|
const J = mo(w.current, s);
|
|
5113
5113
|
D(J), $.current = r;
|
|
5114
5114
|
}, [s]);
|
|
5115
|
-
const k = (t - 1) * $.current + 1, I = k - 1 + A.length,
|
|
5115
|
+
const k = (t - 1) * $.current + 1, I = k - 1 + A.length, N = i === void 0 ? null : i === 0 ? T("no_results") : T("summary").replace("{from}", k == null ? void 0 : k.toString()).replace("{to}", I == null ? void 0 : I.toString()).replace("{total}", i == null ? void 0 : i.toString()), O = () => !d || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
|
|
5116
5116
|
className: "pb-4"
|
|
5117
5117
|
}) : /* @__PURE__ */ P(xe, {
|
|
5118
5118
|
align: "bottom",
|
|
@@ -5129,7 +5129,7 @@ function pn(e) {
|
|
|
5129
5129
|
}), /* @__PURE__ */ n(ce, {
|
|
5130
5130
|
span: 12,
|
|
5131
5131
|
className: "text-right",
|
|
5132
|
-
children:
|
|
5132
|
+
children: N
|
|
5133
5133
|
})]
|
|
5134
5134
|
});
|
|
5135
5135
|
function j() {
|
|
@@ -5140,20 +5140,20 @@ function pn(e) {
|
|
|
5140
5140
|
}));
|
|
5141
5141
|
if (!W || W.length === 0)
|
|
5142
5142
|
return null;
|
|
5143
|
-
let
|
|
5143
|
+
let L = [], B = ((te = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : te.length) > 0 ? A.filter((Z) => f == null ? void 0 : f.selectedRowKeys.includes(Z.id)) : A;
|
|
5144
5144
|
return W.forEach((Z) => {
|
|
5145
5145
|
const ae = B.reduce((X, z) => z[Z.field] && !isNaN(z[Z.field]) ? X + z[Z.field] : X, 0);
|
|
5146
|
-
|
|
5146
|
+
L.push(`${Z.label}: ${Math.round(ae * 100) / 100}`);
|
|
5147
5147
|
}), /* @__PURE__ */ n("div", {
|
|
5148
5148
|
className: "p-1 pb-0 pl-2 mt-2 ",
|
|
5149
|
-
children:
|
|
5149
|
+
children: L.join(", ")
|
|
5150
5150
|
});
|
|
5151
5151
|
}
|
|
5152
5152
|
let q, U = c;
|
|
5153
5153
|
if (w.current !== null) {
|
|
5154
5154
|
q = Pl(E, A, 600);
|
|
5155
5155
|
const W = w.current;
|
|
5156
|
-
c && W.columns.some((
|
|
5156
|
+
c && W.columns.some((L) => L.sum !== void 0) && (U = c - 30);
|
|
5157
5157
|
}
|
|
5158
5158
|
return w.current === null ? /* @__PURE__ */ n(Me, {
|
|
5159
5159
|
style: {
|
|
@@ -5215,14 +5215,14 @@ function lc(e, t) {
|
|
|
5215
5215
|
processAction: R
|
|
5216
5216
|
} = S || {}, k = Y(et), {
|
|
5217
5217
|
setResults: I = void 0,
|
|
5218
|
-
setCurrentItemIndex:
|
|
5218
|
+
setCurrentItemIndex: N = void 0,
|
|
5219
5219
|
currentId: O = void 0,
|
|
5220
5220
|
results: j = void 0,
|
|
5221
5221
|
selectedRowItems: q = void 0,
|
|
5222
5222
|
setSelectedRowItems: U = void 0,
|
|
5223
5223
|
searchParams: J = [],
|
|
5224
5224
|
setSearchParams: W = void 0,
|
|
5225
|
-
searchVisible:
|
|
5225
|
+
searchVisible: L = !0,
|
|
5226
5226
|
setSearchVisible: B = void 0,
|
|
5227
5227
|
sorter: te = void 0,
|
|
5228
5228
|
setSorter: Z = void 0,
|
|
@@ -5265,7 +5265,7 @@ function lc(e, t) {
|
|
|
5265
5265
|
treeView: b,
|
|
5266
5266
|
sorter: te,
|
|
5267
5267
|
setSorter: Z,
|
|
5268
|
-
setCurrentItemIndex:
|
|
5268
|
+
setCurrentItemIndex: N,
|
|
5269
5269
|
setResultsActionView: I,
|
|
5270
5270
|
resultsActionView: j,
|
|
5271
5271
|
domain: u,
|
|
@@ -5372,7 +5372,7 @@ function lc(e, t) {
|
|
|
5372
5372
|
onLimitChange: Ke,
|
|
5373
5373
|
setSearchFilterHeight: T,
|
|
5374
5374
|
searchError: we,
|
|
5375
|
-
searchVisible:
|
|
5375
|
+
searchVisible: L,
|
|
5376
5376
|
searchValues: he
|
|
5377
5377
|
}), /* @__PURE__ */ n(pn, {
|
|
5378
5378
|
context: c,
|
|
@@ -5558,14 +5558,14 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5558
5558
|
}, [t]), pe(() => {
|
|
5559
5559
|
k && I.length === 0 ? U(k) : k && I.length > 0 ? A(I) : !k && !I && A(D.current || "");
|
|
5560
5560
|
}, [t]);
|
|
5561
|
-
const
|
|
5561
|
+
const N = (B) => {
|
|
5562
5562
|
r == null || r(B), $ == null || $();
|
|
5563
5563
|
}, O = (B) => {
|
|
5564
|
-
D.current = B.target.value,
|
|
5564
|
+
D.current = B.target.value, N([void 0, ""]);
|
|
5565
5565
|
}, j = async () => {
|
|
5566
5566
|
if (!h && b !== I) {
|
|
5567
5567
|
if (await new Promise((B) => setTimeout(B, 100)), V.current) {
|
|
5568
|
-
|
|
5568
|
+
N([void 0, ""]);
|
|
5569
5569
|
return;
|
|
5570
5570
|
}
|
|
5571
5571
|
g(!0);
|
|
@@ -5581,7 +5581,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5581
5581
|
...l
|
|
5582
5582
|
}
|
|
5583
5583
|
});
|
|
5584
|
-
B.length === 1 ? (D.current = void 0,
|
|
5584
|
+
B.length === 1 ? (D.current = void 0, N(B[0])) : q(D.current);
|
|
5585
5585
|
}
|
|
5586
5586
|
} catch (B) {
|
|
5587
5587
|
nn(B);
|
|
@@ -5616,7 +5616,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5616
5616
|
...l
|
|
5617
5617
|
}
|
|
5618
5618
|
});
|
|
5619
|
-
|
|
5619
|
+
N([B, te[0][1]]);
|
|
5620
5620
|
} catch (te) {
|
|
5621
5621
|
nn(te);
|
|
5622
5622
|
} finally {
|
|
@@ -5638,7 +5638,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5638
5638
|
}))), R(M.current);
|
|
5639
5639
|
}
|
|
5640
5640
|
async function W(B) {
|
|
5641
|
-
B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await j()) : B.code === "Backspace" && k !== void 0 && (B.preventDefault(), B.stopPropagation(),
|
|
5641
|
+
B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await j()) : B.code === "Backspace" && k !== void 0 && (B.preventDefault(), B.stopPropagation(), N([void 0, ""]));
|
|
5642
5642
|
}
|
|
5643
5643
|
return /* @__PURE__ */ P(xe, {
|
|
5644
5644
|
gutter: 8,
|
|
@@ -5770,9 +5770,9 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5770
5770
|
}, [t, o]);
|
|
5771
5771
|
async function S({
|
|
5772
5772
|
domain: I,
|
|
5773
|
-
isTotal:
|
|
5773
|
+
isTotal: N
|
|
5774
5774
|
}) {
|
|
5775
|
-
if (
|
|
5775
|
+
if (N)
|
|
5776
5776
|
return await R({
|
|
5777
5777
|
domain: I
|
|
5778
5778
|
});
|
|
@@ -5802,13 +5802,13 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5802
5802
|
domain: I
|
|
5803
5803
|
}) {
|
|
5804
5804
|
if (d && f) {
|
|
5805
|
-
const
|
|
5805
|
+
const N = await H.getHandler().searchAllIds({
|
|
5806
5806
|
params: I,
|
|
5807
5807
|
model: t,
|
|
5808
5808
|
context: i
|
|
5809
5809
|
}), O = await H.getHandler().readObjects({
|
|
5810
5810
|
model: t,
|
|
5811
|
-
ids:
|
|
5811
|
+
ids: N,
|
|
5812
5812
|
fieldsToRetrieve: [d],
|
|
5813
5813
|
context: i
|
|
5814
5814
|
});
|
|
@@ -5825,7 +5825,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5825
5825
|
}
|
|
5826
5826
|
async function k() {
|
|
5827
5827
|
y(!0);
|
|
5828
|
-
let I,
|
|
5828
|
+
let I, N;
|
|
5829
5829
|
try {
|
|
5830
5830
|
const O = await S({
|
|
5831
5831
|
domain: r,
|
|
@@ -5842,12 +5842,12 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5842
5842
|
isTotal: !0
|
|
5843
5843
|
}), V(I);
|
|
5844
5844
|
}
|
|
5845
|
-
if (I ? (
|
|
5845
|
+
if (I ? (N = Math.round(O / I * 100 * 100) / 100, v(N)) : v(0), o) {
|
|
5846
5846
|
const j = await H.getHandler().parseCondition({
|
|
5847
5847
|
condition: o,
|
|
5848
5848
|
values: {
|
|
5849
5849
|
value: O,
|
|
5850
|
-
percent:
|
|
5850
|
+
percent: N
|
|
5851
5851
|
},
|
|
5852
5852
|
context: i
|
|
5853
5853
|
});
|
|
@@ -5859,7 +5859,7 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5859
5859
|
condition: l,
|
|
5860
5860
|
values: {
|
|
5861
5861
|
value: O,
|
|
5862
|
-
percent:
|
|
5862
|
+
percent: N
|
|
5863
5863
|
},
|
|
5864
5864
|
context: i
|
|
5865
5865
|
});
|
|
@@ -5888,8 +5888,8 @@ const Io = bt(lc), Do = (e) => {
|
|
|
5888
5888
|
}) : /* @__PURE__ */ n(zn, {
|
|
5889
5889
|
bounds: !0,
|
|
5890
5890
|
onResize: (I) => {
|
|
5891
|
-
var
|
|
5892
|
-
A((
|
|
5891
|
+
var N, O;
|
|
5892
|
+
A((N = I.bounds) == null ? void 0 : N.height), E((O = I.bounds) == null ? void 0 : O.width);
|
|
5893
5893
|
},
|
|
5894
5894
|
children: ({
|
|
5895
5895
|
measureRef: I
|
|
@@ -6611,9 +6611,9 @@ const Pc = (e) => {
|
|
|
6611
6611
|
} = f || {}, {
|
|
6612
6612
|
lang: g,
|
|
6613
6613
|
t: v
|
|
6614
|
-
} = Y(ve), [F, V] = _(!1), [b, A] = _(!1), [D, E] = _(), [x, C] = _(!1), [w, T] = _(!1), [$, M] = _(), [S, R] = _([]), [k, I] = _(!1),
|
|
6614
|
+
} = Y(ve), [F, V] = _(!1), [b, A] = _(!1), [D, E] = _(), [x, C] = _(!1), [w, T] = _(!1), [$, M] = _(), [S, R] = _([]), [k, I] = _(!1), N = fe([]), [O, j] = _(), q = fe(), [U, J] = _(void 0), {
|
|
6615
6615
|
readOnly: W,
|
|
6616
|
-
relation:
|
|
6616
|
+
relation: L,
|
|
6617
6617
|
context: B,
|
|
6618
6618
|
domain: te
|
|
6619
6619
|
} = i, Z = i.type === "many2many", {
|
|
@@ -6652,7 +6652,7 @@ const Pc = (e) => {
|
|
|
6652
6652
|
formView: {
|
|
6653
6653
|
fields: ((ge = o.get("form")) == null ? void 0 : ge.fields) || {}
|
|
6654
6654
|
},
|
|
6655
|
-
model:
|
|
6655
|
+
model: L,
|
|
6656
6656
|
items: s,
|
|
6657
6657
|
context: {
|
|
6658
6658
|
...p == null ? void 0 : p(),
|
|
@@ -6668,7 +6668,7 @@ const Pc = (e) => {
|
|
|
6668
6668
|
}
|
|
6669
6669
|
};
|
|
6670
6670
|
async function Pe() {
|
|
6671
|
-
te && (
|
|
6671
|
+
te && (N.current = await H.getHandler().evalDomain({
|
|
6672
6672
|
domain: te,
|
|
6673
6673
|
values: Mt({
|
|
6674
6674
|
fields: m(),
|
|
@@ -6676,7 +6676,7 @@ const Pc = (e) => {
|
|
|
6676
6676
|
}),
|
|
6677
6677
|
fields: m(),
|
|
6678
6678
|
context: p()
|
|
6679
|
-
})), h && h.length > 0 && (
|
|
6679
|
+
})), h && h.length > 0 && (N.current = N.current.concat(Pr({
|
|
6680
6680
|
domain: h,
|
|
6681
6681
|
widgetFieldName: ae
|
|
6682
6682
|
})));
|
|
@@ -6697,7 +6697,7 @@ const Pc = (e) => {
|
|
|
6697
6697
|
}) : d(u + 1));
|
|
6698
6698
|
}, je = async () => {
|
|
6699
6699
|
const Q = X[u].id, se = (await H.getHandler().readObjects({
|
|
6700
|
-
model:
|
|
6700
|
+
model: L,
|
|
6701
6701
|
ids: [Q],
|
|
6702
6702
|
fields: o.get("form").fields,
|
|
6703
6703
|
context: {
|
|
@@ -6705,7 +6705,7 @@ const Pc = (e) => {
|
|
|
6705
6705
|
...B
|
|
6706
6706
|
}
|
|
6707
6707
|
}))[0], Ce = (await H.getHandler().readObjects({
|
|
6708
|
-
model:
|
|
6708
|
+
model: L,
|
|
6709
6709
|
ids: [Q],
|
|
6710
6710
|
fields: o.get("tree").fields,
|
|
6711
6711
|
context: {
|
|
@@ -6846,7 +6846,7 @@ const Pc = (e) => {
|
|
|
6846
6846
|
try {
|
|
6847
6847
|
for (const ge of Ce) {
|
|
6848
6848
|
const Se = (await H.getHandler().readObjects({
|
|
6849
|
-
model:
|
|
6849
|
+
model: L,
|
|
6850
6850
|
ids: [ge],
|
|
6851
6851
|
fields: o.get("form").fields,
|
|
6852
6852
|
context: {
|
|
@@ -6854,7 +6854,7 @@ const Pc = (e) => {
|
|
|
6854
6854
|
...B
|
|
6855
6855
|
}
|
|
6856
6856
|
}))[0], Fe = (await H.getHandler().readObjects({
|
|
6857
|
-
model:
|
|
6857
|
+
model: L,
|
|
6858
6858
|
ids: [ge],
|
|
6859
6859
|
fields: o.get("tree").fields,
|
|
6860
6860
|
context: {
|
|
@@ -6895,7 +6895,7 @@ const Pc = (e) => {
|
|
|
6895
6895
|
...p == null ? void 0 : p(),
|
|
6896
6896
|
...B
|
|
6897
6897
|
},
|
|
6898
|
-
model:
|
|
6898
|
+
model: L,
|
|
6899
6899
|
id: (Ce = X[u]) == null ? void 0 : Ce.id,
|
|
6900
6900
|
submitMode: "values",
|
|
6901
6901
|
onFieldsChange: (Fe) => {
|
|
@@ -6988,7 +6988,7 @@ const Pc = (e) => {
|
|
|
6988
6988
|
showToggleButton: o.size > 1
|
|
6989
6989
|
}), ue(), /* @__PURE__ */ n(qt, {
|
|
6990
6990
|
formView: o.get("form"),
|
|
6991
|
-
model:
|
|
6991
|
+
model: L,
|
|
6992
6992
|
id: $ == null ? void 0 : $.id,
|
|
6993
6993
|
submitMode: "2many",
|
|
6994
6994
|
values: $ == null ? void 0 : $.values,
|
|
@@ -7005,8 +7005,8 @@ const Pc = (e) => {
|
|
|
7005
7005
|
readOnly: W,
|
|
7006
7006
|
mustClearAfterSave: rt
|
|
7007
7007
|
}), /* @__PURE__ */ n(Do, {
|
|
7008
|
-
domain:
|
|
7009
|
-
model:
|
|
7008
|
+
domain: N.current,
|
|
7009
|
+
model: L,
|
|
7010
7010
|
context: {
|
|
7011
7011
|
...p == null ? void 0 : p(),
|
|
7012
7012
|
...B
|
|
@@ -7705,11 +7705,11 @@ var $o = { exports: {} };
|
|
|
7705
7705
|
R.call(w, I), C = C.replace(I, "");
|
|
7706
7706
|
}
|
|
7707
7707
|
}
|
|
7708
|
-
return function(
|
|
7709
|
-
var O =
|
|
7708
|
+
return function(N) {
|
|
7709
|
+
var O = N.afternoon;
|
|
7710
7710
|
if (O !== void 0) {
|
|
7711
|
-
var j =
|
|
7712
|
-
O ? j < 12 && (
|
|
7711
|
+
var j = N.hours;
|
|
7712
|
+
O ? j < 12 && (N.hours += 12) : j === 12 && (N.hours = 0), delete N.afternoon;
|
|
7713
7713
|
}
|
|
7714
7714
|
}(w), w;
|
|
7715
7715
|
};
|
|
@@ -7723,14 +7723,14 @@ var $o = { exports: {} };
|
|
|
7723
7723
|
var x = E[1];
|
|
7724
7724
|
if (typeof x == "string") {
|
|
7725
7725
|
var C = E[2] === !0, w = E[3] === !0, T = C || w, $ = E[2];
|
|
7726
|
-
w && ($ = E[2]), l = this.$locale(), !C && $ && (l = v.Ls[$]), this.$d = function(k, I,
|
|
7726
|
+
w && ($ = E[2]), l = this.$locale(), !C && $ && (l = v.Ls[$]), this.$d = function(k, I, N) {
|
|
7727
7727
|
try {
|
|
7728
7728
|
if (["x", "X"].indexOf(I) > -1)
|
|
7729
7729
|
return new Date((I === "X" ? 1e3 : 1) * k);
|
|
7730
|
-
var O = p(I)(k), j = O.year, q = O.month, U = O.day, J = O.hours, W = O.minutes,
|
|
7730
|
+
var O = p(I)(k), j = O.year, q = O.month, U = O.day, J = O.hours, W = O.minutes, L = O.seconds, B = O.milliseconds, te = O.zone, Z = new Date(), ae = U || (j || q ? 1 : Z.getDate()), X = j || Z.getFullYear(), z = 0;
|
|
7731
7731
|
j && !q || (z = q > 0 ? q - 1 : Z.getMonth());
|
|
7732
|
-
var he = J || 0, be = W || 0, Ee =
|
|
7733
|
-
return te ? new Date(Date.UTC(X, z, ae, he, be, Ee, Ve + 60 * te.offset * 1e3)) :
|
|
7732
|
+
var he = J || 0, be = W || 0, Ee = L || 0, Ve = B || 0;
|
|
7733
|
+
return te ? new Date(Date.UTC(X, z, ae, he, be, Ee, Ve + 60 * te.offset * 1e3)) : N ? new Date(Date.UTC(X, z, ae, he, be, Ee, Ve)) : new Date(X, z, ae, he, be, Ee, Ve);
|
|
7734
7734
|
} catch {
|
|
7735
7735
|
return new Date("");
|
|
7736
7736
|
}
|
|
@@ -8384,31 +8384,31 @@ function bd({
|
|
|
8384
8384
|
openRelate: S,
|
|
8385
8385
|
openDefaultActionForModel: R
|
|
8386
8386
|
} = M || {};
|
|
8387
|
-
function k(
|
|
8387
|
+
function k(L) {
|
|
8388
8388
|
if (s) {
|
|
8389
8389
|
gd({
|
|
8390
8390
|
lang: w,
|
|
8391
8391
|
onOk: () => {
|
|
8392
|
-
|
|
8392
|
+
L();
|
|
8393
8393
|
}
|
|
8394
8394
|
});
|
|
8395
8395
|
return;
|
|
8396
8396
|
}
|
|
8397
|
-
|
|
8397
|
+
L();
|
|
8398
8398
|
}
|
|
8399
|
-
function I(
|
|
8399
|
+
function I(L) {
|
|
8400
8400
|
if (s) {
|
|
8401
8401
|
Ut({
|
|
8402
8402
|
lang: w,
|
|
8403
8403
|
onOk: () => {
|
|
8404
|
-
|
|
8404
|
+
L();
|
|
8405
8405
|
}
|
|
8406
8406
|
});
|
|
8407
8407
|
return;
|
|
8408
8408
|
}
|
|
8409
|
-
|
|
8409
|
+
L();
|
|
8410
8410
|
}
|
|
8411
|
-
function
|
|
8411
|
+
function N() {
|
|
8412
8412
|
u && u.length > f + 1 ? (d == null || d(f + 1), c == null || c(u[f + 1].id)) : u && f + 1 === u.length && (d == null || d(0), c == null || c(u[0].id));
|
|
8413
8413
|
}
|
|
8414
8414
|
function O() {
|
|
@@ -8429,12 +8429,12 @@ function bd({
|
|
|
8429
8429
|
model: m,
|
|
8430
8430
|
ids: [l]
|
|
8431
8431
|
});
|
|
8432
|
-
const
|
|
8433
|
-
v == null || v(
|
|
8432
|
+
const L = u == null ? void 0 : u.filter((te) => te.id !== l);
|
|
8433
|
+
v == null || v(L);
|
|
8434
8434
|
let B = 0;
|
|
8435
|
-
f > 0 && f <= u.length - 1 && (B = f - 1),
|
|
8436
|
-
} catch (
|
|
8437
|
-
nn(JSON.stringify(
|
|
8435
|
+
f > 0 && f <= u.length - 1 && (B = f - 1), L != null && L[B] ? (c == null || c(L == null ? void 0 : L[B].id), d == null || d(B)) : (c == null || c(void 0), d == null || d(void 0));
|
|
8436
|
+
} catch (L) {
|
|
8437
|
+
nn(JSON.stringify(L));
|
|
8438
8438
|
} finally {
|
|
8439
8439
|
y == null || y(!1);
|
|
8440
8440
|
}
|
|
@@ -8442,22 +8442,22 @@ function bd({
|
|
|
8442
8442
|
async function U() {
|
|
8443
8443
|
try {
|
|
8444
8444
|
g == null || g(!0);
|
|
8445
|
-
const
|
|
8445
|
+
const L = await H.getHandler().duplicate({
|
|
8446
8446
|
id: l,
|
|
8447
8447
|
model: m,
|
|
8448
8448
|
context: b.current.getContext()
|
|
8449
8449
|
});
|
|
8450
|
-
|
|
8451
|
-
} catch (
|
|
8452
|
-
nn(JSON.stringify(
|
|
8450
|
+
L && await (x == null ? void 0 : x(L));
|
|
8451
|
+
} catch (L) {
|
|
8452
|
+
nn(JSON.stringify(L));
|
|
8453
8453
|
} finally {
|
|
8454
8454
|
g == null || g(!1);
|
|
8455
8455
|
}
|
|
8456
8456
|
}
|
|
8457
8457
|
const J = a || p || F || h;
|
|
8458
|
-
function W(
|
|
8458
|
+
function W(L) {
|
|
8459
8459
|
$ == null || $({
|
|
8460
|
-
actionData:
|
|
8460
|
+
actionData: L,
|
|
8461
8461
|
values: b.current.getValues(),
|
|
8462
8462
|
fields: b.current.getFields(),
|
|
8463
8463
|
context: b.current.getContext(),
|
|
@@ -8512,8 +8512,8 @@ function bd({
|
|
|
8512
8512
|
currentView: r,
|
|
8513
8513
|
previousView: D,
|
|
8514
8514
|
availableViews: t,
|
|
8515
|
-
onChangeView: (
|
|
8516
|
-
E == null || E(r), A == null || A(!1), i == null || i(
|
|
8515
|
+
onChangeView: (L) => {
|
|
8516
|
+
E == null || E(r), A == null || A(!1), i == null || i(L);
|
|
8517
8517
|
},
|
|
8518
8518
|
disabled: J,
|
|
8519
8519
|
formHasChanges: s
|
|
@@ -8532,7 +8532,7 @@ function bd({
|
|
|
8532
8532
|
disabled: J,
|
|
8533
8533
|
loading: !1,
|
|
8534
8534
|
onClick: () => {
|
|
8535
|
-
I(
|
|
8535
|
+
I(N);
|
|
8536
8536
|
}
|
|
8537
8537
|
})]
|
|
8538
8538
|
}), Tt(), /* @__PURE__ */ n(Dt, {
|
|
@@ -8540,26 +8540,26 @@ function bd({
|
|
|
8540
8540
|
disabled: J,
|
|
8541
8541
|
tooltip: C("actions"),
|
|
8542
8542
|
items: e == null ? void 0 : e.action,
|
|
8543
|
-
onItemClick: async (
|
|
8544
|
-
!
|
|
8543
|
+
onItemClick: async (L) => {
|
|
8544
|
+
!L || !(await Ft({
|
|
8545
8545
|
onFormSave: o
|
|
8546
|
-
})).succeed || W(
|
|
8546
|
+
})).succeed || W(L);
|
|
8547
8547
|
}
|
|
8548
8548
|
}), /* @__PURE__ */ n(Dt, {
|
|
8549
8549
|
icon: /* @__PURE__ */ n(Yn, {}),
|
|
8550
8550
|
disabled: J,
|
|
8551
8551
|
tooltip: C("reports"),
|
|
8552
8552
|
items: e == null ? void 0 : e.print,
|
|
8553
|
-
onItemClick: async (
|
|
8554
|
-
if (!
|
|
8553
|
+
onItemClick: async (L) => {
|
|
8554
|
+
if (!L)
|
|
8555
8555
|
return;
|
|
8556
8556
|
const B = await Ft({
|
|
8557
8557
|
onFormSave: o
|
|
8558
8558
|
});
|
|
8559
8559
|
!B.succeed || W({
|
|
8560
|
-
...
|
|
8560
|
+
...L,
|
|
8561
8561
|
datas: {
|
|
8562
|
-
...
|
|
8562
|
+
...L.datas || {},
|
|
8563
8563
|
ids: [B.currentId]
|
|
8564
8564
|
}
|
|
8565
8565
|
});
|
|
@@ -8569,27 +8569,27 @@ function bd({
|
|
|
8569
8569
|
disabled: J,
|
|
8570
8570
|
tooltip: C("related"),
|
|
8571
8571
|
items: e == null ? void 0 : e.relate,
|
|
8572
|
-
onItemClick: async (
|
|
8573
|
-
!
|
|
8572
|
+
onItemClick: async (L) => {
|
|
8573
|
+
!L || !(await Ft({
|
|
8574
8574
|
onFormSave: o
|
|
8575
8575
|
})).succeed || S({
|
|
8576
|
-
relateData:
|
|
8576
|
+
relateData: L,
|
|
8577
8577
|
values: b.current.getValues(),
|
|
8578
8578
|
fields: b.current.getFields(),
|
|
8579
|
-
action_id:
|
|
8580
|
-
action_type:
|
|
8579
|
+
action_id: L.id,
|
|
8580
|
+
action_type: L.type
|
|
8581
8581
|
});
|
|
8582
8582
|
}
|
|
8583
8583
|
}), /* @__PURE__ */ n(wd, {
|
|
8584
8584
|
disabled: J,
|
|
8585
8585
|
attachments: V,
|
|
8586
8586
|
onAddNewAttachment: async () => {
|
|
8587
|
-
const
|
|
8587
|
+
const L = await Ft({
|
|
8588
8588
|
onFormSave: o
|
|
8589
8589
|
});
|
|
8590
|
-
if (!
|
|
8590
|
+
if (!L.succeed)
|
|
8591
8591
|
return;
|
|
8592
|
-
const B =
|
|
8592
|
+
const B = L.currentId, te = m;
|
|
8593
8593
|
R({
|
|
8594
8594
|
model: "ir.attachment",
|
|
8595
8595
|
values: {
|
|
@@ -8603,24 +8603,24 @@ function bd({
|
|
|
8603
8603
|
});
|
|
8604
8604
|
},
|
|
8605
8605
|
onListAllAttachments: async () => {
|
|
8606
|
-
const
|
|
8606
|
+
const L = await Ft({
|
|
8607
8607
|
onFormSave: o
|
|
8608
8608
|
});
|
|
8609
|
-
if (!
|
|
8609
|
+
if (!L.succeed)
|
|
8610
8610
|
return;
|
|
8611
|
-
const B =
|
|
8611
|
+
const B = L.currentId;
|
|
8612
8612
|
R({
|
|
8613
8613
|
model: "ir.attachment",
|
|
8614
8614
|
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${B}`]],
|
|
8615
8615
|
initialViewType: "tree"
|
|
8616
8616
|
});
|
|
8617
8617
|
},
|
|
8618
|
-
onViewAttachmentDetails: async (
|
|
8618
|
+
onViewAttachmentDetails: async (L) => {
|
|
8619
8619
|
!(await Ft({
|
|
8620
8620
|
onFormSave: o
|
|
8621
8621
|
})).succeed || R({
|
|
8622
8622
|
model: "ir.attachment",
|
|
8623
|
-
res_id:
|
|
8623
|
+
res_id: L.id,
|
|
8624
8624
|
initialViewType: "form"
|
|
8625
8625
|
});
|
|
8626
8626
|
}
|
|
@@ -9049,7 +9049,7 @@ const Dd = (e) => {
|
|
|
9049
9049
|
clear: R,
|
|
9050
9050
|
searchFilterLoading: k,
|
|
9051
9051
|
searchError: I,
|
|
9052
|
-
offset:
|
|
9052
|
+
offset: N,
|
|
9053
9053
|
tableRefreshing: O
|
|
9054
9054
|
} = wo({
|
|
9055
9055
|
model: i,
|
|
@@ -9090,7 +9090,7 @@ const Dd = (e) => {
|
|
|
9090
9090
|
searchFields: po([a.search_fields, l.search_fields]),
|
|
9091
9091
|
limit: E,
|
|
9092
9092
|
onClear: R,
|
|
9093
|
-
offset:
|
|
9093
|
+
offset: N,
|
|
9094
9094
|
isSearching: k,
|
|
9095
9095
|
onSubmit: (j) => {
|
|
9096
9096
|
S(!1), h == null || h(j.params), v == null || v(!1);
|
|
@@ -9252,7 +9252,7 @@ function kd(e) {
|
|
|
9252
9252
|
lang: M
|
|
9253
9253
|
} = Y(ve), S = Y(Et), {
|
|
9254
9254
|
processAction: R
|
|
9255
|
-
} = S || {}, [k, I] = _(!1),
|
|
9255
|
+
} = S || {}, [k, I] = _(!1), N = v !== void 0 && v.trim().length > 0;
|
|
9256
9256
|
function O() {
|
|
9257
9257
|
Wt({
|
|
9258
9258
|
confirmMessage: $("confirmRemove"),
|
|
@@ -9267,10 +9267,10 @@ function kd(e) {
|
|
|
9267
9267
|
try {
|
|
9268
9268
|
s == null || s(!0), await H.getHandler().delete({
|
|
9269
9269
|
model: d,
|
|
9270
|
-
ids: o.map((
|
|
9270
|
+
ids: o.map((L) => L.id)
|
|
9271
9271
|
}), c == null || c(void 0), m == null || m(void 0), (W = f == null ? void 0 : f.current) == null || W.refreshResults();
|
|
9272
|
-
} catch (
|
|
9273
|
-
Ge(
|
|
9272
|
+
} catch (L) {
|
|
9273
|
+
Ge(L);
|
|
9274
9274
|
} finally {
|
|
9275
9275
|
s == null || s(!1);
|
|
9276
9276
|
}
|
|
@@ -9279,16 +9279,16 @@ function kd(e) {
|
|
|
9279
9279
|
var W;
|
|
9280
9280
|
try {
|
|
9281
9281
|
u == null || u(!0);
|
|
9282
|
-
const
|
|
9282
|
+
const L = o[0].id;
|
|
9283
9283
|
await H.getHandler().duplicate({
|
|
9284
|
-
id:
|
|
9284
|
+
id: L,
|
|
9285
9285
|
model: d,
|
|
9286
9286
|
context: {
|
|
9287
9287
|
...x
|
|
9288
9288
|
}
|
|
9289
9289
|
}) && ((W = f == null ? void 0 : f.current) == null || W.refreshResults());
|
|
9290
|
-
} catch (
|
|
9291
|
-
Ge(
|
|
9290
|
+
} catch (L) {
|
|
9291
|
+
Ge(L);
|
|
9292
9292
|
} finally {
|
|
9293
9293
|
u == null || u(!1);
|
|
9294
9294
|
}
|
|
@@ -9297,18 +9297,18 @@ function kd(e) {
|
|
|
9297
9297
|
R == null || R({
|
|
9298
9298
|
actionData: W,
|
|
9299
9299
|
values: {
|
|
9300
|
-
active_id: o == null ? void 0 : o.map((
|
|
9301
|
-
active_ids: o == null ? void 0 : o.map((
|
|
9300
|
+
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
9301
|
+
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
9302
9302
|
},
|
|
9303
9303
|
fields: {},
|
|
9304
9304
|
context: {
|
|
9305
9305
|
...x,
|
|
9306
|
-
active_id: o == null ? void 0 : o.map((
|
|
9307
|
-
active_ids: o == null ? void 0 : o.map((
|
|
9306
|
+
active_id: o == null ? void 0 : o.map((L) => L.id)[0],
|
|
9307
|
+
active_ids: o == null ? void 0 : o.map((L) => L.id)
|
|
9308
9308
|
},
|
|
9309
9309
|
onRefreshParentValues: () => {
|
|
9310
|
-
var
|
|
9311
|
-
(
|
|
9310
|
+
var L;
|
|
9311
|
+
(L = f == null ? void 0 : f.current) == null || L.refreshResults();
|
|
9312
9312
|
}
|
|
9313
9313
|
});
|
|
9314
9314
|
}
|
|
@@ -9396,7 +9396,7 @@ function kd(e) {
|
|
|
9396
9396
|
...W,
|
|
9397
9397
|
datas: {
|
|
9398
9398
|
...W.datas || {},
|
|
9399
|
-
ids: o.map((
|
|
9399
|
+
ids: o.map((L) => L.id)
|
|
9400
9400
|
}
|
|
9401
9401
|
});
|
|
9402
9402
|
}
|
|
@@ -9440,22 +9440,22 @@ function kd(e) {
|
|
|
9440
9440
|
}],
|
|
9441
9441
|
onItemClick: (W) => {
|
|
9442
9442
|
if (W.id === "print_screen") {
|
|
9443
|
-
let
|
|
9444
|
-
|
|
9443
|
+
let L = (o == null ? void 0 : o.map((B) => B.id)) || [];
|
|
9444
|
+
L.length === 0 && (L = (A == null ? void 0 : A.map((B) => B.id)) || []), U({
|
|
9445
9445
|
id: -1,
|
|
9446
9446
|
model: d,
|
|
9447
9447
|
report_name: "printscreen.list",
|
|
9448
9448
|
type: "ir.actions.report.xml",
|
|
9449
9449
|
datas: {
|
|
9450
9450
|
model: d,
|
|
9451
|
-
ids:
|
|
9451
|
+
ids: L
|
|
9452
9452
|
}
|
|
9453
9453
|
});
|
|
9454
9454
|
return;
|
|
9455
9455
|
}
|
|
9456
9456
|
I(!0);
|
|
9457
9457
|
},
|
|
9458
|
-
disabled: l || a || F ||
|
|
9458
|
+
disabled: l || a || F || N
|
|
9459
9459
|
}), /* @__PURE__ */ n(od, {
|
|
9460
9460
|
visible: k,
|
|
9461
9461
|
locale: M,
|
|
@@ -9643,7 +9643,7 @@ function Hd(e, t) {
|
|
|
9643
9643
|
action_type: p,
|
|
9644
9644
|
treeExpandable: h = !1,
|
|
9645
9645
|
limit: g
|
|
9646
|
-
} = e, [v, F] = _(), [V, b] = _([]), [A, D] = _(!0), E = m || void 0, [x, C] = _(E), [w, T] = _([]), [$, M] = _(), [S, R] = _([]), [k, I] = _(), [
|
|
9646
|
+
} = e, [v, F] = _(), [V, b] = _([]), [A, D] = _(!0), E = m || void 0, [x, C] = _(E), [w, T] = _([]), [$, M] = _(), [S, R] = _([]), [k, I] = _(), [N, O] = _(0), [j, q] = _(!1), [U, J] = _(!1), [W, L] = _(), {
|
|
9647
9647
|
t: B
|
|
9648
9648
|
} = Y(ve), te = fe(), Z = fe(), ae = Y(at), {
|
|
9649
9649
|
setCurrentView: X,
|
|
@@ -9871,11 +9871,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
9871
9871
|
currentModel: i,
|
|
9872
9872
|
sorter: k,
|
|
9873
9873
|
setSorter: I,
|
|
9874
|
-
totalItems:
|
|
9874
|
+
totalItems: N,
|
|
9875
9875
|
setTotalItems: O,
|
|
9876
9876
|
selectedRowItems: w,
|
|
9877
9877
|
setSelectedRowItems: T,
|
|
9878
|
-
setSearchTreeNameSearch:
|
|
9878
|
+
setSearchTreeNameSearch: L,
|
|
9879
9879
|
searchTreeNameSearch: W,
|
|
9880
9880
|
goToResourceId: we,
|
|
9881
9881
|
limit: g,
|
|
@@ -10052,7 +10052,7 @@ function qd(e) {
|
|
|
10052
10052
|
domain: s = [],
|
|
10053
10053
|
visible: a = !0,
|
|
10054
10054
|
parentContext: l = {}
|
|
10055
|
-
} = e, [u, d] = _(!1), [f, c] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [F, V] = _(1), [b, A] = _(0), D = fe(Gd), E = fe([]), [x, C] = _(0), [w, T] = _([]), [$, M] = _(void 0), [S, R] = _(), [k, I] = _(), [
|
|
10055
|
+
} = e, [u, d] = _(!1), [f, c] = _(!1), [m, y] = _(), [p, h] = _(), [g, v] = _(), [F, V] = _(1), [b, A] = _(0), D = fe(Gd), E = fe([]), [x, C] = _(0), [w, T] = _([]), [$, M] = _(void 0), [S, R] = _(), [k, I] = _(), [N, O] = _(), [j, q] = _(!1), U = fe([]), J = (z) => {
|
|
10056
10056
|
q(!0), V(z), A((z - 1) * D.current);
|
|
10057
10057
|
}, W = async () => {
|
|
10058
10058
|
const z = U.current.length > 0 ? U.current : s, he = hn(E.current, z), {
|
|
@@ -10084,7 +10084,7 @@ function qd(e) {
|
|
|
10084
10084
|
q(!1), T(We);
|
|
10085
10085
|
const ie = await Ee;
|
|
10086
10086
|
C(ie);
|
|
10087
|
-
},
|
|
10087
|
+
}, L = async () => {
|
|
10088
10088
|
try {
|
|
10089
10089
|
q(!0), await W();
|
|
10090
10090
|
} catch (z) {
|
|
@@ -10092,7 +10092,7 @@ function qd(e) {
|
|
|
10092
10092
|
}
|
|
10093
10093
|
};
|
|
10094
10094
|
pe(() => {
|
|
10095
|
-
!f || a &&
|
|
10095
|
+
!f || a && L();
|
|
10096
10096
|
}, [F, b, f, a]);
|
|
10097
10097
|
const B = async (z) => {
|
|
10098
10098
|
c(!1), d(!0), O(void 0);
|
|
@@ -10173,9 +10173,9 @@ function qd(e) {
|
|
|
10173
10173
|
context: l
|
|
10174
10174
|
})]
|
|
10175
10175
|
});
|
|
10176
|
-
return
|
|
10176
|
+
return N ? /* @__PURE__ */ n(Qe, {
|
|
10177
10177
|
className: "mt-10",
|
|
10178
|
-
message:
|
|
10178
|
+
message: N,
|
|
10179
10179
|
type: "error",
|
|
10180
10180
|
banner: !0
|
|
10181
10181
|
}) : u ? /* @__PURE__ */ n(Me, {
|
|
@@ -10371,7 +10371,7 @@ function Jd(e, t) {
|
|
|
10371
10371
|
actionType: R,
|
|
10372
10372
|
key: k,
|
|
10373
10373
|
title: I,
|
|
10374
|
-
views:
|
|
10374
|
+
views: N,
|
|
10375
10375
|
model: O,
|
|
10376
10376
|
context: j,
|
|
10377
10377
|
domain: q,
|
|
@@ -10389,27 +10389,27 @@ function Jd(e, t) {
|
|
|
10389
10389
|
h: 3
|
|
10390
10390
|
};
|
|
10391
10391
|
}
|
|
10392
|
-
let
|
|
10392
|
+
let L = null;
|
|
10393
10393
|
if ((U == null ? void 0 : U.type) === "graph")
|
|
10394
|
-
|
|
10395
|
-
view_id:
|
|
10394
|
+
L = /* @__PURE__ */ n(gn, {
|
|
10395
|
+
view_id: N.filter((Z) => Z[1] === "graph")[0][0],
|
|
10396
10396
|
model: O,
|
|
10397
10397
|
context: j,
|
|
10398
10398
|
domain: q,
|
|
10399
10399
|
limit: J
|
|
10400
10400
|
});
|
|
10401
10401
|
else if ((U == null ? void 0 : U.type) === "form")
|
|
10402
|
-
|
|
10402
|
+
L = /* @__PURE__ */ n(zd, {
|
|
10403
10403
|
model: O,
|
|
10404
10404
|
actionDomain: q
|
|
10405
10405
|
});
|
|
10406
10406
|
else if ((U == null ? void 0 : U.type) === "tree")
|
|
10407
|
-
|
|
10407
|
+
L = /* @__PURE__ */ n(qd, {
|
|
10408
10408
|
model: O,
|
|
10409
10409
|
domain: q,
|
|
10410
|
-
view_id:
|
|
10410
|
+
view_id: N.filter((Z) => Z[1] === "tree")[0][0],
|
|
10411
10411
|
onRowClicked: (Z) => {
|
|
10412
|
-
const ae =
|
|
10412
|
+
const ae = N.find((X) => {
|
|
10413
10413
|
const [, z] = X;
|
|
10414
10414
|
return z === "form";
|
|
10415
10415
|
});
|
|
@@ -10437,12 +10437,12 @@ function Jd(e, t) {
|
|
|
10437
10437
|
...U,
|
|
10438
10438
|
id: U.id[0]
|
|
10439
10439
|
} : U;
|
|
10440
|
-
|
|
10440
|
+
L = /* @__PURE__ */ n(Bo, {
|
|
10441
10441
|
action_id: S,
|
|
10442
10442
|
action_type: R,
|
|
10443
10443
|
tabKey: k,
|
|
10444
10444
|
title: I,
|
|
10445
|
-
views:
|
|
10445
|
+
views: N,
|
|
10446
10446
|
model: O,
|
|
10447
10447
|
context: j,
|
|
10448
10448
|
domain: q,
|
|
@@ -10453,7 +10453,7 @@ function Jd(e, t) {
|
|
|
10453
10453
|
});
|
|
10454
10454
|
}
|
|
10455
10455
|
let B;
|
|
10456
|
-
const te =
|
|
10456
|
+
const te = N.find((Z) => {
|
|
10457
10457
|
const [, ae] = Z;
|
|
10458
10458
|
return ae === "tree";
|
|
10459
10459
|
});
|
|
@@ -10480,7 +10480,7 @@ function Jd(e, t) {
|
|
|
10480
10480
|
parms: W,
|
|
10481
10481
|
action: B,
|
|
10482
10482
|
openAction: y,
|
|
10483
|
-
children:
|
|
10483
|
+
children: L
|
|
10484
10484
|
}, M);
|
|
10485
10485
|
})
|
|
10486
10486
|
});
|
|
@@ -10832,15 +10832,15 @@ function fu(e, t) {
|
|
|
10832
10832
|
}) : [], {
|
|
10833
10833
|
res_model: k,
|
|
10834
10834
|
views: I,
|
|
10835
|
-
name:
|
|
10835
|
+
name: N,
|
|
10836
10836
|
target: O,
|
|
10837
10837
|
view_type: j,
|
|
10838
10838
|
limit: q
|
|
10839
10839
|
} = w, U = j === "tree", J = [];
|
|
10840
|
-
for (const
|
|
10841
|
-
const [B, te] =
|
|
10840
|
+
for (const L of I) {
|
|
10841
|
+
const [B, te] = L;
|
|
10842
10842
|
if (B)
|
|
10843
|
-
J.push(
|
|
10843
|
+
J.push(L);
|
|
10844
10844
|
else if (te === "dashboard")
|
|
10845
10845
|
J.push([void 0, "dashboard"]);
|
|
10846
10846
|
else {
|
|
@@ -10860,15 +10860,15 @@ function fu(e, t) {
|
|
|
10860
10860
|
}
|
|
10861
10861
|
let W;
|
|
10862
10862
|
if (E) {
|
|
10863
|
-
const [
|
|
10863
|
+
const [L, B] = J.find(([te, Z]) => Z === E);
|
|
10864
10864
|
W = {
|
|
10865
|
-
id:
|
|
10865
|
+
id: L,
|
|
10866
10866
|
type: B
|
|
10867
10867
|
};
|
|
10868
10868
|
} else {
|
|
10869
|
-
const [
|
|
10869
|
+
const [L, B] = J[0];
|
|
10870
10870
|
W = {
|
|
10871
|
-
id:
|
|
10871
|
+
id: L,
|
|
10872
10872
|
type: B
|
|
10873
10873
|
};
|
|
10874
10874
|
}
|
|
@@ -10880,7 +10880,7 @@ function fu(e, t) {
|
|
|
10880
10880
|
},
|
|
10881
10881
|
model: k,
|
|
10882
10882
|
views: J,
|
|
10883
|
-
title:
|
|
10883
|
+
title: N,
|
|
10884
10884
|
target: O,
|
|
10885
10885
|
initialView: W,
|
|
10886
10886
|
action_type: T,
|
|
@@ -10922,7 +10922,7 @@ function fu(e, t) {
|
|
|
10922
10922
|
target: M,
|
|
10923
10923
|
string: S,
|
|
10924
10924
|
limit: R
|
|
10925
|
-
} = b, [k, I] = $[0],
|
|
10925
|
+
} = b, [k, I] = $[0], N = {
|
|
10926
10926
|
id: k,
|
|
10927
10927
|
type: I
|
|
10928
10928
|
}, O = wt({
|
|
@@ -10957,7 +10957,7 @@ function fu(e, t) {
|
|
|
10957
10957
|
},
|
|
10958
10958
|
domain: j,
|
|
10959
10959
|
title: S,
|
|
10960
|
-
initialView:
|
|
10960
|
+
initialView: N,
|
|
10961
10961
|
action_id: E,
|
|
10962
10962
|
action_type: x,
|
|
10963
10963
|
limit: R
|
|
@@ -10989,11 +10989,11 @@ function fu(e, t) {
|
|
|
10989
10989
|
name: R,
|
|
10990
10990
|
target: k,
|
|
10991
10991
|
view_type: I,
|
|
10992
|
-
limit:
|
|
10992
|
+
limit: N
|
|
10993
10993
|
} = w, O = I === "tree", j = [];
|
|
10994
10994
|
for (const W of S) {
|
|
10995
|
-
const [
|
|
10996
|
-
if (
|
|
10995
|
+
const [L, B] = W;
|
|
10996
|
+
if (L)
|
|
10997
10997
|
j.push(W);
|
|
10998
10998
|
else if (B === "dashboard")
|
|
10999
10999
|
j.push([void 0, "dashboard"]);
|
|
@@ -11003,7 +11003,7 @@ function fu(e, t) {
|
|
|
11003
11003
|
} = await H.getHandler().getView({
|
|
11004
11004
|
model: M,
|
|
11005
11005
|
type: B,
|
|
11006
|
-
id:
|
|
11006
|
+
id: L,
|
|
11007
11007
|
context: {
|
|
11008
11008
|
...o,
|
|
11009
11009
|
...T
|
|
@@ -11014,7 +11014,7 @@ function fu(e, t) {
|
|
|
11014
11014
|
}
|
|
11015
11015
|
let q, U;
|
|
11016
11016
|
if (x == null) {
|
|
11017
|
-
const W = j.find((
|
|
11017
|
+
const W = j.find((L) => L[0] === void 0);
|
|
11018
11018
|
q = void 0, U = W[1];
|
|
11019
11019
|
} else
|
|
11020
11020
|
[q, U] = j.find((W) => W[0] === void 0 ? !1 : W[0] === x);
|
|
@@ -11037,7 +11037,7 @@ function fu(e, t) {
|
|
|
11037
11037
|
action_type: D,
|
|
11038
11038
|
res_id: E,
|
|
11039
11039
|
treeExpandable: O,
|
|
11040
|
-
limit:
|
|
11040
|
+
limit: N
|
|
11041
11041
|
});
|
|
11042
11042
|
}
|
|
11043
11043
|
async function F({
|
|
@@ -11074,7 +11074,7 @@ function fu(e, t) {
|
|
|
11074
11074
|
treeExpandable: k = !1,
|
|
11075
11075
|
limit: I
|
|
11076
11076
|
}) {
|
|
11077
|
-
const
|
|
11077
|
+
const N = eo();
|
|
11078
11078
|
if (C !== "current") {
|
|
11079
11079
|
const O = await H.getHandler().getView({
|
|
11080
11080
|
model: D,
|
|
@@ -11114,7 +11114,7 @@ function fu(e, t) {
|
|
|
11114
11114
|
content: /* @__PURE__ */ n(Bo, {
|
|
11115
11115
|
action_id: T,
|
|
11116
11116
|
action_type: $,
|
|
11117
|
-
tabKey:
|
|
11117
|
+
tabKey: N,
|
|
11118
11118
|
title: x,
|
|
11119
11119
|
views: E,
|
|
11120
11120
|
model: D,
|
|
@@ -11131,7 +11131,7 @@ function fu(e, t) {
|
|
|
11131
11131
|
treeExpandable: k,
|
|
11132
11132
|
limit: I
|
|
11133
11133
|
}),
|
|
11134
|
-
key:
|
|
11134
|
+
key: N
|
|
11135
11135
|
});
|
|
11136
11136
|
}
|
|
11137
11137
|
}
|
|
@@ -11306,8 +11306,8 @@ const {
|
|
|
11306
11306
|
function C(k) {
|
|
11307
11307
|
const {
|
|
11308
11308
|
key: I
|
|
11309
|
-
} = k,
|
|
11310
|
-
(
|
|
11309
|
+
} = k, N = d.find((O) => O.id === Number(I));
|
|
11310
|
+
(N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && F(N), u(!1));
|
|
11311
11311
|
}
|
|
11312
11312
|
function w(k) {
|
|
11313
11313
|
k && x(), u(k);
|
|
@@ -11317,9 +11317,9 @@ const {
|
|
|
11317
11317
|
return;
|
|
11318
11318
|
const k = V.find((U) => U.key === b), {
|
|
11319
11319
|
id: I,
|
|
11320
|
-
type:
|
|
11320
|
+
type: N
|
|
11321
11321
|
} = (k == null ? void 0 : k.action) || {};
|
|
11322
|
-
if (!I || !
|
|
11322
|
+
if (!I || !N) {
|
|
11323
11323
|
a(!1);
|
|
11324
11324
|
return;
|
|
11325
11325
|
}
|
|
@@ -11328,7 +11328,7 @@ const {
|
|
|
11328
11328
|
A.type === "form" && (j = D || !1);
|
|
11329
11329
|
const q = await r({
|
|
11330
11330
|
action_id: I,
|
|
11331
|
-
action_type:
|
|
11331
|
+
action_type: N,
|
|
11332
11332
|
view_id: O,
|
|
11333
11333
|
res_id: j
|
|
11334
11334
|
});
|
|
@@ -11415,16 +11415,16 @@ const {
|
|
|
11415
11415
|
return;
|
|
11416
11416
|
const k = V.find((q) => q.key === b), {
|
|
11417
11417
|
id: I,
|
|
11418
|
-
type:
|
|
11418
|
+
type: N
|
|
11419
11419
|
} = (k == null ? void 0 : k.action) || {}, O = A.view_id;
|
|
11420
11420
|
let j = !1;
|
|
11421
|
-
if (!I || !
|
|
11421
|
+
if (!I || !N) {
|
|
11422
11422
|
a(!1);
|
|
11423
11423
|
return;
|
|
11424
11424
|
}
|
|
11425
11425
|
A.type === "form" && (j = D || !1), await i({
|
|
11426
11426
|
action_id: I,
|
|
11427
|
-
action_type:
|
|
11427
|
+
action_type: N,
|
|
11428
11428
|
view_id: O,
|
|
11429
11429
|
res_id: j
|
|
11430
11430
|
});
|