@steedos/standard-process-approval 2.7.0-beta.8 → 2.7.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.
@@ -214,31 +214,6 @@ fields:
214
214
  }
215
215
  }
216
216
  group: Rejection Actions
217
- form:
218
- beforeInsert:
219
- function(){
220
- if(_.isString(this.doc.assigned_approver_users)){
221
- this.doc.assigned_approver_users = this.doc.assigned_approver_users.split(',')
222
- }
223
- }
224
- beforeUpdate:
225
- function(){
226
- if(_.isString(this.doc.assigned_approver_users)){
227
- this.doc.assigned_approver_users = this.doc.assigned_approver_users.split(',')
228
- }
229
- }
230
- beforeEdit: !!js/function |
231
- function(){
232
- Steedos.ProcessNodeManager.changeSchema(this.doc, this.schema);
233
- }
234
- afterEdit: !!js/function |
235
- function(){
236
- Steedos.ProcessNodeManager.changeSchema(this.doc, this.schema);
237
- }
238
- beforeView: !!js/function |
239
- function(){
240
- Steedos.ProcessNodeManager.changeSchema(this.doc, this.schema);
241
- }
242
217
  list_views:
243
218
  all:
244
219
  label: All
@@ -132,22 +132,4 @@ permission_set:
132
132
  allowEdit: false
133
133
  allowRead: true
134
134
  modifyAllRecords: false
135
- viewAllRecords: true
136
- form:
137
- afterView: !!js/function |
138
- function(){
139
- var step_status = this.doc.step_status;
140
- $("div", $(".crm-header-title")).css("display", "inline");
141
- switch (step_status) {
142
- case 'approved':
143
- $(".crm-header-title").append('<span class="text-xs inline-block py-1 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-green-500 text-white rounded">'+TAPi18n.__("process_instance_history_field_step_status_options_approved")+'</span>')
144
- break;
145
- case 'rejected':
146
- $(".crm-header-title").append('<span class="text-xs inline-block py-1 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-red-600 text-white rounded">'+TAPi18n.__("process_instance_history_field_step_status_options_rejected")+'</span>')
147
- break;
148
- default:
149
- $(".crm-header-title").append('<span class="text-xs inline-block py-1 px-2.5 leading-none text-center whitespace-nowrap align-baseline font-bold bg-gray-200 text-gray-700 rounded">'+TAPi18n.__("process_instance_history_field_step_status_options_"+step_status)+'</span>')
150
- break;
151
- }
152
- // $(".object-form [fieldname=target_object] a.link-detail").attr("target", "_blank");
153
- }
135
+ viewAllRecords: true
@@ -89,19 +89,6 @@ fields:
89
89
  instance_state:
90
90
  hidden: true
91
91
  # todo:
92
- form:
93
- beforeEdit: !!js/function |
94
- function(){
95
- Steedos.ProcessFieldUpdatesManager.changeSchema(this.doc, this.schema);
96
- }
97
- afterEdit: !!js/function |
98
- function(){
99
- Steedos.ProcessFieldUpdatesManager.changeSchema(this.doc, this.schema);
100
- }
101
- beforeView: !!js/function |
102
- function(){
103
- Steedos.ProcessFieldUpdatesManager.changeSchema(this.doc, this.schema);
104
- }
105
92
  list_views:
106
93
  all:
107
94
  label: All
@@ -61,19 +61,6 @@ fields:
61
61
  return ['_id', '=', 'no']
62
62
  }
63
63
  }
64
- form:
65
- beforeEdit: !!js/function |
66
- function(){
67
- Steedos.WorkflowNotificationsManager.changeSchema(this.doc, this.schema);
68
- }
69
- afterEdit: !!js/function |
70
- function(){
71
- Steedos.WorkflowNotificationsManager.changeSchema(this.doc, this.schema);
72
- }
73
- beforeView: !!js/function |
74
- function(){
75
- Steedos.WorkflowNotificationsManager.changeSchema(this.doc, this.schema);
76
- }
77
64
  list_views:
78
65
  all:
79
66
  label: All Notifications
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-process-approval",
3
- "version": "2.7.0-beta.8",
3
+ "version": "2.7.0",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -10,10 +10,10 @@
10
10
  "steedos"
11
11
  ],
12
12
  "dependencies": {
13
- "@steedos/process": "2.7.0-beta.8"
13
+ "@steedos/process": "2.7.0"
14
14
  },
15
15
  "description": "steedos package",
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "e243f8a2b992421c933e38677b8437ca474469bd"
18
+ "gitHead": "2f1586ea4f8af5b93753878e96f1f48adbef31a7"
19
19
  }