Skip to content

Commit 5881862

Browse files
committed
chore: apply pre-commit auto-fixes from CI (OP#920)
prettier and the OCA README generator wanted to reformat the new pager inheritance template + regenerate spp_change_request_v2 README artifacts after the new HISTORY entry shifted section numbering. Applies CI's regenerated bytes directly.
1 parent 9b9e857 commit 5881862

4 files changed

Lines changed: 38 additions & 8 deletions

File tree

spp_base_common/static/src/scss/pager_hide_single.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
.o_control_panel_navigation {
99
align-items: center;
1010
}
11-

spp_base_common/static/src/xml/pager_hide_single.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8" ?>
22
<!--
33
Hide the form-view "1/1" pager when there's only one record to navigate.
44
@@ -14,9 +14,11 @@
1414
See OP#920.
1515
-->
1616
<templates xml:space="preserve">
17-
<t t-name="spp_base_common.PagerHideSingle"
18-
t-inherit="web.Pager"
19-
t-inherit-mode="extension">
17+
<t
18+
t-name="spp_base_common.PagerHideSingle"
19+
t-inherit="web.Pager"
20+
t-inherit-mode="extension"
21+
>
2022
<xpath expr="//nav[hasclass('o_pager')]" position="attributes">
2123
<attribute name="t-if">props.total &gt; 1 or props.updateTotal</attribute>
2224
</xpath>

spp_change_request_v2/README.rst

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

856+
19.0.2.0.4
857+
~~~~~~~~~~
858+
859+
- fix(views): route post-submit CRs (pending / approved / applied /
860+
rejected) through the stage review form when opened from the list,
861+
matching the Edit Details → Upload Documents → Review & Submit
862+
breadcrumb workflow used for fresh CRs (#920 round-2). Demo-generated
863+
CRs in "Applied" state previously landed on the legacy main form view
864+
from the list — now they open in ``spp_change_request_review_form``
865+
like manually-created CRs. Adds the missing
866+
``_action_open_review_form`` / ``_action_open_documents_form`` helpers
867+
and wires ``action="action_open_stage_form" type="object"`` on the CR
868+
list so row-click goes through the stage router.
869+
856870
19.0.2.0.3
857871
~~~~~~~~~~
858872

spp_change_request_v2/static/description/index.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,26 +1339,41 @@ <h2>Changelog</h2>
13391339
</div>
13401340
</div>
13411341
<div class="section" id="section-1">
1342+
<h1>19.0.2.0.4</h1>
1343+
<ul class="simple">
1344+
<li>fix(views): route post-submit CRs (pending / approved / applied /
1345+
rejected) through the stage review form when opened from the list,
1346+
matching the Edit Details → Upload Documents → Review &amp; Submit
1347+
breadcrumb workflow used for fresh CRs (#920 round-2). Demo-generated
1348+
CRs in “Applied” state previously landed on the legacy main form view
1349+
from the list — now they open in <tt class="docutils literal">spp_change_request_review_form</tt>
1350+
like manually-created CRs. Adds the missing
1351+
<tt class="docutils literal">_action_open_review_form</tt> / <tt class="docutils literal">_action_open_documents_form</tt> helpers
1352+
and wires <tt class="docutils literal"><span class="pre">action=&quot;action_open_stage_form&quot;</span> <span class="pre">type=&quot;object&quot;</span></tt> on the CR
1353+
list so row-click goes through the stage router.</li>
1354+
</ul>
1355+
</div>
1356+
<div class="section" id="section-2">
13421357
<h1>19.0.2.0.3</h1>
13431358
<ul class="simple">
13441359
<li>fix: add HTML escaping to all computed Html fields with
13451360
<tt class="docutils literal">sanitize=False</tt> to prevent stored XSS (#50)</li>
13461361
</ul>
13471362
</div>
1348-
<div class="section" id="section-2">
1363+
<div class="section" id="section-3">
13491364
<h1>19.0.2.0.2</h1>
13501365
<ul class="simple">
13511366
<li>fix: fix batch approval wizard line deletion (#130)</li>
13521367
</ul>
13531368
</div>
1354-
<div class="section" id="section-3">
1369+
<div class="section" id="section-4">
13551370
<h1>19.0.2.0.1</h1>
13561371
<ul class="simple">
13571372
<li>fix: skip field types before getattr and isolate detail prefetch
13581373
(#129)</li>
13591374
</ul>
13601375
</div>
1361-
<div class="section" id="section-4">
1376+
<div class="section" id="section-5">
13621377
<h1>19.0.2.0.0</h1>
13631378
<ul class="simple">
13641379
<li>Initial migration to OpenSPP2</li>

0 commit comments

Comments
 (0)