@fctc/interface-logic 4.3.8 → 4.4.0

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/services.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/services/action-service/index.ts
2
- import { useCallback as useCallback32 } from "react";
2
+ import { useCallback as useCallback33 } from "react";
3
3
 
4
4
  // src/constants/api/uri-constant.ts
5
5
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -4780,6 +4780,49 @@ var updateOrderStatusService = (env) => {
4780
4780
  };
4781
4781
  };
4782
4782
 
4783
+ // src/services/pos-service/complete-current-stage.ts
4784
+ import { useCallback as useCallback32 } from "react";
4785
+ var completeCurrentStageService = (env) => {
4786
+ const completeCurrentStage = useCallback32(
4787
+ ({
4788
+ ids,
4789
+ withContext,
4790
+ xNode,
4791
+ service,
4792
+ requestStageId
4793
+ }) => {
4794
+ const jsonData = {
4795
+ model: "pos_preparation_display.orderline" /* POS_PREPARATION_ORDER_LINE */,
4796
+ method: "complete_current_stage" /* COMPLETE_CURRENT_STAGE */,
4797
+ ids,
4798
+ kwargs: {
4799
+ request_stage_id: requestStageId
4800
+ },
4801
+ with_context: withContext || {
4802
+ lang: "vi_VN",
4803
+ tz: "Asia/Ho_Chi_Minh",
4804
+ uid: 2
4805
+ }
4806
+ };
4807
+ return env?.requests.post(
4808
+ "/call" /* CALL_PATH */,
4809
+ jsonData,
4810
+ {
4811
+ headers: {
4812
+ "Content-Type": "application/json",
4813
+ ...xNode ? { "X-Node": xNode } : {}
4814
+ }
4815
+ },
4816
+ service
4817
+ );
4818
+ },
4819
+ [env]
4820
+ );
4821
+ return {
4822
+ completeCurrentStage
4823
+ };
4824
+ };
4825
+
4783
4826
  // src/services/pos-service/index.ts
4784
4827
  var serviceFactories = [
4785
4828
  addEntityService,
@@ -4810,7 +4853,8 @@ var serviceFactories = [
4810
4853
  searchJournalService,
4811
4854
  updateClosedSessionService,
4812
4855
  updateEntityService,
4813
- updateOrderStatusService
4856
+ updateOrderStatusService,
4857
+ completeCurrentStageService
4814
4858
  ];
4815
4859
  var usePosService = () => {
4816
4860
  const { env } = useEnv();
@@ -4909,6 +4953,9 @@ import { useMutation as useMutation85 } from "@tanstack/react-query";
4909
4953
  // src/hooks/pos/use-init-snapshot.ts
4910
4954
  import { useMutation as useMutation86 } from "@tanstack/react-query";
4911
4955
 
4956
+ // src/hooks/pos/use-complete-current-stage.ts
4957
+ import { useMutation as useMutation87 } from "@tanstack/react-query";
4958
+
4912
4959
  // src/provider/service-provider.tsx
4913
4960
  import { jsx as jsx6 } from "react/jsx-runtime";
4914
4961
  var ServiceContext = createContext2(null);
@@ -4920,7 +4967,7 @@ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
4920
4967
  // src/services/action-service/index.ts
4921
4968
  function useActionService() {
4922
4969
  const { env } = useEnv();
4923
- const loadAction = useCallback32(
4970
+ const loadAction = useCallback33(
4924
4971
  async ({
4925
4972
  idAction,
4926
4973
  context,
@@ -4944,7 +4991,7 @@ function useActionService() {
4944
4991
  },
4945
4992
  [env]
4946
4993
  );
4947
- const callButton = useCallback32(
4994
+ const callButton = useCallback33(
4948
4995
  async ({
4949
4996
  model,
4950
4997
  ids = [],
@@ -4978,7 +5025,7 @@ function useActionService() {
4978
5025
  },
4979
5026
  [env]
4980
5027
  );
4981
- const removeRows = useCallback32(
5028
+ const removeRows = useCallback33(
4982
5029
  async ({
4983
5030
  model,
4984
5031
  ids,
@@ -5004,7 +5051,7 @@ function useActionService() {
5004
5051
  },
5005
5052
  [env]
5006
5053
  );
5007
- const duplicateRecord = useCallback32(
5054
+ const duplicateRecord = useCallback33(
5008
5055
  async ({
5009
5056
  model,
5010
5057
  id,
@@ -5030,7 +5077,7 @@ function useActionService() {
5030
5077
  },
5031
5078
  [env]
5032
5079
  );
5033
- const getPrintReportName = useCallback32(
5080
+ const getPrintReportName = useCallback33(
5034
5081
  async ({ id }) => {
5035
5082
  const jsonData = {
5036
5083
  model: "ir.actions.report",
@@ -5048,7 +5095,7 @@ function useActionService() {
5048
5095
  },
5049
5096
  [env]
5050
5097
  );
5051
- const print = useCallback32(
5098
+ const print = useCallback33(
5052
5099
  async ({ id, report, db }) => {
5053
5100
  const jsonData = {
5054
5101
  report,
@@ -5066,7 +5113,7 @@ function useActionService() {
5066
5113
  },
5067
5114
  [env]
5068
5115
  );
5069
- const runAction = useCallback32(
5116
+ const runAction = useCallback33(
5070
5117
  async ({
5071
5118
  idAction,
5072
5119
  context,
@@ -5093,7 +5140,7 @@ function useActionService() {
5093
5140
  },
5094
5141
  [env]
5095
5142
  );
5096
- const generateSerialNumber = useCallback32(
5143
+ const generateSerialNumber = useCallback33(
5097
5144
  async ({
5098
5145
  kwargs,
5099
5146
  context,
@@ -5131,10 +5178,10 @@ function useActionService() {
5131
5178
  }
5132
5179
 
5133
5180
  // src/services/auth-service/index.ts
5134
- import { useCallback as useCallback33 } from "react";
5181
+ import { useCallback as useCallback34 } from "react";
5135
5182
  function useAuthService() {
5136
5183
  const { env } = useEnv();
5137
- const login = useCallback33(
5184
+ const login = useCallback34(
5138
5185
  async (body) => {
5139
5186
  const payload = Object.fromEntries(
5140
5187
  Object.entries({
@@ -5159,7 +5206,7 @@ function useAuthService() {
5159
5206
  },
5160
5207
  [env]
5161
5208
  );
5162
- const forgotPassword = useCallback33(
5209
+ const forgotPassword = useCallback34(
5163
5210
  async (email) => {
5164
5211
  const bodyData = {
5165
5212
  login: email,
@@ -5173,7 +5220,7 @@ function useAuthService() {
5173
5220
  },
5174
5221
  [env]
5175
5222
  );
5176
- const forgotPasswordSSO = useCallback33(
5223
+ const forgotPasswordSSO = useCallback34(
5177
5224
  async ({
5178
5225
  email,
5179
5226
  with_context,
@@ -5196,7 +5243,7 @@ function useAuthService() {
5196
5243
  },
5197
5244
  [env]
5198
5245
  );
5199
- const resetPassword = useCallback33(
5246
+ const resetPassword = useCallback34(
5200
5247
  async (data, token) => {
5201
5248
  const bodyData = {
5202
5249
  token,
@@ -5211,7 +5258,7 @@ function useAuthService() {
5211
5258
  },
5212
5259
  [env]
5213
5260
  );
5214
- const resetPasswordSSO = useCallback33(
5261
+ const resetPasswordSSO = useCallback34(
5215
5262
  async ({
5216
5263
  method,
5217
5264
  password,
@@ -5234,7 +5281,7 @@ function useAuthService() {
5234
5281
  },
5235
5282
  [env]
5236
5283
  );
5237
- const updatePassword = useCallback33(
5284
+ const updatePassword = useCallback34(
5238
5285
  async (data, token) => {
5239
5286
  const bodyData = {
5240
5287
  token,
@@ -5249,7 +5296,7 @@ function useAuthService() {
5249
5296
  },
5250
5297
  [env]
5251
5298
  );
5252
- const isValidToken = useCallback33(
5299
+ const isValidToken = useCallback34(
5253
5300
  async (token) => {
5254
5301
  const bodyData = {
5255
5302
  token
@@ -5262,7 +5309,7 @@ function useAuthService() {
5262
5309
  },
5263
5310
  [env]
5264
5311
  );
5265
- const isValidActionToken = useCallback33(
5312
+ const isValidActionToken = useCallback34(
5266
5313
  async (actionToken) => {
5267
5314
  const bodyData = {};
5268
5315
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5275,7 +5322,7 @@ function useAuthService() {
5275
5322
  },
5276
5323
  [env]
5277
5324
  );
5278
- const loginSocial = useCallback33(
5325
+ const loginSocial = useCallback34(
5279
5326
  async ({
5280
5327
  db,
5281
5328
  state,
@@ -5293,13 +5340,13 @@ function useAuthService() {
5293
5340
  },
5294
5341
  [env]
5295
5342
  );
5296
- const getProviders = useCallback33(
5343
+ const getProviders = useCallback34(
5297
5344
  async (db) => {
5298
5345
  return env?.requests?.get("/oauth/providers", { params: { db } });
5299
5346
  },
5300
5347
  [env]
5301
5348
  );
5302
- const getAccessByCode = useCallback33(
5349
+ const getAccessByCode = useCallback34(
5303
5350
  async (code) => {
5304
5351
  const data = new URLSearchParams();
5305
5352
  data.append("code", code);
@@ -5319,7 +5366,7 @@ function useAuthService() {
5319
5366
  },
5320
5367
  [env]
5321
5368
  );
5322
- const logout = useCallback33(
5369
+ const logout = useCallback34(
5323
5370
  async (service) => {
5324
5371
  return env?.requests?.post(
5325
5372
  "/logout" /* LOGOUT */,
@@ -5336,7 +5383,7 @@ function useAuthService() {
5336
5383
  },
5337
5384
  [env]
5338
5385
  );
5339
- const getTenantMapping = useCallback33(
5386
+ const getTenantMapping = useCallback34(
5340
5387
  async ({ shortName, service }) => {
5341
5388
  const bodyData = {
5342
5389
  short_name: shortName
@@ -5354,7 +5401,7 @@ function useAuthService() {
5354
5401
  },
5355
5402
  [env]
5356
5403
  );
5357
- const getToken = useCallback33(
5404
+ const getToken = useCallback34(
5358
5405
  async ({
5359
5406
  phone,
5360
5407
  name,
@@ -5398,10 +5445,10 @@ function useAuthService() {
5398
5445
  }
5399
5446
 
5400
5447
  // src/services/company-service/index.ts
5401
- import { useCallback as useCallback34 } from "react";
5448
+ import { useCallback as useCallback35 } from "react";
5402
5449
  function useCompanyService() {
5403
5450
  const { env } = useEnv();
5404
- const getCurrentCompany = useCallback34(
5451
+ const getCurrentCompany = useCallback35(
5405
5452
  async (service, extraHeaders) => {
5406
5453
  return await env.requests.get(
5407
5454
  "/company" /* COMPANY_PATH */,
@@ -5418,7 +5465,7 @@ function useCompanyService() {
5418
5465
  },
5419
5466
  [env]
5420
5467
  );
5421
- const getInfoCompany = useCallback34(
5468
+ const getInfoCompany = useCallback35(
5422
5469
  async (id, service) => {
5423
5470
  const jsonData = {
5424
5471
  ids: [id],
@@ -5454,10 +5501,10 @@ function useCompanyService() {
5454
5501
  }
5455
5502
 
5456
5503
  // src/services/excel-service/index.ts
5457
- import { useCallback as useCallback35 } from "react";
5504
+ import { useCallback as useCallback36 } from "react";
5458
5505
  function useExcelService() {
5459
5506
  const { env } = useEnv();
5460
- const uploadFileExcel = useCallback35(
5507
+ const uploadFileExcel = useCallback36(
5461
5508
  async ({
5462
5509
  formData,
5463
5510
  service,
@@ -5474,7 +5521,7 @@ function useExcelService() {
5474
5521
  },
5475
5522
  [env]
5476
5523
  );
5477
- const uploadIdFile = useCallback35(
5524
+ const uploadIdFile = useCallback36(
5478
5525
  async ({
5479
5526
  formData,
5480
5527
  service,
@@ -5491,7 +5538,7 @@ function useExcelService() {
5491
5538
  },
5492
5539
  [env]
5493
5540
  );
5494
- const parsePreview = useCallback35(
5541
+ const parsePreview = useCallback36(
5495
5542
  async ({
5496
5543
  id,
5497
5544
  selectedSheet,
@@ -5540,7 +5587,7 @@ function useExcelService() {
5540
5587
  },
5541
5588
  [env]
5542
5589
  );
5543
- const executeImport = useCallback35(
5590
+ const executeImport = useCallback36(
5544
5591
  async ({
5545
5592
  columns,
5546
5593
  fields,
@@ -5574,7 +5621,7 @@ function useExcelService() {
5574
5621
  },
5575
5622
  [env]
5576
5623
  );
5577
- const getFileExcel = useCallback35(
5624
+ const getFileExcel = useCallback36(
5578
5625
  async ({
5579
5626
  model,
5580
5627
  service,
@@ -5598,7 +5645,7 @@ function useExcelService() {
5598
5645
  },
5599
5646
  [env]
5600
5647
  );
5601
- const getFieldExport = useCallback35(
5648
+ const getFieldExport = useCallback36(
5602
5649
  async ({
5603
5650
  ids,
5604
5651
  model,
@@ -5638,7 +5685,7 @@ function useExcelService() {
5638
5685
  },
5639
5686
  [env]
5640
5687
  );
5641
- const exportExcel = useCallback35(
5688
+ const exportExcel = useCallback36(
5642
5689
  async ({
5643
5690
  model,
5644
5691
  domain,
@@ -5686,10 +5733,10 @@ function useExcelService() {
5686
5733
  }
5687
5734
 
5688
5735
  // src/services/form-service/index.ts
5689
- import { useCallback as useCallback36 } from "react";
5736
+ import { useCallback as useCallback37 } from "react";
5690
5737
  function useFormService() {
5691
5738
  const { env } = useEnv();
5692
- const getComment = useCallback36(
5739
+ const getComment = useCallback37(
5693
5740
  async ({ data }) => {
5694
5741
  const jsonData = {
5695
5742
  thread_id: data.thread_id,
@@ -5707,7 +5754,7 @@ function useFormService() {
5707
5754
  },
5708
5755
  [env]
5709
5756
  );
5710
- const getThreadData = useCallback36(
5757
+ const getThreadData = useCallback37(
5711
5758
  async ({
5712
5759
  data,
5713
5760
  xNode,
@@ -5734,7 +5781,7 @@ function useFormService() {
5734
5781
  },
5735
5782
  [env]
5736
5783
  );
5737
- const getThreadMessages = useCallback36(
5784
+ const getThreadMessages = useCallback37(
5738
5785
  async ({
5739
5786
  data,
5740
5787
  xNode,
@@ -5760,7 +5807,7 @@ function useFormService() {
5760
5807
  },
5761
5808
  [env]
5762
5809
  );
5763
- const sentComment = useCallback36(
5810
+ const sentComment = useCallback37(
5764
5811
  async ({ data }) => {
5765
5812
  const jsonData = {
5766
5813
  context: {
@@ -5788,7 +5835,7 @@ function useFormService() {
5788
5835
  },
5789
5836
  [env]
5790
5837
  );
5791
- const deleteComment = useCallback36(
5838
+ const deleteComment = useCallback37(
5792
5839
  async ({ data }) => {
5793
5840
  const jsonData = {
5794
5841
  attachment_ids: [],
@@ -5804,7 +5851,7 @@ function useFormService() {
5804
5851
  },
5805
5852
  [env]
5806
5853
  );
5807
- const getImage = useCallback36(
5854
+ const getImage = useCallback37(
5808
5855
  async ({ data }) => {
5809
5856
  return env.requests.get(
5810
5857
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5817,7 +5864,7 @@ function useFormService() {
5817
5864
  },
5818
5865
  [env]
5819
5866
  );
5820
- const uploadImage = useCallback36(
5867
+ const uploadImage = useCallback37(
5821
5868
  async ({
5822
5869
  formData,
5823
5870
  service,
@@ -5836,7 +5883,7 @@ function useFormService() {
5836
5883
  },
5837
5884
  [env]
5838
5885
  );
5839
- const uploadFile = useCallback36(
5886
+ const uploadFile = useCallback37(
5840
5887
  async ({
5841
5888
  formData,
5842
5889
  service,
@@ -5856,7 +5903,7 @@ function useFormService() {
5856
5903
  },
5857
5904
  [env]
5858
5905
  );
5859
- const getFormView = useCallback36(
5906
+ const getFormView = useCallback37(
5860
5907
  async ({ data }) => {
5861
5908
  const jsonData = {
5862
5909
  model: data.model,
@@ -5872,7 +5919,7 @@ function useFormService() {
5872
5919
  },
5873
5920
  [env]
5874
5921
  );
5875
- const changeStatus = useCallback36(
5922
+ const changeStatus = useCallback37(
5876
5923
  async ({ data }) => {
5877
5924
  const vals = {
5878
5925
  [data.name]: data.stage_id
@@ -5901,7 +5948,7 @@ function useFormService() {
5901
5948
  },
5902
5949
  [env]
5903
5950
  );
5904
- const getExternalTab = useCallback36(
5951
+ const getExternalTab = useCallback37(
5905
5952
  async ({ method, context, service, xNode }) => {
5906
5953
  return env?.requests?.post(
5907
5954
  "/call" /* CALL_PATH */,
@@ -5936,10 +5983,10 @@ function useFormService() {
5936
5983
  }
5937
5984
 
5938
5985
  // src/services/kanban-service/index.ts
5939
- import { useCallback as useCallback37 } from "react";
5986
+ import { useCallback as useCallback38 } from "react";
5940
5987
  function useKanbanService() {
5941
5988
  const { env } = useEnv();
5942
- const getGroups = useCallback37(
5989
+ const getGroups = useCallback38(
5943
5990
  async ({ model, width_context }) => {
5944
5991
  const jsonData = {
5945
5992
  model,
@@ -5959,7 +6006,7 @@ function useKanbanService() {
5959
6006
  },
5960
6007
  [env]
5961
6008
  );
5962
- const getProgressBar = useCallback37(
6009
+ const getProgressBar = useCallback38(
5963
6010
  async ({ field, color, model, width_context }) => {
5964
6011
  const jsonData = {
5965
6012
  model,
@@ -5989,10 +6036,10 @@ function useKanbanService() {
5989
6036
  }
5990
6037
 
5991
6038
  // src/services/model-service/index.ts
5992
- import { useCallback as useCallback38 } from "react";
6039
+ import { useCallback as useCallback39 } from "react";
5993
6040
  function useModelService() {
5994
6041
  const { env } = useEnv();
5995
- const getListMyBankAccount = useCallback38(
6042
+ const getListMyBankAccount = useCallback39(
5996
6043
  async ({
5997
6044
  domain,
5998
6045
  spectification,
@@ -6016,7 +6063,7 @@ function useModelService() {
6016
6063
  },
6017
6064
  [env]
6018
6065
  );
6019
- const getCurrency = useCallback38(async () => {
6066
+ const getCurrency = useCallback39(async () => {
6020
6067
  const jsonData = {
6021
6068
  model: "res.currency",
6022
6069
  method: "web_search_read",
@@ -6036,7 +6083,7 @@ function useModelService() {
6036
6083
  }
6037
6084
  });
6038
6085
  }, [env]);
6039
- const getConversionRate = useCallback38(async () => {
6086
+ const getConversionRate = useCallback39(async () => {
6040
6087
  const jsonData = {
6041
6088
  model: "res.currency",
6042
6089
  method: "web_search_read",
@@ -6062,7 +6109,7 @@ function useModelService() {
6062
6109
  }
6063
6110
  });
6064
6111
  }, [env]);
6065
- const getAll = useCallback38(
6112
+ const getAll = useCallback39(
6066
6113
  async ({
6067
6114
  data,
6068
6115
  service,
@@ -6104,7 +6151,7 @@ function useModelService() {
6104
6151
  },
6105
6152
  [env]
6106
6153
  );
6107
- const getListCalendar = useCallback38(
6154
+ const getListCalendar = useCallback39(
6108
6155
  async ({ data }) => {
6109
6156
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
6110
6157
  fields: data.fields,
@@ -6135,7 +6182,7 @@ function useModelService() {
6135
6182
  },
6136
6183
  [env]
6137
6184
  );
6138
- const getList = useCallback38(
6185
+ const getList = useCallback39(
6139
6186
  async ({
6140
6187
  model,
6141
6188
  ids = [],
@@ -6167,7 +6214,7 @@ function useModelService() {
6167
6214
  },
6168
6215
  [env]
6169
6216
  );
6170
- const getDetail = useCallback38(
6217
+ const getDetail = useCallback39(
6171
6218
  async ({
6172
6219
  ids = [],
6173
6220
  model,
@@ -6199,7 +6246,7 @@ function useModelService() {
6199
6246
  },
6200
6247
  [env]
6201
6248
  );
6202
- const save = useCallback38(
6249
+ const save = useCallback39(
6203
6250
  async ({
6204
6251
  model,
6205
6252
  ids = [],
@@ -6234,7 +6281,7 @@ function useModelService() {
6234
6281
  },
6235
6282
  [env]
6236
6283
  );
6237
- const deleteApi = useCallback38(
6284
+ const deleteApi = useCallback39(
6238
6285
  async ({ ids = [], model, service }) => {
6239
6286
  const jsonData = {
6240
6287
  model,
@@ -6254,7 +6301,7 @@ function useModelService() {
6254
6301
  },
6255
6302
  [env]
6256
6303
  );
6257
- const onChange = useCallback38(
6304
+ const onChange = useCallback39(
6258
6305
  async ({
6259
6306
  ids = [],
6260
6307
  model,
@@ -6290,7 +6337,7 @@ function useModelService() {
6290
6337
  },
6291
6338
  [env]
6292
6339
  );
6293
- const getListFieldsOnchange = useCallback38(
6340
+ const getListFieldsOnchange = useCallback39(
6294
6341
  async ({
6295
6342
  model,
6296
6343
  service,
@@ -6314,20 +6361,18 @@ function useModelService() {
6314
6361
  },
6315
6362
  [env]
6316
6363
  );
6317
- const parseORMOdoo = useCallback38((data) => {
6364
+ const parseORMOdoo = useCallback39((data) => {
6318
6365
  for (const key in data) {
6319
6366
  if (key === "display_name") {
6320
6367
  delete data[key];
6321
6368
  }
6322
6369
  if (!data[key] && data[key] !== 0) {
6323
6370
  data[key] = false;
6324
- } else if (data[key] === "Draft") {
6325
- data[key] = "/";
6326
6371
  }
6327
6372
  }
6328
6373
  return { ...data };
6329
6374
  }, []);
6330
- const toDataJS = useCallback38(
6375
+ const toDataJS = useCallback39(
6331
6376
  (data, viewData, model) => {
6332
6377
  for (const key in data) {
6333
6378
  if (data[key] === false) {
@@ -6338,8 +6383,6 @@ function useModelService() {
6338
6383
  } else {
6339
6384
  data[key] = null;
6340
6385
  }
6341
- } else if (data[key] === "/") {
6342
- data[key] = "Draft";
6343
6386
  } else if (data[key] !== false) {
6344
6387
  if (model !== void 0) {
6345
6388
  if (viewData?.models?.[model]?.[key]?.type === "one2many" /* ONE2MANY */ || viewData?.models?.[model]?.[key]?.type === "many2many" /* MANY2MANY */) {
@@ -6387,10 +6430,10 @@ function useModelService() {
6387
6430
  }
6388
6431
 
6389
6432
  // src/services/user-service/index.ts
6390
- import { useCallback as useCallback39 } from "react";
6433
+ import { useCallback as useCallback40 } from "react";
6391
6434
  function useUserService() {
6392
6435
  const { env } = useEnv();
6393
- const getProfile = useCallback39(
6436
+ const getProfile = useCallback40(
6394
6437
  async (service, path, extraHeaders) => {
6395
6438
  return env?.requests?.get(
6396
6439
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6407,7 +6450,7 @@ function useUserService() {
6407
6450
  },
6408
6451
  [env]
6409
6452
  );
6410
- const getUser = useCallback39(
6453
+ const getUser = useCallback40(
6411
6454
  async ({ context, id }) => {
6412
6455
  const jsonData = {
6413
6456
  model: "res.users",
@@ -6445,7 +6488,7 @@ function useUserService() {
6445
6488
  },
6446
6489
  [env]
6447
6490
  );
6448
- const switchUserLocale = useCallback39(
6491
+ const switchUserLocale = useCallback40(
6449
6492
  async ({ id, values, service }) => {
6450
6493
  const jsonData = {
6451
6494
  model: "res.users",
@@ -6473,10 +6516,10 @@ function useUserService() {
6473
6516
  }
6474
6517
 
6475
6518
  // src/services/view-service/index.ts
6476
- import { useCallback as useCallback40 } from "react";
6519
+ import { useCallback as useCallback41 } from "react";
6477
6520
  function useViewService() {
6478
6521
  const { env } = useEnv();
6479
- const getView = useCallback40(
6522
+ const getView = useCallback41(
6480
6523
  async ({
6481
6524
  model,
6482
6525
  views,
@@ -6516,7 +6559,7 @@ function useViewService() {
6516
6559
  },
6517
6560
  [env]
6518
6561
  );
6519
- const getMenu = useCallback40(
6562
+ const getMenu = useCallback41(
6520
6563
  async (context, specification, domain, service) => {
6521
6564
  const jsonData = {
6522
6565
  model: "ir.ui.menu" /* MENU */,
@@ -6547,7 +6590,7 @@ function useViewService() {
6547
6590
  },
6548
6591
  [env]
6549
6592
  );
6550
- const getActionDetail = useCallback40(
6593
+ const getActionDetail = useCallback41(
6551
6594
  async (aid, context) => {
6552
6595
  const jsonData = {
6553
6596
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6577,7 +6620,7 @@ function useViewService() {
6577
6620
  },
6578
6621
  [env]
6579
6622
  );
6580
- const getResequence = useCallback40(
6623
+ const getResequence = useCallback41(
6581
6624
  async ({
6582
6625
  model,
6583
6626
  ids,
@@ -6607,7 +6650,7 @@ function useViewService() {
6607
6650
  },
6608
6651
  [env]
6609
6652
  );
6610
- const getSelectionItem = useCallback40(
6653
+ const getSelectionItem = useCallback41(
6611
6654
  async ({
6612
6655
  data,
6613
6656
  service,
@@ -6644,7 +6687,7 @@ function useViewService() {
6644
6687
  },
6645
6688
  [env]
6646
6689
  );
6647
- const loadMessages = useCallback40(async () => {
6690
+ const loadMessages = useCallback41(async () => {
6648
6691
  return env.requests.post(
6649
6692
  "/load_message_failures" /* LOAD_MESSAGE */,
6650
6693
  {},
@@ -6655,14 +6698,14 @@ function useViewService() {
6655
6698
  }
6656
6699
  );
6657
6700
  }, [env]);
6658
- const getVersion = useCallback40(async () => {
6701
+ const getVersion = useCallback41(async () => {
6659
6702
  return env?.requests?.get("", {
6660
6703
  headers: {
6661
6704
  "Content-Type": "application/json"
6662
6705
  }
6663
6706
  });
6664
6707
  }, [env]);
6665
- const grantAccess = useCallback40(
6708
+ const grantAccess = useCallback41(
6666
6709
  async ({
6667
6710
  redirect_uri,
6668
6711
  state,
@@ -6689,7 +6732,7 @@ function useViewService() {
6689
6732
  },
6690
6733
  [env]
6691
6734
  );
6692
- const removeTotpSetUp = useCallback40(
6735
+ const removeTotpSetUp = useCallback41(
6693
6736
  async ({ method, token }) => {
6694
6737
  const jsonData = {
6695
6738
  method,
@@ -6710,7 +6753,7 @@ function useViewService() {
6710
6753
  },
6711
6754
  [env]
6712
6755
  );
6713
- const requestSetupTotp = useCallback40(
6756
+ const requestSetupTotp = useCallback41(
6714
6757
  async ({ method, token }) => {
6715
6758
  const jsonData = {
6716
6759
  method,
@@ -6729,7 +6772,7 @@ function useViewService() {
6729
6772
  },
6730
6773
  [env]
6731
6774
  );
6732
- const settingsWebRead2fa = useCallback40(
6775
+ const settingsWebRead2fa = useCallback41(
6733
6776
  async ({
6734
6777
  method,
6735
6778
  model,
@@ -6757,7 +6800,7 @@ function useViewService() {
6757
6800
  },
6758
6801
  [env]
6759
6802
  );
6760
- const signInSSO = useCallback40(
6803
+ const signInSSO = useCallback41(
6761
6804
  async ({
6762
6805
  redirect_uri,
6763
6806
  state,
@@ -6789,7 +6832,7 @@ function useViewService() {
6789
6832
  },
6790
6833
  [env]
6791
6834
  );
6792
- const verify2FA = useCallback40(
6835
+ const verify2FA = useCallback41(
6793
6836
  ({
6794
6837
  method,
6795
6838
  with_context,
@@ -6822,7 +6865,7 @@ function useViewService() {
6822
6865
  },
6823
6866
  [env]
6824
6867
  );
6825
- const get2FAMethods = useCallback40(
6868
+ const get2FAMethods = useCallback41(
6826
6869
  ({ method, with_context }) => {
6827
6870
  const jsonData = {
6828
6871
  method,
@@ -6841,7 +6884,7 @@ function useViewService() {
6841
6884
  },
6842
6885
  [env]
6843
6886
  );
6844
- const verifyTotp = useCallback40(
6887
+ const verifyTotp = useCallback41(
6845
6888
  ({
6846
6889
  method,
6847
6890
  action_token,
@@ -6866,7 +6909,7 @@ function useViewService() {
6866
6909
  },
6867
6910
  [env]
6868
6911
  );
6869
- const getNotifications = useCallback40(
6912
+ const getNotifications = useCallback41(
6870
6913
  async ({
6871
6914
  service,
6872
6915
  xNode,
@@ -6886,7 +6929,7 @@ function useViewService() {
6886
6929
  },
6887
6930
  [env]
6888
6931
  );
6889
- const getCountry = useCallback40(
6932
+ const getCountry = useCallback41(
6890
6933
  async ({
6891
6934
  service,
6892
6935
  xNode,
@@ -6913,7 +6956,7 @@ function useViewService() {
6913
6956
  },
6914
6957
  [env]
6915
6958
  );
6916
- const getCity = useCallback40(
6959
+ const getCity = useCallback41(
6917
6960
  async ({
6918
6961
  service,
6919
6962
  xNode,
@@ -6940,7 +6983,7 @@ function useViewService() {
6940
6983
  },
6941
6984
  [env]
6942
6985
  );
6943
- const getWard = useCallback40(
6986
+ const getWard = useCallback41(
6944
6987
  async ({
6945
6988
  service,
6946
6989
  xNode,
@@ -6965,7 +7008,7 @@ function useViewService() {
6965
7008
  },
6966
7009
  [env]
6967
7010
  );
6968
- const getPartnerTitle = useCallback40(
7011
+ const getPartnerTitle = useCallback41(
6969
7012
  async ({
6970
7013
  service,
6971
7014
  xNode,
@@ -7017,10 +7060,10 @@ function useViewService() {
7017
7060
  }
7018
7061
 
7019
7062
  // src/services/dashboard-service/index.ts
7020
- import { useCallback as useCallback41 } from "react";
7063
+ import { useCallback as useCallback42 } from "react";
7021
7064
  function useDashboardService() {
7022
7065
  const { env } = useEnv();
7023
- const readGroup = useCallback41(
7066
+ const readGroup = useCallback42(
7024
7067
  async ({
7025
7068
  service,
7026
7069
  xNode,
@@ -7037,7 +7080,7 @@ function useDashboardService() {
7037
7080
  },
7038
7081
  [env]
7039
7082
  );
7040
- const getDataChart = useCallback41(
7083
+ const getDataChart = useCallback42(
7041
7084
  async ({
7042
7085
  service,
7043
7086
  xNode,