@steedos/standard-object-database 2.5.18-beta.1 → 2.5.18-beta.3
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/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml +13 -1
- package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +16 -1
- package/main/default/objects/object_fields.object.yml +15 -1
- package/main/default/objects/objects.object.yml +1 -0
- package/main/default/pages/design_field_layout.page.amis.json +26 -15
- package/main/default/pages/object_fields_form.page.amis.json +7 -0
- package/main/default/triggers/object_fields.trigger.js +22 -3
- package/package.json +2 -2
- package/package.service.js +11 -2
package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml
CHANGED
|
@@ -244,6 +244,10 @@ fields:
|
|
|
244
244
|
label: Value
|
|
245
245
|
help:
|
|
246
246
|
description:
|
|
247
|
+
summary_depend_on:
|
|
248
|
+
label: Recalculate Summary Depend On
|
|
249
|
+
help: Which fields of the child table are dependent on when the summary is performed. When the values of these fields change, a recalculation of the summary field values of the primary table records is triggered.
|
|
250
|
+
description:
|
|
247
251
|
column_name:
|
|
248
252
|
label: Database column name
|
|
249
253
|
help: Only supports relational databases.
|
|
@@ -295,7 +299,11 @@ fields:
|
|
|
295
299
|
description:
|
|
296
300
|
index:
|
|
297
301
|
label: Is Index Field
|
|
298
|
-
help:
|
|
302
|
+
help: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
|
|
303
|
+
description:
|
|
304
|
+
unique:
|
|
305
|
+
label: Unique Index
|
|
306
|
+
help: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
|
|
299
307
|
description:
|
|
300
308
|
sortable:
|
|
301
309
|
label: Sortable
|
|
@@ -341,6 +349,10 @@ fields:
|
|
|
341
349
|
label: Amis Attribute
|
|
342
350
|
help:
|
|
343
351
|
description:
|
|
352
|
+
enable_enhanced_lookup:
|
|
353
|
+
label: Enable Enhanced Lookup
|
|
354
|
+
help:
|
|
355
|
+
description:
|
|
344
356
|
groups:
|
|
345
357
|
external_data_source: External data source
|
|
346
358
|
advanced: Advanced
|
|
@@ -6,6 +6,10 @@ fields:
|
|
|
6
6
|
label: 所属对象
|
|
7
7
|
help:
|
|
8
8
|
description:
|
|
9
|
+
is_system:
|
|
10
|
+
label: 系统
|
|
11
|
+
help:
|
|
12
|
+
description:
|
|
9
13
|
label:
|
|
10
14
|
label: 显示名称
|
|
11
15
|
help:
|
|
@@ -224,6 +228,10 @@ fields:
|
|
|
224
228
|
label: 值
|
|
225
229
|
help:
|
|
226
230
|
description:
|
|
231
|
+
summary_depend_on:
|
|
232
|
+
label: 汇总依赖的字段
|
|
233
|
+
help: 汇总时依赖了子表的哪些字段,当这些字段值变更时会触发重算主表记录的汇总字段值
|
|
234
|
+
description:
|
|
227
235
|
column_name:
|
|
228
236
|
label: 数据库字段名
|
|
229
237
|
help: 仅支持关系型数据库
|
|
@@ -275,7 +283,11 @@ fields:
|
|
|
275
283
|
description:
|
|
276
284
|
index:
|
|
277
285
|
label: 创建索引
|
|
278
|
-
help:
|
|
286
|
+
help: 默认每天凌晨执行一次创建,已有的索引不重复创建。
|
|
287
|
+
description:
|
|
288
|
+
unique:
|
|
289
|
+
label: 创建唯一索引
|
|
290
|
+
help: 默认每天凌晨执行一次创建,已有的索引不重复创建。
|
|
279
291
|
description:
|
|
280
292
|
sortable:
|
|
281
293
|
label: 可排序
|
|
@@ -313,6 +325,9 @@ fields:
|
|
|
313
325
|
amis:
|
|
314
326
|
label: Amis 属性
|
|
315
327
|
help: <a href='https://docs.steedos.com/zh-CN/no-code/customize/fields/field-attributes/#amis-%E5%B1%9E%E6%80%A7' target='_blank'>查看帮助</a>
|
|
328
|
+
enable_enhanced_lookup:
|
|
329
|
+
label: 启用弹出窗口查找模式
|
|
330
|
+
help:
|
|
316
331
|
description:
|
|
317
332
|
groups:
|
|
318
333
|
external_data_source: 外部数据源
|
|
@@ -576,6 +576,7 @@ fields:
|
|
|
576
576
|
- summary_object
|
|
577
577
|
- summary_type
|
|
578
578
|
defaultIcon: service_contract
|
|
579
|
+
enable_enhanced_lookup: false
|
|
579
580
|
amis:
|
|
580
581
|
disabledOn: "${is_system == true}"
|
|
581
582
|
"autoComplete":
|
|
@@ -587,7 +588,7 @@ fields:
|
|
|
587
588
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
588
589
|
"sendOn": "!!this.summary_object && !!this.summary_type"
|
|
589
590
|
"adaptor": "const summary_type = api.body.summary_type;\nconst term = api.query.term;\nlet fields = payload.fields;\nlet options = [];\nif (fields) {\n if (summary_type && summary_type !== \"count\") {\n if (summary_type === \"sum\" || summary_type === \"avg\") {\n /*sum/avg类型可以汇总数值、金额、百分比字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n else {\n /*min、max类型可以汇总数值、金额、百分比、日期、日期时间字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\", \"date\", \"datetime\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n }\n if (term) {\n options = _.filter(options, (item) => {\n return item.label.toLowerCase().indexOf(term.toLowerCase()) > -1;\n })\n }\n}\npayload = {\n data: { options: options },\n msg: \"\",\n status: 0\n}\nreturn payload;"
|
|
590
|
-
visible_on: "{{formData.type === 'summary' && formData.summary_type !== 'count'
|
|
591
|
+
visible_on: "{{formData.type === 'summary' && formData.summary_object && formData.summary_type && formData.summary_type !== 'count'}}"
|
|
591
592
|
required: "{{formData.type === 'summary' && formData.summary_type !== 'count' ? true: false}}"
|
|
592
593
|
sort_no: 320
|
|
593
594
|
summary_filters:
|
|
@@ -750,6 +751,13 @@ fields:
|
|
|
750
751
|
label: Is Index Field
|
|
751
752
|
group: Advanced
|
|
752
753
|
sort_no: 410
|
|
754
|
+
inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
|
|
755
|
+
unique:
|
|
756
|
+
type: boolean
|
|
757
|
+
label: Unique Index
|
|
758
|
+
group: Advanced
|
|
759
|
+
sort_no: 411
|
|
760
|
+
inlineHelpText: The Creation Is Executed Once A Day By Default And The Existing Indexes Are Not Repeatedly Created.
|
|
753
761
|
sortable:
|
|
754
762
|
type: boolean
|
|
755
763
|
label: Sortable
|
|
@@ -804,6 +812,10 @@ fields:
|
|
|
804
812
|
type: boolean
|
|
805
813
|
label: System
|
|
806
814
|
visible_on: "{{false}}"
|
|
815
|
+
enable_enhanced_lookup:
|
|
816
|
+
type: boolean
|
|
817
|
+
label: Enable Enhanced Lookup
|
|
818
|
+
visible_on: "{{false}}"
|
|
807
819
|
paging:
|
|
808
820
|
enabled: false
|
|
809
821
|
list_views:
|
|
@@ -816,6 +828,7 @@ list_views:
|
|
|
816
828
|
- object
|
|
817
829
|
- sort_no
|
|
818
830
|
- modified
|
|
831
|
+
- is_system
|
|
819
832
|
sort:
|
|
820
833
|
- field_name: sort_no
|
|
821
834
|
order: asc
|
|
@@ -830,6 +843,7 @@ list_views:
|
|
|
830
843
|
- object
|
|
831
844
|
- sort_no
|
|
832
845
|
- modified
|
|
846
|
+
- is_system
|
|
833
847
|
label: 自定义
|
|
834
848
|
filters:
|
|
835
849
|
- ["is_system","<>",true]
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"items": [
|
|
18
18
|
{
|
|
19
19
|
"type": "tpl",
|
|
20
|
-
"tpl": "
|
|
20
|
+
"tpl": "<p><h4><strong>设计字段布局</strong></h4> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\"> ${designObjectName}</span></p>",
|
|
21
21
|
"id": "u:4c7bef616400"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"actions": [
|
|
61
61
|
{
|
|
62
62
|
"actionType": "custom",
|
|
63
|
-
"script": "//整理分组数据\nlet setting_groups = event.data.setting_groups;\nif (!_.find(setting_groups, { is_default: true })) {\n setting_groups.unshift({\n \"id\": \"未分组\",\n \"group_name\": \"未分组\",\n \"visible_on\": \"\",\n \"is_default\": true\n })\n}\nsetting_groups.forEach(function (group) {\n if (group.is_default) {\n group.group_name = \"未分组\";\n group.visible_on = \"\";\n }\n if (!group.id) {\n group.id = group.group_name;\n }\n})\n\n//整理字段与分组关系的数据\nconst fieldForGroup = {};\nlet oldGroup = event.data.fieldForGroup;\nsetting_groups.forEach(function (group) {\n if (_.has(oldGroup, group.id)) {\n fieldForGroup[group.id] = oldGroup[group.id];\n oldGroup = _.omit(oldGroup, group.id);\n } else {\n fieldForGroup[group.id] = [];\n }\n})\nif (oldGroup && !_.isEmpty(oldGroup)) {\n _.forEach(oldGroup, function (value, key) {\n fieldForGroup[\"未分组\"] = _.unionBy(fieldForGroup[\"未分组\"], value);\n });\n}\nconsole.log(\"setting_groups,fieldForGroup===>\", setting_groups, fieldForGroup);\n\ndoAction({\n actionType: 'setValue',\n componentId: 'service_field_design',\n args: {\n value: {\n groups: setting_groups,\n fieldForGroup\n }\n }\n});"
|
|
63
|
+
"script": "//整理分组数据\nlet setting_groups = event.data.setting_groups;\nif (!_.find(setting_groups, { is_default: true })) {\n setting_groups.unshift({\n \"id\": \"未分组\",\n \"group_name\": \"未分组\",\n \"visible_on\": \"\",\n \"is_default\": true\n })\n}\nsetting_groups.forEach(function (group) {\n if (group.is_default) {\n group.group_name = \"未分组\";\n group.visible_on = \"\";\n }\n if (!group.id) {\n group.id = group.group_name;\n }\n})\n\n//整理字段与分组关系的数据\nconst fieldForGroup = {};\nlet oldGroup = _.cloneDeep(event.data.fieldForGroup);\nsetting_groups.forEach(function (group) {\n if (_.has(oldGroup, group.id)) {\n fieldForGroup[group.id] = oldGroup[group.id];\n oldGroup = _.omit(oldGroup, group.id);\n } else {\n fieldForGroup[group.id] = [];\n }\n})\nif (oldGroup && !_.isEmpty(oldGroup)) {\n _.forEach(oldGroup, function (value, key) {\n fieldForGroup[\"未分组\"] = _.unionBy(fieldForGroup[\"未分组\"], value);\n });\n}\nconsole.log(\"setting_groups,fieldForGroup===>\", setting_groups, fieldForGroup);\n\ndoAction({\n actionType: 'setValue',\n componentId: 'service_field_design',\n args: {\n value: {\n groups: setting_groups,\n fieldForGroup\n }\n }\n});"
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
66
|
}
|
|
@@ -161,23 +161,28 @@
|
|
|
161
161
|
"columns": 2,
|
|
162
162
|
"name": "design_field",
|
|
163
163
|
"boardSource": "${groups}",
|
|
164
|
-
"boardClassName": "bg-gray-50 p-2
|
|
164
|
+
"boardClassName": "bg-gray-50 p-2 ",
|
|
165
|
+
"header": {
|
|
166
|
+
"className": ""
|
|
167
|
+
},
|
|
165
168
|
"boardHeader": {
|
|
166
169
|
"type": "tpl",
|
|
167
|
-
"tpl": "
|
|
170
|
+
"tpl": "${group_name}",
|
|
168
171
|
"id": "u:76d9a6c7d401"
|
|
169
172
|
},
|
|
170
173
|
"cardClassName": "p-1 bg-white border w-full rounded shadow",
|
|
171
174
|
"cardSchema": {
|
|
172
175
|
"type": "card",
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
"body": [
|
|
177
|
+
{
|
|
178
|
+
"type": "tpl",
|
|
179
|
+
"tpl": "<p><strong>${label}</strong> ${designObjectLabel}<span style=\"color: rgb(149, 165, 166);\">${_name}</span></p>",
|
|
180
|
+
"className": "w-4/5",
|
|
181
|
+
"inline": true
|
|
182
|
+
},
|
|
178
183
|
{
|
|
179
184
|
"type": "steedos-dropdown-button",
|
|
180
|
-
"label": "
|
|
185
|
+
"label": "",
|
|
181
186
|
"buttons": [
|
|
182
187
|
{
|
|
183
188
|
"type": "steedos-object-button",
|
|
@@ -198,9 +203,12 @@
|
|
|
198
203
|
"click"
|
|
199
204
|
],
|
|
200
205
|
"id": "u:c2140a365019",
|
|
201
|
-
"
|
|
206
|
+
"mode": "edit",
|
|
207
|
+
"className": "mr-7 w-fit h-fit opacity-0"
|
|
202
208
|
}
|
|
203
209
|
],
|
|
210
|
+
"bodyClassName": "h-7 flex justify-between items-center p-0 pl-10 my-2",
|
|
211
|
+
"toolbar": [ ],
|
|
204
212
|
"className": "mb-0 border-0 bg-none card",
|
|
205
213
|
"id": "u:296298da1bef"
|
|
206
214
|
},
|
|
@@ -211,7 +219,7 @@
|
|
|
211
219
|
"actions": [
|
|
212
220
|
{
|
|
213
221
|
"actionType": "custom",
|
|
214
|
-
"script": "const newGroups = _.keys(event.data.value);\nconst lastGroups = _.map(context.props.data.groups, 'group_name');\nif (newGroups != lastGroups) {\n doAction({\n actionType: 'setValue',\n componentId: 'service_field_design',\n args: {\n value: {\n groups: field_groups = _.sortBy(context.props.data.groups, function (group) { return _.findIndex(newGroups, function (group_name) { return group.group_name === group_name; }); })\n }\n }\n });\n}\n"
|
|
222
|
+
"script": "const newGroups = _.keys(event.data.value);\nconst lastGroups = _.map(context.props.data.groups, 'group_name');\nif (newGroups != lastGroups) {\n doAction({\n actionType: 'setValue',\n componentId: 'service_field_design',\n args: {\n value: {\n fieldForGroup: event.data.value, groups: field_groups = _.sortBy(context.props.data.groups, function (group) { return _.findIndex(newGroups, function (group_name) { return group.group_name === group_name; }); })\n }\n }\n });\n}\n"
|
|
215
223
|
}
|
|
216
224
|
]
|
|
217
225
|
}
|
|
@@ -243,7 +251,7 @@
|
|
|
243
251
|
"name": "form_design_form"
|
|
244
252
|
}
|
|
245
253
|
],
|
|
246
|
-
"className": "Panel--default max-w-
|
|
254
|
+
"className": "Panel--default max-w-4xl m-auto",
|
|
247
255
|
"id": "u:3a90104cb6b4"
|
|
248
256
|
}
|
|
249
257
|
],
|
|
@@ -331,8 +339,11 @@
|
|
|
331
339
|
},
|
|
332
340
|
"id": "u:993ee4316643",
|
|
333
341
|
"css": {
|
|
334
|
-
".steedos-design-field .
|
|
335
|
-
"
|
|
342
|
+
".steedos-design-field li.p-1:hover .opacity-0": {
|
|
343
|
+
"opacity": "0.99"
|
|
344
|
+
},
|
|
345
|
+
".antd-TplField p": {
|
|
346
|
+
"margin": "0.625rem 0.625rem"
|
|
336
347
|
}
|
|
337
348
|
},
|
|
338
349
|
"className": "steedos-design-field"
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
"enableTabs": true,
|
|
11
11
|
"mode": "edit",
|
|
12
12
|
"layout": "normal",
|
|
13
|
+
"fieldsExtend": {
|
|
14
|
+
"type": {
|
|
15
|
+
"amis": {
|
|
16
|
+
"searchable": true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
13
20
|
"apiRequestAdaptor": "api.data.query = api.data.query.replace('object_fields__update', 'object_fields__upsert')",
|
|
14
21
|
"submitSuccActions": [
|
|
15
22
|
{
|
|
@@ -222,7 +222,7 @@ module.exports = {
|
|
|
222
222
|
if(!objectName && filters._id && filters._id.indexOf(".") > -1){
|
|
223
223
|
objectName = filters._id.split('.')[0];
|
|
224
224
|
}
|
|
225
|
-
if(objectName){
|
|
225
|
+
if(objectName){
|
|
226
226
|
let fields = await InternalData.getObjectFields(objectName, this.userId, filters.name ? true : false);
|
|
227
227
|
if(fields){
|
|
228
228
|
_.each(fields, (field)=>{
|
|
@@ -232,6 +232,20 @@ module.exports = {
|
|
|
232
232
|
this.data.values = objectql.getSteedosSchema().metadataDriver.find(this.data.values, this.query, this.spaceId);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
+
|
|
236
|
+
const dbSystemField = _.find(this.data.values, (field)=>{return field.is_system && field._id && field._id.indexOf('.') == -1})
|
|
237
|
+
if(dbSystemField){
|
|
238
|
+
const obj = await InternalData.getObject(dbSystemField.object, this.userId)
|
|
239
|
+
if(obj){
|
|
240
|
+
this.data.values = _.map(this.data.values, (item)=>{
|
|
241
|
+
if(item.is_system){
|
|
242
|
+
return Object.assign(item, _.find(obj.fields, (field)=>{return field.name === item.name}))
|
|
243
|
+
}else{
|
|
244
|
+
return item;
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
}
|
|
235
249
|
},
|
|
236
250
|
beforeFind: async function(){
|
|
237
251
|
const { query } = this;
|
|
@@ -327,7 +341,12 @@ module.exports = {
|
|
|
327
341
|
}
|
|
328
342
|
if(["parent","children"].indexOf(dbDoc._name) > -1){
|
|
329
343
|
let isImportField = false;
|
|
330
|
-
if(doc._name
|
|
344
|
+
if((doc._name != undefined && doc._name !== dbDoc._name) ||
|
|
345
|
+
(doc.type != undefined && doc.type !== dbDoc.type) ||
|
|
346
|
+
(doc.object != undefined && doc.object !== dbDoc.object) ||
|
|
347
|
+
(doc.reference_to != undefined && doc.reference_to !== dbDoc.reference_to) ||
|
|
348
|
+
(doc.multiple != undefined && !!doc.multiple !== !!dbDoc.multiple) ||
|
|
349
|
+
(doc.omit != undefined && ("children" === dbDoc._name && doc.omit !== true))){
|
|
331
350
|
isImportField = true;
|
|
332
351
|
}
|
|
333
352
|
if(isImportField){
|
|
@@ -362,7 +381,7 @@ module.exports = {
|
|
|
362
381
|
// !!!暂不允许修改字段类型
|
|
363
382
|
if (_.has(doc, 'type')) {
|
|
364
383
|
const newFieldType = doc.type;
|
|
365
|
-
if (newFieldType && (latestDoc.type != newFieldType)) {
|
|
384
|
+
if (latestDoc.type && newFieldType && (latestDoc.type != newFieldType)) {
|
|
366
385
|
throw new Error('禁止修改字段类型。');
|
|
367
386
|
}
|
|
368
387
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.5.18-beta.
|
|
3
|
+
"version": "2.5.18-beta.3",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "ad7085eedba341a58446a969102da5cdc3d691b2"
|
|
19
19
|
}
|
package/package.service.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: sunhaolin@hotoa.com
|
|
3
3
|
* @Date: 1985-10-26 16:15:00
|
|
4
4
|
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime: 2023-10-
|
|
5
|
+
* @LastEditTime: 2023-10-31 10:25:17
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
@@ -57,6 +57,10 @@ module.exports = {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
delete data.space;
|
|
60
|
+
|
|
61
|
+
if(data.is_system){
|
|
62
|
+
data = _.pick(data, ['label', 'icon', 'enable_files', 'enable_tasks', 'enable_notes', 'enable_events', 'enable_workflow', 'enable_instances', 'enable_inline_edit', 'enable_tree', 'enable_enhanced_lookup', 'description', 'is_deleted'])
|
|
63
|
+
}
|
|
60
64
|
|
|
61
65
|
const object = await this.getObject('objects');
|
|
62
66
|
const dbRecord = await object.directFind({filters: ['_id','=',id]});
|
|
@@ -98,6 +102,10 @@ module.exports = {
|
|
|
98
102
|
data = JSON.parse(JSON.stringify(doc));
|
|
99
103
|
}
|
|
100
104
|
delete data.space;
|
|
105
|
+
|
|
106
|
+
if(data.is_system){
|
|
107
|
+
data = _.pick(data, ['label', 'defaultValue', 'group', 'rows', 'sort_no', 'is_wide', 'index', 'sortable', 'searchable', 'filterable', 'visible_on', 'inlineHelpText', 'description', 'amis'])
|
|
108
|
+
}
|
|
101
109
|
|
|
102
110
|
const object = await this.getObject('object_fields');
|
|
103
111
|
if(id.indexOf('.') > 0){
|
|
@@ -119,7 +127,8 @@ module.exports = {
|
|
|
119
127
|
created_by: userSession.userId,
|
|
120
128
|
modified_by: userSession.userId,
|
|
121
129
|
company_id: userSession.company_id,
|
|
122
|
-
company_ids: userSession.company_ids
|
|
130
|
+
company_ids: userSession.company_ids,
|
|
131
|
+
is_system: true
|
|
123
132
|
}));
|
|
124
133
|
id = newId;
|
|
125
134
|
}
|