@fctc/interface-logic 3.7.7 → 3.7.9

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/hooks.d.mts CHANGED
@@ -527,6 +527,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
527
527
  service?: string;
528
528
  xNode?: string;
529
529
  withContext?: any;
530
+ modelsToLoad?: any;
530
531
  }, unknown>;
531
532
 
532
533
  declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.d.ts CHANGED
@@ -527,6 +527,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
527
527
  service?: string;
528
528
  xNode?: string;
529
529
  withContext?: any;
530
+ modelsToLoad?: any;
530
531
  }, unknown>;
531
532
 
532
533
  declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.js CHANGED
@@ -5283,61 +5283,20 @@ function useViewService() {
5283
5283
  ids,
5284
5284
  xNode,
5285
5285
  service,
5286
- withContext
5286
+ withContext,
5287
+ modelsToLoad = []
5287
5288
  }) => {
5288
5289
  const jsonData = {
5289
5290
  model,
5290
5291
  method: "load_data" /* LOAD_DATA */,
5291
5292
  ids,
5292
- withContext: withContext ? withContext : {
5293
+ with_context: withContext ? withContext : {
5293
5294
  uid: 37,
5294
5295
  lang: "vi_VN",
5295
5296
  tz: "Asia/Saigon"
5296
5297
  },
5297
5298
  kwargs: {
5298
- models_to_load: [
5299
- "pos.config",
5300
- "pos.order",
5301
- "pos.order.line",
5302
- "pos.pack.operation.lot",
5303
- "pos.payment",
5304
- "pos.payment.method",
5305
- "pos.printer",
5306
- "pos.category",
5307
- "pos.bill",
5308
- "res.company",
5309
- "account.tax",
5310
- "account.tax.group",
5311
- "product.product",
5312
- "product.attribute",
5313
- "product.attribute.custom.value",
5314
- "product.template.attribute.line",
5315
- "product.template.attribute.value",
5316
- "product.combo",
5317
- "product.combo.item",
5318
- "product.packaging",
5319
- "res.users",
5320
- "res.partner",
5321
- "decimal.precision",
5322
- "uom.uom",
5323
- "uom.category",
5324
- "res.country",
5325
- "res.country.state",
5326
- "res.lang",
5327
- "product.pricelist",
5328
- "product.pricelist.item",
5329
- "product.category",
5330
- "account.cash.rounding",
5331
- "account.fiscal.position",
5332
- "account.fiscal.position.tax",
5333
- "stock.picking.type",
5334
- "res.currency",
5335
- "pos.note",
5336
- "ir.ui.view",
5337
- "product.tag",
5338
- "ir.module.module",
5339
- "pos_preparation_display.display"
5340
- ]
5299
+ models_to_load: modelsToLoad
5341
5300
  }
5342
5301
  };
5343
5302
  return env?.requests.post(
@@ -7632,14 +7591,16 @@ var useLoadDataPosSession = () => {
7632
7591
  ids,
7633
7592
  xNode,
7634
7593
  service,
7635
- withContext
7594
+ withContext,
7595
+ modelsToLoad
7636
7596
  }) => {
7637
7597
  return loadDataPosSession({
7638
7598
  model,
7639
7599
  ids,
7640
7600
  xNode,
7641
7601
  service,
7642
- withContext
7602
+ withContext,
7603
+ modelsToLoad
7643
7604
  });
7644
7605
  }
7645
7606
  });
package/dist/hooks.mjs CHANGED
@@ -5143,61 +5143,20 @@ function useViewService() {
5143
5143
  ids,
5144
5144
  xNode,
5145
5145
  service,
5146
- withContext
5146
+ withContext,
5147
+ modelsToLoad = []
5147
5148
  }) => {
5148
5149
  const jsonData = {
5149
5150
  model,
5150
5151
  method: "load_data" /* LOAD_DATA */,
5151
5152
  ids,
5152
- withContext: withContext ? withContext : {
5153
+ with_context: withContext ? withContext : {
5153
5154
  uid: 37,
5154
5155
  lang: "vi_VN",
5155
5156
  tz: "Asia/Saigon"
5156
5157
  },
5157
5158
  kwargs: {
5158
- models_to_load: [
5159
- "pos.config",
5160
- "pos.order",
5161
- "pos.order.line",
5162
- "pos.pack.operation.lot",
5163
- "pos.payment",
5164
- "pos.payment.method",
5165
- "pos.printer",
5166
- "pos.category",
5167
- "pos.bill",
5168
- "res.company",
5169
- "account.tax",
5170
- "account.tax.group",
5171
- "product.product",
5172
- "product.attribute",
5173
- "product.attribute.custom.value",
5174
- "product.template.attribute.line",
5175
- "product.template.attribute.value",
5176
- "product.combo",
5177
- "product.combo.item",
5178
- "product.packaging",
5179
- "res.users",
5180
- "res.partner",
5181
- "decimal.precision",
5182
- "uom.uom",
5183
- "uom.category",
5184
- "res.country",
5185
- "res.country.state",
5186
- "res.lang",
5187
- "product.pricelist",
5188
- "product.pricelist.item",
5189
- "product.category",
5190
- "account.cash.rounding",
5191
- "account.fiscal.position",
5192
- "account.fiscal.position.tax",
5193
- "stock.picking.type",
5194
- "res.currency",
5195
- "pos.note",
5196
- "ir.ui.view",
5197
- "product.tag",
5198
- "ir.module.module",
5199
- "pos_preparation_display.display"
5200
- ]
5159
+ models_to_load: modelsToLoad
5201
5160
  }
5202
5161
  };
5203
5162
  return env?.requests.post(
@@ -7492,14 +7451,16 @@ var useLoadDataPosSession = () => {
7492
7451
  ids,
7493
7452
  xNode,
7494
7453
  service,
7495
- withContext
7454
+ withContext,
7455
+ modelsToLoad
7496
7456
  }) => {
7497
7457
  return loadDataPosSession({
7498
7458
  model,
7499
7459
  ids,
7500
7460
  xNode,
7501
7461
  service,
7502
- withContext
7462
+ withContext,
7463
+ modelsToLoad
7503
7464
  });
7504
7465
  }
7505
7466
  });
package/dist/provider.js CHANGED
@@ -5272,61 +5272,20 @@ function useViewService() {
5272
5272
  ids,
5273
5273
  xNode,
5274
5274
  service,
5275
- withContext
5275
+ withContext,
5276
+ modelsToLoad = []
5276
5277
  }) => {
5277
5278
  const jsonData = {
5278
5279
  model,
5279
5280
  method: "load_data" /* LOAD_DATA */,
5280
5281
  ids,
5281
- withContext: withContext ? withContext : {
5282
+ with_context: withContext ? withContext : {
5282
5283
  uid: 37,
5283
5284
  lang: "vi_VN",
5284
5285
  tz: "Asia/Saigon"
5285
5286
  },
5286
5287
  kwargs: {
5287
- models_to_load: [
5288
- "pos.config",
5289
- "pos.order",
5290
- "pos.order.line",
5291
- "pos.pack.operation.lot",
5292
- "pos.payment",
5293
- "pos.payment.method",
5294
- "pos.printer",
5295
- "pos.category",
5296
- "pos.bill",
5297
- "res.company",
5298
- "account.tax",
5299
- "account.tax.group",
5300
- "product.product",
5301
- "product.attribute",
5302
- "product.attribute.custom.value",
5303
- "product.template.attribute.line",
5304
- "product.template.attribute.value",
5305
- "product.combo",
5306
- "product.combo.item",
5307
- "product.packaging",
5308
- "res.users",
5309
- "res.partner",
5310
- "decimal.precision",
5311
- "uom.uom",
5312
- "uom.category",
5313
- "res.country",
5314
- "res.country.state",
5315
- "res.lang",
5316
- "product.pricelist",
5317
- "product.pricelist.item",
5318
- "product.category",
5319
- "account.cash.rounding",
5320
- "account.fiscal.position",
5321
- "account.fiscal.position.tax",
5322
- "stock.picking.type",
5323
- "res.currency",
5324
- "pos.note",
5325
- "ir.ui.view",
5326
- "product.tag",
5327
- "ir.module.module",
5328
- "pos_preparation_display.display"
5329
- ]
5288
+ models_to_load: modelsToLoad
5330
5289
  }
5331
5290
  };
5332
5291
  return env?.requests.post(
@@ -8011,14 +7970,16 @@ var useLoadDataPosSession = () => {
8011
7970
  ids,
8012
7971
  xNode,
8013
7972
  service,
8014
- withContext
7973
+ withContext,
7974
+ modelsToLoad
8015
7975
  }) => {
8016
7976
  return loadDataPosSession({
8017
7977
  model,
8018
7978
  ids,
8019
7979
  xNode,
8020
7980
  service,
8021
- withContext
7981
+ withContext,
7982
+ modelsToLoad
8022
7983
  });
8023
7984
  }
8024
7985
  });
package/dist/provider.mjs CHANGED
@@ -5229,61 +5229,20 @@ function useViewService() {
5229
5229
  ids,
5230
5230
  xNode,
5231
5231
  service,
5232
- withContext
5232
+ withContext,
5233
+ modelsToLoad = []
5233
5234
  }) => {
5234
5235
  const jsonData = {
5235
5236
  model,
5236
5237
  method: "load_data" /* LOAD_DATA */,
5237
5238
  ids,
5238
- withContext: withContext ? withContext : {
5239
+ with_context: withContext ? withContext : {
5239
5240
  uid: 37,
5240
5241
  lang: "vi_VN",
5241
5242
  tz: "Asia/Saigon"
5242
5243
  },
5243
5244
  kwargs: {
5244
- models_to_load: [
5245
- "pos.config",
5246
- "pos.order",
5247
- "pos.order.line",
5248
- "pos.pack.operation.lot",
5249
- "pos.payment",
5250
- "pos.payment.method",
5251
- "pos.printer",
5252
- "pos.category",
5253
- "pos.bill",
5254
- "res.company",
5255
- "account.tax",
5256
- "account.tax.group",
5257
- "product.product",
5258
- "product.attribute",
5259
- "product.attribute.custom.value",
5260
- "product.template.attribute.line",
5261
- "product.template.attribute.value",
5262
- "product.combo",
5263
- "product.combo.item",
5264
- "product.packaging",
5265
- "res.users",
5266
- "res.partner",
5267
- "decimal.precision",
5268
- "uom.uom",
5269
- "uom.category",
5270
- "res.country",
5271
- "res.country.state",
5272
- "res.lang",
5273
- "product.pricelist",
5274
- "product.pricelist.item",
5275
- "product.category",
5276
- "account.cash.rounding",
5277
- "account.fiscal.position",
5278
- "account.fiscal.position.tax",
5279
- "stock.picking.type",
5280
- "res.currency",
5281
- "pos.note",
5282
- "ir.ui.view",
5283
- "product.tag",
5284
- "ir.module.module",
5285
- "pos_preparation_display.display"
5286
- ]
5245
+ models_to_load: modelsToLoad
5287
5246
  }
5288
5247
  };
5289
5248
  return env?.requests.post(
@@ -7968,14 +7927,16 @@ var useLoadDataPosSession = () => {
7968
7927
  ids,
7969
7928
  xNode,
7970
7929
  service,
7971
- withContext
7930
+ withContext,
7931
+ modelsToLoad
7972
7932
  }) => {
7973
7933
  return loadDataPosSession({
7974
7934
  model,
7975
7935
  ids,
7976
7936
  xNode,
7977
7937
  service,
7978
- withContext
7938
+ withContext,
7939
+ modelsToLoad
7979
7940
  });
7980
7941
  }
7981
7942
  });
@@ -392,12 +392,13 @@ declare function useViewService(): {
392
392
  xNode?: string;
393
393
  method: string;
394
394
  }) => any;
395
- loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
395
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
396
396
  model: string;
397
397
  ids: any;
398
398
  service?: string;
399
399
  xNode?: string;
400
400
  withContext?: any;
401
+ modelsToLoad?: any;
401
402
  }) => any;
402
403
  manageOnChange: ({ model, ids, args, xNode, service, }: {
403
404
  model: string;
@@ -392,12 +392,13 @@ declare function useViewService(): {
392
392
  xNode?: string;
393
393
  method: string;
394
394
  }) => any;
395
- loadDataPosSession: ({ model, ids, xNode, service, withContext, }: {
395
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
396
396
  model: string;
397
397
  ids: any;
398
398
  service?: string;
399
399
  xNode?: string;
400
400
  withContext?: any;
401
+ modelsToLoad?: any;
401
402
  }) => any;
402
403
  manageOnChange: ({ model, ids, args, xNode, service, }: {
403
404
  model: string;
package/dist/services.js CHANGED
@@ -5474,61 +5474,20 @@ function useViewService() {
5474
5474
  ids,
5475
5475
  xNode,
5476
5476
  service,
5477
- withContext
5477
+ withContext,
5478
+ modelsToLoad = []
5478
5479
  }) => {
5479
5480
  const jsonData = {
5480
5481
  model,
5481
5482
  method: "load_data" /* LOAD_DATA */,
5482
5483
  ids,
5483
- withContext: withContext ? withContext : {
5484
+ with_context: withContext ? withContext : {
5484
5485
  uid: 37,
5485
5486
  lang: "vi_VN",
5486
5487
  tz: "Asia/Saigon"
5487
5488
  },
5488
5489
  kwargs: {
5489
- models_to_load: [
5490
- "pos.config",
5491
- "pos.order",
5492
- "pos.order.line",
5493
- "pos.pack.operation.lot",
5494
- "pos.payment",
5495
- "pos.payment.method",
5496
- "pos.printer",
5497
- "pos.category",
5498
- "pos.bill",
5499
- "res.company",
5500
- "account.tax",
5501
- "account.tax.group",
5502
- "product.product",
5503
- "product.attribute",
5504
- "product.attribute.custom.value",
5505
- "product.template.attribute.line",
5506
- "product.template.attribute.value",
5507
- "product.combo",
5508
- "product.combo.item",
5509
- "product.packaging",
5510
- "res.users",
5511
- "res.partner",
5512
- "decimal.precision",
5513
- "uom.uom",
5514
- "uom.category",
5515
- "res.country",
5516
- "res.country.state",
5517
- "res.lang",
5518
- "product.pricelist",
5519
- "product.pricelist.item",
5520
- "product.category",
5521
- "account.cash.rounding",
5522
- "account.fiscal.position",
5523
- "account.fiscal.position.tax",
5524
- "stock.picking.type",
5525
- "res.currency",
5526
- "pos.note",
5527
- "ir.ui.view",
5528
- "product.tag",
5529
- "ir.module.module",
5530
- "pos_preparation_display.display"
5531
- ]
5490
+ models_to_load: modelsToLoad
5532
5491
  }
5533
5492
  };
5534
5493
  return env?.requests.post(
package/dist/services.mjs CHANGED
@@ -5429,61 +5429,20 @@ function useViewService() {
5429
5429
  ids,
5430
5430
  xNode,
5431
5431
  service,
5432
- withContext
5432
+ withContext,
5433
+ modelsToLoad = []
5433
5434
  }) => {
5434
5435
  const jsonData = {
5435
5436
  model,
5436
5437
  method: "load_data" /* LOAD_DATA */,
5437
5438
  ids,
5438
- withContext: withContext ? withContext : {
5439
+ with_context: withContext ? withContext : {
5439
5440
  uid: 37,
5440
5441
  lang: "vi_VN",
5441
5442
  tz: "Asia/Saigon"
5442
5443
  },
5443
5444
  kwargs: {
5444
- models_to_load: [
5445
- "pos.config",
5446
- "pos.order",
5447
- "pos.order.line",
5448
- "pos.pack.operation.lot",
5449
- "pos.payment",
5450
- "pos.payment.method",
5451
- "pos.printer",
5452
- "pos.category",
5453
- "pos.bill",
5454
- "res.company",
5455
- "account.tax",
5456
- "account.tax.group",
5457
- "product.product",
5458
- "product.attribute",
5459
- "product.attribute.custom.value",
5460
- "product.template.attribute.line",
5461
- "product.template.attribute.value",
5462
- "product.combo",
5463
- "product.combo.item",
5464
- "product.packaging",
5465
- "res.users",
5466
- "res.partner",
5467
- "decimal.precision",
5468
- "uom.uom",
5469
- "uom.category",
5470
- "res.country",
5471
- "res.country.state",
5472
- "res.lang",
5473
- "product.pricelist",
5474
- "product.pricelist.item",
5475
- "product.category",
5476
- "account.cash.rounding",
5477
- "account.fiscal.position",
5478
- "account.fiscal.position.tax",
5479
- "stock.picking.type",
5480
- "res.currency",
5481
- "pos.note",
5482
- "ir.ui.view",
5483
- "product.tag",
5484
- "ir.module.module",
5485
- "pos_preparation_display.display"
5486
- ]
5445
+ models_to_load: modelsToLoad
5487
5446
  }
5488
5447
  };
5489
5448
  return env?.requests.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.7.7",
3
+ "version": "3.7.9",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",