Skip to content

Commit ead65ff

Browse files
committed
chore(spp_user_roles): regenerate README to match CI docutils output
1 parent f5a71cb commit ead65ff

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

spp_user_roles/README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ Dependencies
129129
Changelog
130130
=========
131131

132+
19.0.2.0.1
133+
~~~~~~~~~~
134+
135+
- fix(role): allow assigning groups to a brand-new role in a single
136+
save. Clicking **Add a line** in the role form's Groups tab used to
137+
trigger inline creation of a blank ``res.groups`` row, which raised a
138+
required-field validation error and aborted the save. The
139+
``implied_ids`` field's inner list now uses ``create="0"`` so the
140+
button opens an "Add" picker against existing groups, and
141+
``res.users.role.create()`` extracts ``implied_ids`` before
142+
``super().create()`` and writes them to the role's ``group_id``
143+
afterwards — mirroring the existing ``write()`` workaround in
144+
``base_user_role`` for the same ``_inherits`` cache-clearing bug.
145+
132146
19.0.2.0.0
133147
~~~~~~~~~~
134148

spp_user_roles/static/description/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,21 @@ <h2><a class="toc-backref" href="#toc-entry-1">Changelog</a></h2>
503503
</div>
504504
</div>
505505
<div class="section" id="section-1">
506+
<h1>19.0.2.0.1</h1>
507+
<ul class="simple">
508+
<li>fix(role): allow assigning groups to a brand-new role in a single
509+
save. Clicking <strong>Add a line</strong> in the role form’s Groups tab used to
510+
trigger inline creation of a blank <tt class="docutils literal">res.groups</tt> row, which raised a
511+
required-field validation error and aborted the save. The
512+
<tt class="docutils literal">implied_ids</tt> field’s inner list now uses <tt class="docutils literal"><span class="pre">create=&quot;0&quot;</span></tt> so the
513+
button opens an “Add” picker against existing groups, and
514+
<tt class="docutils literal">res.users.role.create()</tt> extracts <tt class="docutils literal">implied_ids</tt> before
515+
<tt class="docutils literal"><span class="pre">super().create()</span></tt> and writes them to the role’s <tt class="docutils literal">group_id</tt>
516+
afterwards — mirroring the existing <tt class="docutils literal">write()</tt> workaround in
517+
<tt class="docutils literal">base_user_role</tt> for the same <tt class="docutils literal">_inherits</tt> cache-clearing bug.</li>
518+
</ul>
519+
</div>
520+
<div class="section" id="section-2">
506521
<h1>19.0.2.0.0</h1>
507522
<ul class="simple">
508523
<li>Initial migration to OpenSPP2</li>

0 commit comments

Comments
 (0)