Skip to content

Commit

Permalink
[FIX] pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Mar 19, 2021
1 parent c40b25e commit f132cb7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rest_log/data/ir_config_parameter_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</record>
<record id="config_rest_log_enabled" model="ir.config_parameter">
<field name="key">rest.log.active</field>
<field name="value"></field>
<field name="value" />
</record>
</odoo>
4 changes: 1 addition & 3 deletions rest_log/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@


def pre_init_hook(cr):
"""On first install copy recods from shopfloor_log table if available.
"""
"""On first install copy recods from shopfloor_log table if available."""
cr.execute("SELECT 1 FROM pg_class WHERE relname = 'rest_log'")
if cr.fetchone():
# rest_log was already installed
Expand Down
5 changes: 4 additions & 1 deletion rest_log/security/groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<odoo noupdate="1">
<record id="group_rest_log_manager" model="res.groups">
<field name="name">REST Log Manager</field>
<field name="users" eval="[(4, ref('base.user_root')),(4, ref('base.user_admin'))]" />
<field
name="users"
eval="[(4, ref('base.user_root')),(4, ref('base.user_admin'))]"
/>
</record>
</odoo>
3 changes: 1 addition & 2 deletions rest_log/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@


class TestDBLoggingBase(SavepointRestServiceRegistryCase):
"""Test DB logging for REST calls.
"""
"""Test DB logging for REST calls."""

@classmethod
def setUpClass(cls):
Expand Down
6 changes: 3 additions & 3 deletions rest_log/views/menu.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="menu_rest_api_log" model="ir.ui.menu">
<field name="parent_id" ref="base_rest.menu_rest_api_root"/>
<field name="parent_id" ref="base_rest.menu_rest_api_root" />
<field name="name">Logs</field>
<field name="sequence" eval="80"/>
<field name="action" ref="rest_log.action_rest_log"/>
<field name="sequence" eval="80" />
<field name="action" ref="rest_log.action_rest_log" />
</record>
</odoo>

0 comments on commit f132cb7

Please sign in to comment.