@fctc/interface-logic 4.3.9 → 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,7 +6361,7 @@ 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];
@@ -6325,7 +6372,7 @@ function useModelService() {
6325
6372
  }
6326
6373
  return { ...data };
6327
6374
  }, []);
6328
- const toDataJS = useCallback38(
6375
+ const toDataJS = useCallback39(
6329
6376
  (data, viewData, model) => {
6330
6377
  for (const key in data) {
6331
6378
  if (data[key] === false) {
@@ -6383,10 +6430,10 @@ function useModelService() {
6383
6430
  }
6384
6431
 
6385
6432
  // src/services/user-service/index.ts
6386
- import { useCallback as useCallback39 } from "react";
6433
+ import { useCallback as useCallback40 } from "react";
6387
6434
  function useUserService() {
6388
6435
  const { env } = useEnv();
6389
- const getProfile = useCallback39(
6436
+ const getProfile = useCallback40(
6390
6437
  async (service, path, extraHeaders) => {
6391
6438
  return env?.requests?.get(
6392
6439
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6403,7 +6450,7 @@ function useUserService() {
6403
6450
  },
6404
6451
  [env]
6405
6452
  );
6406
- const getUser = useCallback39(
6453
+ const getUser = useCallback40(
6407
6454
  async ({ context, id }) => {
6408
6455
  const jsonData = {
6409
6456
  model: "res.users",
@@ -6441,7 +6488,7 @@ function useUserService() {
6441
6488
  },
6442
6489
  [env]
6443
6490
  );
6444
- const switchUserLocale = useCallback39(
6491
+ const switchUserLocale = useCallback40(
6445
6492
  async ({ id, values, service }) => {
6446
6493
  const jsonData = {
6447
6494
  model: "res.users",
@@ -6469,10 +6516,10 @@ function useUserService() {
6469
6516
  }
6470
6517
 
6471
6518
  // src/services/view-service/index.ts
6472
- import { useCallback as useCallback40 } from "react";
6519
+ import { useCallback as useCallback41 } from "react";
6473
6520
  function useViewService() {
6474
6521
  const { env } = useEnv();
6475
- const getView = useCallback40(
6522
+ const getView = useCallback41(
6476
6523
  async ({
6477
6524
  model,
6478
6525
  views,
@@ -6512,7 +6559,7 @@ function useViewService() {
6512
6559
  },
6513
6560
  [env]
6514
6561
  );
6515
- const getMenu = useCallback40(
6562
+ const getMenu = useCallback41(
6516
6563
  async (context, specification, domain, service) => {
6517
6564
  const jsonData = {
6518
6565
  model: "ir.ui.menu" /* MENU */,
@@ -6543,7 +6590,7 @@ function useViewService() {
6543
6590
  },
6544
6591
  [env]
6545
6592
  );
6546
- const getActionDetail = useCallback40(
6593
+ const getActionDetail = useCallback41(
6547
6594
  async (aid, context) => {
6548
6595
  const jsonData = {
6549
6596
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6573,7 +6620,7 @@ function useViewService() {
6573
6620
  },
6574
6621
  [env]
6575
6622
  );
6576
- const getResequence = useCallback40(
6623
+ const getResequence = useCallback41(
6577
6624
  async ({
6578
6625
  model,
6579
6626
  ids,
@@ -6603,7 +6650,7 @@ function useViewService() {
6603
6650
  },
6604
6651
  [env]
6605
6652
  );
6606
- const getSelectionItem = useCallback40(
6653
+ const getSelectionItem = useCallback41(
6607
6654
  async ({
6608
6655
  data,
6609
6656
  service,
@@ -6640,7 +6687,7 @@ function useViewService() {
6640
6687
  },
6641
6688
  [env]
6642
6689
  );
6643
- const loadMessages = useCallback40(async () => {
6690
+ const loadMessages = useCallback41(async () => {
6644
6691
  return env.requests.post(
6645
6692
  "/load_message_failures" /* LOAD_MESSAGE */,
6646
6693
  {},
@@ -6651,14 +6698,14 @@ function useViewService() {
6651
6698
  }
6652
6699
  );
6653
6700
  }, [env]);
6654
- const getVersion = useCallback40(async () => {
6701
+ const getVersion = useCallback41(async () => {
6655
6702
  return env?.requests?.get("", {
6656
6703
  headers: {
6657
6704
  "Content-Type": "application/json"
6658
6705
  }
6659
6706
  });
6660
6707
  }, [env]);
6661
- const grantAccess = useCallback40(
6708
+ const grantAccess = useCallback41(
6662
6709
  async ({
6663
6710
  redirect_uri,
6664
6711
  state,
@@ -6685,7 +6732,7 @@ function useViewService() {
6685
6732
  },
6686
6733
  [env]
6687
6734
  );
6688
- const removeTotpSetUp = useCallback40(
6735
+ const removeTotpSetUp = useCallback41(
6689
6736
  async ({ method, token }) => {
6690
6737
  const jsonData = {
6691
6738
  method,
@@ -6706,7 +6753,7 @@ function useViewService() {
6706
6753
  },
6707
6754
  [env]
6708
6755
  );
6709
- const requestSetupTotp = useCallback40(
6756
+ const requestSetupTotp = useCallback41(
6710
6757
  async ({ method, token }) => {
6711
6758
  const jsonData = {
6712
6759
  method,
@@ -6725,7 +6772,7 @@ function useViewService() {
6725
6772
  },
6726
6773
  [env]
6727
6774
  );
6728
- const settingsWebRead2fa = useCallback40(
6775
+ const settingsWebRead2fa = useCallback41(
6729
6776
  async ({
6730
6777
  method,
6731
6778
  model,
@@ -6753,7 +6800,7 @@ function useViewService() {
6753
6800
  },
6754
6801
  [env]
6755
6802
  );
6756
- const signInSSO = useCallback40(
6803
+ const signInSSO = useCallback41(
6757
6804
  async ({
6758
6805
  redirect_uri,
6759
6806
  state,
@@ -6785,7 +6832,7 @@ function useViewService() {
6785
6832
  },
6786
6833
  [env]
6787
6834
  );
6788
- const verify2FA = useCallback40(
6835
+ const verify2FA = useCallback41(
6789
6836
  ({
6790
6837
  method,
6791
6838
  with_context,
@@ -6818,7 +6865,7 @@ function useViewService() {
6818
6865
  },
6819
6866
  [env]
6820
6867
  );
6821
- const get2FAMethods = useCallback40(
6868
+ const get2FAMethods = useCallback41(
6822
6869
  ({ method, with_context }) => {
6823
6870
  const jsonData = {
6824
6871
  method,
@@ -6837,7 +6884,7 @@ function useViewService() {
6837
6884
  },
6838
6885
  [env]
6839
6886
  );
6840
- const verifyTotp = useCallback40(
6887
+ const verifyTotp = useCallback41(
6841
6888
  ({
6842
6889
  method,
6843
6890
  action_token,
@@ -6862,7 +6909,7 @@ function useViewService() {
6862
6909
  },
6863
6910
  [env]
6864
6911
  );
6865
- const getNotifications = useCallback40(
6912
+ const getNotifications = useCallback41(
6866
6913
  async ({
6867
6914
  service,
6868
6915
  xNode,
@@ -6882,7 +6929,7 @@ function useViewService() {
6882
6929
  },
6883
6930
  [env]
6884
6931
  );
6885
- const getCountry = useCallback40(
6932
+ const getCountry = useCallback41(
6886
6933
  async ({
6887
6934
  service,
6888
6935
  xNode,
@@ -6909,7 +6956,7 @@ function useViewService() {
6909
6956
  },
6910
6957
  [env]
6911
6958
  );
6912
- const getCity = useCallback40(
6959
+ const getCity = useCallback41(
6913
6960
  async ({
6914
6961
  service,
6915
6962
  xNode,
@@ -6936,7 +6983,7 @@ function useViewService() {
6936
6983
  },
6937
6984
  [env]
6938
6985
  );
6939
- const getWard = useCallback40(
6986
+ const getWard = useCallback41(
6940
6987
  async ({
6941
6988
  service,
6942
6989
  xNode,
@@ -6961,7 +7008,7 @@ function useViewService() {
6961
7008
  },
6962
7009
  [env]
6963
7010
  );
6964
- const getPartnerTitle = useCallback40(
7011
+ const getPartnerTitle = useCallback41(
6965
7012
  async ({
6966
7013
  service,
6967
7014
  xNode,
@@ -7013,10 +7060,10 @@ function useViewService() {
7013
7060
  }
7014
7061
 
7015
7062
  // src/services/dashboard-service/index.ts
7016
- import { useCallback as useCallback41 } from "react";
7063
+ import { useCallback as useCallback42 } from "react";
7017
7064
  function useDashboardService() {
7018
7065
  const { env } = useEnv();
7019
- const readGroup = useCallback41(
7066
+ const readGroup = useCallback42(
7020
7067
  async ({
7021
7068
  service,
7022
7069
  xNode,
@@ -7033,7 +7080,7 @@ function useDashboardService() {
7033
7080
  },
7034
7081
  [env]
7035
7082
  );
7036
- const getDataChart = useCallback41(
7083
+ const getDataChart = useCallback42(
7037
7084
  async ({
7038
7085
  service,
7039
7086
  xNode,