← Back to Pull requests

[18.0][MIG] user_log_view: Migration to 18.0 #787

Closed
kobros-tech closed this pull request without merging on Oct 13, 2025 19:13 UTC
View on GitHub
kobros-tech kobros-tech commented on Apr 10, 2025 13:19 UTC
Author

from #711

Diff: 722 lines (+722 / -0) across 12 files Reviewer: CasVissers-360ERP Review duration: 268193m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.88) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.88 · 722 lines diff across 12 files
0.88
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 5 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
83%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.394
Sensitive Paths sensitive_paths
0.088
Empty Description empty_description
0.060
Real PR Conversation Timeline
20 items
CasVissers-360ERP CasVissers-360ERP approved these changes on May 09, 2025 07:19 UTC
Approved Reviewer

Functional review

kobros-tech kobros-tech commented on Jun 19, 2025 10:20 UTC
Author

@mymage

mymage mymage commented on Jun 19, 2025 10:50 UTC
Contributor

@mymage

please force push so the runboat will be operative

jqbeltran2 jqbeltran2 commented on Sep 02, 2025 19:34 UTC
Contributor
jqbeltran2 jqbeltran2 commented on Sep 05, 2025 02:55 UTC
Contributor

Hi @kobros-tech

Is this still active?

jqbeltran2 jqbeltran2 commented on Sep 10, 2025 06:51 UTC
Contributor

/ocabot migration user_log_view

OCA-git-bot OCA-git-bot commented on Sep 10, 2025 06:51 UTC
Bot

Sorry @jqbeltran2 you are not allowed to mark the addon to be migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

luisDIXMIT luisDIXMIT approved these changes on Sep 15, 2025 08:59 UTC
Approved Reviewer

Tested locally and LGTM!!

luisg123v luisg123v commented on code on Sep 29, 2025 16:38 UTC
Code Review
user_log_view/views/res_users_views.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Denis Mudarisov (IT-Projects LLC)
+     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
+<odoo>
+    <record id="action_user_log" model="ir.actions.act_window">
+        <field name="name">Authentication logs</field>
+        <field name="type">ir.actions.act_window</field>
+        <field name="res_model">res.users.log</field>

Update tree → list

luisg123v luisg123v commented on code on Sep 29, 2025 16:39 UTC
Code Review
user_log_view/views/res_users_views.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Denis Mudarisov (IT-Projects LLC)
+     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
+<odoo>
+    <record id="action_user_log" model="ir.actions.act_window">
+        <field name="name">Authentication logs</field>
+        <field name="type">ir.actions.act_window</field>
+        <field name="res_model">res.users.log</field>
+        <field name="views">[[False, 'tree'], [False, 'form']]</field>
+        <field name="domain">[('create_uid', '=', active_id)]</field>
+        <field name="target">current</field>
+        <field name="context">{'search_default_groupby_date': True}</field>
+    </record>
+
+    <record id="res_users_log_view_search" model="ir.ui.view">
+        <field name="name">res.users.log.search</field>
+        <field name="model">res.users.log</field>
+        <field name="arch" type="xml">
+            <search string="Test Search">
+                <field name="create_uid" />
+                <field name="create_date" />
+                <group expand="0" string="Group By">
+                    <filter
+                        string="Date"
+                        name="groupby_date"
+                        context="{'group_by':'create_date:day'}"
+                    />
+                </group>
+            </search>
+        </field>
+    </record>
+
+    <record id="res_users_view_form" model="ir.ui.view">
+        <field name="name">res.users.view.form</field>
+        <field name="model">res.users</field>
+        <field name="inherit_id" ref="base.view_users_form" />
+        <field name="arch" type="xml">
+            <xpath expr="//button[hasclass('oe_stat_button')]" position="after">
+                <button
+                    name="user_log_view.action_user_log"
+                    type="action"
+                    string="Authentication logs"
+                    icon="fa-user-secret"
+                />
+            </xpath>
+        </field>
+    </record>
+
+    <record id="res_users_log_view_tree" model="ir.ui.view">

Same here

luisg123v luisg123v requested changes on Sep 29, 2025 16:42 UTC
Changes Requested Reviewer

Requested changes.

jqbeltran2 jqbeltran2 commented on Oct 07, 2025 23:32 UTC
Contributor

Hi @kobros-tech

Could you please apply the suggested changes? Thanks!

fernandahf fernandahf commented on Oct 09, 2025 15:19 UTC
Contributor

@kobros-tech

Could you apply the technical comments, please?

cc @jqbeltran2

etobella etobella commented on Oct 10, 2025 13:29 UTC
Contributor

@kobros-tech Can you review the comments?

jqbeltran2 jqbeltran2 commented on Oct 13, 2025 18:23 UTC
Contributor

I'm applying the changes

fernandahf fernandahf commented on code on Oct 13, 2025 18:45 UTC
Code Review
user_log_view/views/res_users_views.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Denis Mudarisov (IT-Projects LLC)
+     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
+<odoo>
+    <record id="action_user_log" model="ir.actions.act_window">
+        <field name="name">Authentication logs</field>
+        <field name="type">ir.actions.act_window</field>
+        <field name="res_model">res.users.log</field>

@jqbeltran2

not applied yet

fernandahf fernandahf commented on code on Oct 13, 2025 18:57 UTC
Code Review
user_log_view/views/res_users_views.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Denis Mudarisov (IT-Projects LLC)
+     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
+<odoo>
+    <record id="action_user_log" model="ir.actions.act_window">
+        <field name="name">Authentication logs</field>
+        <field name="type">ir.actions.act_window</field>
+        <field name="res_model">res.users.log</field>

It's solved in the new PR

jqbeltran2 jqbeltran2 commented on Oct 13, 2025 19:12 UTC
Contributor

This PR seems abandoned, I've created #850 to apply missing comments

kobros-tech kobros-tech commented on Oct 24, 2025 22:30 UTC
Author

@jqbeltran2
@etobella
@fernandahf

Hi all, I am so sorry that I couldn't notice the notification the reason is that I subscriped to all repos. of OCA with all activity which made me unable to diiferentiate between the important emails concerning me and other general ones.

now I returned to the default, and it was a wise decision to solve and make the PR merged.

Assignees
kobros-tech kobros-tech
Labels
risk: low confidence: 83.6% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 87.7% (HIGH) · Higher = larger blast radius
87.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 83.6% · Lower = rushed or shallow review
83.6%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.4% · Safe to merge
14.4%