Skip to content

Commit 8e1ee43

Browse files
authored
Merge pull request #293 from OpenSPP/fix/1125-cr-type-disable-document-creation
fix(change_request_v2): disable inline creation of CR document types in CR Type Documents tab (#1125)
2 parents 26e2ea2 + 1249ce3 commit 8e1ee43

5 files changed

Lines changed: 33 additions & 8 deletions

File tree

spp_change_request_v2/README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,16 @@ Before declaring a new CR type complete:
853853
Changelog
854854
=========
855855

856+
19.0.2.0.8
857+
~~~~~~~~~~
858+
859+
- fix(views): disable inline creation of CR document types on the Change
860+
Request Type "Documents" tab — the ``Available Documents`` field now
861+
only selects existing ``cr_document_type`` vocabulary codes
862+
(``no_create`` / ``no_quick_create``), matching
863+
``Required Documents``. This removes the broken "Create Available
864+
Documents" modal (missing Name field) that blocked saving (#1125)
865+
856866
19.0.2.0.7
857867
~~~~~~~~~~
858868

spp_change_request_v2/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "OpenSPP Change Request V2",
3-
"version": "19.0.2.0.7",
3+
"version": "19.0.2.0.8",
44
"sequence": 50,
55
"category": "OpenSPP",
66
"summary": "Configuration-driven change request system with UX improvements, conflict detection and duplicate prevention",

spp_change_request_v2/readme/HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 19.0.2.0.8
2+
3+
- fix(views): disable inline creation of CR document types on the Change Request Type "Documents" tab — the `Available Documents` field now only selects existing `cr_document_type` vocabulary codes (`no_create` / `no_quick_create`), matching `Required Documents`. This removes the broken "Create Available Documents" modal (missing Name field) that blocked saving (#1125)
4+
15
### 19.0.2.0.7
26

37
- fix(security): align CR Requestor / CR Local Validator / CR HQ Validator roles with the OP#951 menu audit — replace the `spp_registry.group_registry_read` (Tier-3, no menu) link with `spp_registry.group_registry_viewer` so these roles see the Registry menu; add `spp_hazard.group_hazard_viewer` so they retain Hazard visibility once the menu root is gated. Adds `spp_hazard` to module dependencies.

spp_change_request_v2/static/description/index.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,17 @@ <h2>Changelog</h2>
13391339
</div>
13401340
</div>
13411341
<div class="section" id="section-1">
1342+
<h1>19.0.2.0.8</h1>
1343+
<ul class="simple">
1344+
<li>fix(views): disable inline creation of CR document types on the Change
1345+
Request Type “Documents” tab — the <tt class="docutils literal">Available Documents</tt> field now
1346+
only selects existing <tt class="docutils literal">cr_document_type</tt> vocabulary codes
1347+
(<tt class="docutils literal">no_create</tt> / <tt class="docutils literal">no_quick_create</tt>), matching
1348+
<tt class="docutils literal">Required Documents</tt>. This removes the broken “Create Available
1349+
Documents” modal (missing Name field) that blocked saving (#1125)</li>
1350+
</ul>
1351+
</div>
1352+
<div class="section" id="section-2">
13421353
<h1>19.0.2.0.7</h1>
13431354
<ul class="simple">
13441355
<li>fix(security): align CR Requestor / CR Local Validator / CR HQ
@@ -1350,7 +1361,7 @@ <h1>19.0.2.0.7</h1>
13501361
dependencies.</li>
13511362
</ul>
13521363
</div>
1353-
<div class="section" id="section-2">
1364+
<div class="section" id="section-3">
13541365
<h1>19.0.2.0.6</h1>
13551366
<ul class="simple">
13561367
<li>fix(views): route post-submit CRs (pending / approved / applied /
@@ -1365,7 +1376,7 @@ <h1>19.0.2.0.6</h1>
13651376
list so row-click goes through the stage router.</li>
13661377
</ul>
13671378
</div>
1368-
<div class="section" id="section-3">
1379+
<div class="section" id="section-4">
13691380
<h1>19.0.2.0.5</h1>
13701381
<ul class="simple">
13711382
<li>fix(security): add a global <tt class="docutils literal">ir.rule</tt> on <tt class="docutils literal">spp.change.request</tt> that
@@ -1378,27 +1389,27 @@ <h1>19.0.2.0.5</h1>
13781389
roles).</li>
13791390
</ul>
13801391
</div>
1381-
<div class="section" id="section-4">
1392+
<div class="section" id="section-5">
13821393
<h1>19.0.2.0.3</h1>
13831394
<ul class="simple">
13841395
<li>fix: add HTML escaping to all computed Html fields with
13851396
<tt class="docutils literal">sanitize=False</tt> to prevent stored XSS (#50)</li>
13861397
</ul>
13871398
</div>
1388-
<div class="section" id="section-5">
1399+
<div class="section" id="section-6">
13891400
<h1>19.0.2.0.2</h1>
13901401
<ul class="simple">
13911402
<li>fix: fix batch approval wizard line deletion (#130)</li>
13921403
</ul>
13931404
</div>
1394-
<div class="section" id="section-6">
1405+
<div class="section" id="section-7">
13951406
<h1>19.0.2.0.1</h1>
13961407
<ul class="simple">
13971408
<li>fix: skip field types before getattr and isolate detail prefetch
13981409
(#129)</li>
13991410
</ul>
14001411
</div>
1401-
<div class="section" id="section-7">
1412+
<div class="section" id="section-8">
14021413
<h1>19.0.2.0.0</h1>
14031414
<ul class="simple">
14041415
<li>Initial migration to OpenSPP2</li>

spp_change_request_v2/views/change_request_type_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
name="available_document_ids"
223223
widget="many2many_tags"
224224
placeholder="Select which document types can be uploaded..."
225-
context="{'default_vocabulary_id': %(spp_vocabulary.vocabulary_cr_document_type)d}"
225+
options="{'no_create': True, 'no_quick_create': True}"
226226
/>
227227
<field
228228
name="required_document_ids"

0 commit comments

Comments
 (0)