Skip to content

Commit c2e3119

Browse files
committed
style: re-run prettier on edited files
1 parent 56fba1c commit c2e3119

3 files changed

Lines changed: 122 additions & 30 deletions

File tree

spp_drims_sl/data/demo_users.xml

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
<!-- These users can receive donations, manage inventory, and process dispatches -->
5151
<!-- They do NOT have manager/admin access -->
5252

53-
<record id="user_wh_staff_colombo" model="res.users" context="{'no_reset_password': True}">
53+
<record
54+
id="user_wh_staff_colombo"
55+
model="res.users"
56+
context="{'no_reset_password': True}"
57+
>
5458
<field name="name">Warehouse Staff - Colombo</field>
5559
<field name="login">staff.colombo@drims.gov.lk</field>
5660
<field name="password">demo</field>
@@ -64,7 +68,11 @@
6468
<field name="company_id" ref="base.main_company" />
6569
</record>
6670

67-
<record id="user_wh_staff_kandy" model="res.users" context="{'no_reset_password': True}">
71+
<record
72+
id="user_wh_staff_kandy"
73+
model="res.users"
74+
context="{'no_reset_password': True}"
75+
>
6876
<field name="name">Warehouse Staff - Kandy</field>
6977
<field name="login">staff.kandy@drims.gov.lk</field>
7078
<field name="password">demo</field>
@@ -81,7 +89,11 @@
8189
<!-- ==================== WAREHOUSE MANAGERS ==================== -->
8290
<!-- These users have full admin access to manage warehouse operations -->
8391

84-
<record id="user_wh_colombo" model="res.users" context="{'no_reset_password': True}">
92+
<record
93+
id="user_wh_colombo"
94+
model="res.users"
95+
context="{'no_reset_password': True}"
96+
>
8597
<field name="name">Warehouse Manager - Colombo</field>
8698
<field name="login">wh.colombo@drims.gov.lk</field>
8799
<field name="password">demo</field>
@@ -113,7 +125,11 @@
113125

114126
<!-- ==================== APPROVERS ==================== -->
115127

116-
<record id="user_approver_national" model="res.users" context="{'no_reset_password': True}">
128+
<record
129+
id="user_approver_national"
130+
model="res.users"
131+
context="{'no_reset_password': True}"
132+
>
117133
<field name="name">National Approver (DMC)</field>
118134
<field name="login">approver.national@drims.gov.lk</field>
119135
<field name="password">demo</field>
@@ -127,7 +143,11 @@
127143
<field name="company_id" ref="base.main_company" />
128144
</record>
129145

130-
<record id="user_approver_western" model="res.users" context="{'no_reset_password': True}">
146+
<record
147+
id="user_approver_western"
148+
model="res.users"
149+
context="{'no_reset_password': True}"
150+
>
131151
<field name="name">Western Province Approver</field>
132152
<field name="login">approver.western@drims.gov.lk</field>
133153
<field name="password">demo</field>
@@ -141,7 +161,11 @@
141161
<field name="company_id" ref="base.main_company" />
142162
</record>
143163

144-
<record id="user_approver_central" model="res.users" context="{'no_reset_password': True}">
164+
<record
165+
id="user_approver_central"
166+
model="res.users"
167+
context="{'no_reset_password': True}"
168+
>
145169
<field name="name">Central Province Approver</field>
146170
<field name="login">approver.central@drims.gov.lk</field>
147171
<field name="password">demo</field>
@@ -158,7 +182,11 @@
158182
<!-- ==================== FIELD OFFICERS ==================== -->
159183
<!-- Field officers can create requests and confirm deliveries in assigned areas -->
160184

161-
<record id="user_officer_colombo" model="res.users" context="{'no_reset_password': True}">
185+
<record
186+
id="user_officer_colombo"
187+
model="res.users"
188+
context="{'no_reset_password': True}"
189+
>
162190
<field name="name">Field Officer - Colombo District</field>
163191
<field name="login">officer.colombo@drims.gov.lk</field>
164192
<field name="password">demo</field>
@@ -172,7 +200,11 @@
172200
<field name="company_id" ref="base.main_company" />
173201
</record>
174202

175-
<record id="user_officer_gampaha" model="res.users" context="{'no_reset_password': True}">
203+
<record
204+
id="user_officer_gampaha"
205+
model="res.users"
206+
context="{'no_reset_password': True}"
207+
>
176208
<field name="name">Field Officer - Gampaha District</field>
177209
<field name="login">officer.gampaha@drims.gov.lk</field>
178210
<field name="password">demo</field>
@@ -186,7 +218,11 @@
186218
<field name="company_id" ref="base.main_company" />
187219
</record>
188220

189-
<record id="user_officer_kandy" model="res.users" context="{'no_reset_password': True}">
221+
<record
222+
id="user_officer_kandy"
223+
model="res.users"
224+
context="{'no_reset_password': True}"
225+
>
190226
<field name="name">Field Officer - Kandy District</field>
191227
<field name="login">officer.kandy@drims.gov.lk</field>
192228
<field name="password">demo</field>
@@ -200,7 +236,11 @@
200236
<field name="company_id" ref="base.main_company" />
201237
</record>
202238

203-
<record id="user_officer_galle" model="res.users" context="{'no_reset_password': True}">
239+
<record
240+
id="user_officer_galle"
241+
model="res.users"
242+
context="{'no_reset_password': True}"
243+
>
204244
<field name="name">Field Officer - Galle District</field>
205245
<field name="login">officer.galle@drims.gov.lk</field>
206246
<field name="password">demo</field>
@@ -216,7 +256,11 @@
216256

217257
<!-- ==================== VIEWERS / LEADERSHIP ==================== -->
218258

219-
<record id="user_viewer_secretary" model="res.users" context="{'no_reset_password': True}">
259+
<record
260+
id="user_viewer_secretary"
261+
model="res.users"
262+
context="{'no_reset_password': True}"
263+
>
220264
<field name="name">Secretary - Ministry of Disaster Management</field>
221265
<field name="login">secretary@drims.gov.lk</field>
222266
<field name="password">demo</field>
@@ -230,7 +274,11 @@
230274
<field name="company_id" ref="base.main_company" />
231275
</record>
232276

233-
<record id="user_viewer_director" model="res.users" context="{'no_reset_password': True}">
277+
<record
278+
id="user_viewer_director"
279+
model="res.users"
280+
context="{'no_reset_password': True}"
281+
>
234282
<field name="name">Director - DMC</field>
235283
<field name="login">director@drims.gov.lk</field>
236284
<field name="password">demo</field>

spp_mis_demo_v2/data/demo_users.xml

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
-->
2020

2121
<!-- Grant admin full QR Credentials access -->
22-
<record id="base.user_admin" model="res.users" context="{'no_reset_password': True}">
22+
<record
23+
id="base.user_admin"
24+
model="res.users"
25+
context="{'no_reset_password': True}"
26+
>
2327
<field
2428
name="group_ids"
2529
eval="[
@@ -77,7 +81,11 @@
7781
═══════════════════════════════════════════════════════════════════════ -->
7882

7983
<!-- Demo Manager - Registry Manager, Program Manager, Cycle Approver -->
80-
<record id="spp_demo.demo_manager" model="res.users" context="{'no_reset_password': True}">
84+
<record
85+
id="spp_demo.demo_manager"
86+
model="res.users"
87+
context="{'no_reset_password': True}"
88+
>
8189
<field
8290
name="role_line_ids"
8391
eval="[
@@ -89,7 +97,11 @@
8997
</record>
9098

9199
<!-- Demo Officer - Global Registrar, Program Viewer, CR Requestor -->
92-
<record id="spp_demo.demo_officer" model="res.users" context="{'no_reset_password': True}">
100+
<record
101+
id="spp_demo.demo_officer"
102+
model="res.users"
103+
context="{'no_reset_password': True}"
104+
>
93105
<field
94106
name="role_line_ids"
95107
eval="[
@@ -101,7 +113,11 @@
101113
</record>
102114

103115
<!-- Demo Supervisor - Global Registrar, Program Manager -->
104-
<record id="spp_demo.demo_supervisor" model="res.users" context="{'no_reset_password': True}">
116+
<record
117+
id="spp_demo.demo_supervisor"
118+
model="res.users"
119+
context="{'no_reset_password': True}"
120+
>
105121
<field
106122
name="role_line_ids"
107123
eval="[
@@ -112,7 +128,11 @@
112128
</record>
113129

114130
<!-- Demo Viewer - Registry Viewer, Program Viewer -->
115-
<record id="spp_demo.demo_viewer" model="res.users" context="{'no_reset_password': True}">
131+
<record
132+
id="spp_demo.demo_viewer"
133+
model="res.users"
134+
context="{'no_reset_password': True}"
135+
>
116136
<field
117137
name="role_line_ids"
118138
eval="[
@@ -127,7 +147,11 @@
127147
═══════════════════════════════════════════════════════════════════════ -->
128148

129149
<!-- Local Registrar - Area-scoped data capture -->
130-
<record id="demo_user_local_registrar" model="res.users" context="{'no_reset_password': True}">
150+
<record
151+
id="demo_user_local_registrar"
152+
model="res.users"
153+
context="{'no_reset_password': True}"
154+
>
131155
<field name="name">Demo Local Registrar</field>
132156
<field name="login">demo_local_registrar</field>
133157
<field name="email">demo_local_registrar@demo.spp</field>
@@ -141,7 +165,11 @@
141165
</record>
142166

143167
<!-- Global Registrar - Full access to registration across all areas -->
144-
<record id="demo_user_global_registrar" model="res.users" context="{'no_reset_password': True}">
168+
<record
169+
id="demo_user_global_registrar"
170+
model="res.users"
171+
context="{'no_reset_password': True}"
172+
>
145173
<field name="name">Demo Global Registrar</field>
146174
<field name="login">demo_global_registrar</field>
147175
<field name="email">demo_global_registrar@demo.spp</field>
@@ -159,7 +187,11 @@
159187
═══════════════════════════════════════════════════════════════════════ -->
160188

161189
<!-- CR Local Validator - Area-scoped change request approval -->
162-
<record id="demo_user_cr_local_validator" model="res.users" context="{'no_reset_password': True}">
190+
<record
191+
id="demo_user_cr_local_validator"
192+
model="res.users"
193+
context="{'no_reset_password': True}"
194+
>
163195
<field name="name">Demo CR Local Validator</field>
164196
<field name="login">demo_cr_local_validator</field>
165197
<field name="email">demo_cr_local_validator@demo.spp</field>
@@ -173,7 +205,11 @@
173205
</record>
174206

175207
<!-- CR HQ Validator - Headquarters-level change request approval -->
176-
<record id="demo_user_cr_hq_validator" model="res.users" context="{'no_reset_password': True}">
208+
<record
209+
id="demo_user_cr_hq_validator"
210+
model="res.users"
211+
context="{'no_reset_password': True}"
212+
>
177213
<field name="name">Demo CR HQ Validator</field>
178214
<field name="login">demo_cr_hq_validator</field>
179215
<field name="email">demo_cr_hq_validator@demo.spp</field>
@@ -191,7 +227,11 @@
191227
═══════════════════════════════════════════════════════════════════════ -->
192228

193229
<!-- Program Manager - Full program management capabilities -->
194-
<record id="demo_user_program_manager" model="res.users" context="{'no_reset_password': True}">
230+
<record
231+
id="demo_user_program_manager"
232+
model="res.users"
233+
context="{'no_reset_password': True}"
234+
>
195235
<field name="name">Demo Program Manager</field>
196236
<field name="login">demo_program_manager</field>
197237
<field name="email">demo_program_manager@demo.spp</field>
@@ -205,7 +245,11 @@
205245
</record>
206246

207247
<!-- Program Validator - Validates programs and manages cycles -->
208-
<record id="demo_user_program_validator" model="res.users" context="{'no_reset_password': True}">
248+
<record
249+
id="demo_user_program_validator"
250+
model="res.users"
251+
context="{'no_reset_password': True}"
252+
>
209253
<field name="name">Demo Program Validator</field>
210254
<field name="login">demo_program_validator</field>
211255
<field name="email">demo_program_validator@demo.spp</field>
@@ -219,7 +263,11 @@
219263
</record>
220264

221265
<!-- Cycle Approver - Can approve program cycles -->
222-
<record id="demo_user_cycle_approver" model="res.users" context="{'no_reset_password': True}">
266+
<record
267+
id="demo_user_cycle_approver"
268+
model="res.users"
269+
context="{'no_reset_password': True}"
270+
>
223271
<field name="name">Demo Cycle Approver</field>
224272
<field name="login">demo_cycle_approver</field>
225273
<field name="email">demo_cycle_approver@demo.spp</field>

spp_studio/static/src/js/logic_editor/test_panel_field.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export class TestPanelField extends Component {
7474
this.state.loading = true;
7575
try {
7676
// Call the action_run_test method on the test record
77-
await this.orm.call("spp.studio.test", "action_run_test", [
78-
[testId],
79-
]);
77+
await this.orm.call("spp.studio.test", "action_run_test", [[testId]]);
8078

8179
// Reload the record to get updated test results
8280
await this.props.record.load();
@@ -106,9 +104,7 @@ export class TestPanelField extends Component {
106104
this.state.loading = true;
107105
try {
108106
// Call the action_test_all method on the logic record
109-
await this.orm.call("spp.logic", "action_test_all", [
110-
[this.logicId],
111-
]);
107+
await this.orm.call("spp.logic", "action_test_all", [[this.logicId]]);
112108

113109
// Reload the record to get updated test results
114110
await this.props.record.load();

0 commit comments

Comments
 (0)