You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- fix(role): allow assigning groups to a brand-new role in a single save. Clicking **Add a line** in the role form's Groups tab used to trigger inline creation of a blank `res.groups` row, which raised a required-field validation error and aborted the save. The `implied_ids` field's inner list now uses `create="0"` so the button opens an "Add" picker against existing groups, and `res.users.role.create()` extracts `implied_ids` before `super().create()` and writes them to the role's `group_id` afterwards — mirroring the existing `write()` workaround in `base_user_role` for the same `_inherits` cache-clearing bug.
<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 <ttclass="docutils literal">res.groups</tt> row, which raised a
511
+
required-field validation error and aborted the save. The
512
+
<ttclass="docutils literal">implied_ids</tt> field’s inner list now uses <ttclass="docutils literal"><spanclass="pre">create="0"</span></tt> so the
513
+
button opens an “Add” picker against existing groups, and
514
+
<ttclass="docutils literal">res.users.role.create()</tt> extracts <ttclass="docutils literal">implied_ids</tt> before
515
+
<ttclass="docutils literal"><spanclass="pre">super().create()</span></tt> and writes them to the role’s <ttclass="docutils literal">group_id</tt>
516
+
afterwards — mirroring the existing <ttclass="docutils literal">write()</tt> workaround in
517
+
<ttclass="docutils literal">base_user_role</tt> for the same <ttclass="docutils literal">_inherits</tt> cache-clearing bug.</li>
0 commit comments