Skip to content

Commit

Permalink
[IMP] : black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisho99 committed Feb 28, 2024
1 parent 4e30114 commit 7550c25
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 deletions.
1 change: 1 addition & 0 deletions setup/user_log_view/odoo/addons/user_log_view
6 changes: 6 additions & 0 deletions setup/user_log_view/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
8 changes: 2 additions & 6 deletions user_log_view/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": [
"base",
],
"data": [
"views/res_users_views.xml",
],
"depends": ["base"],
"data": ["views/res_users_views.xml"],
}
30 changes: 19 additions & 11 deletions user_log_view/views/res_users_views.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?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">
Expand All @@ -19,10 +18,14 @@
<field name="model">res.users.log</field>
<field name="arch" type="xml">
<search string="Test Search">
<field name="create_uid"/>
<field name="create_date"/>
<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'}"/>
<filter
string="Date"
name="groupby_date"
context="{'group_by':'create_date:day'}"
/>
</group>
</search>
</field>
Expand All @@ -31,10 +34,15 @@
<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="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" />
<button
name="user_log_view.action_user_log"
type="action"
string="Authentication logs"
icon="fa-user-secret"
/>
</xpath>
</field>
</record>
Expand All @@ -44,8 +52,8 @@
<field name="model">res.users.log</field>
<field name="arch" type="xml">
<tree create="false" default_order="create_date desc">
<field name="create_uid"/>
<field name="create_date"/>
<field name="create_uid" />
<field name="create_date" />
</tree>
</field>
</record>
Expand All @@ -57,8 +65,8 @@
<form create="false">
<sheet>
<group>
<field name="create_uid"/>
<field name="create_date"/>
<field name="create_uid" />
<field name="create_date" />
</group>
</sheet>
</form>
Expand Down

0 comments on commit 7550c25

Please sign in to comment.