You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
3.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 GRAP -Sylvain LE GAL
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<!-- Model: res.authentication.attempt -->
<record id="view_res_authentication_attempt_tree" model="ir.ui.view">
<field name="model">res.authentication.attempt</field>
<field name="arch" type="xml">
<tree
decoration-warning="result == 'failed'"
decoration-danger="result == 'banned'"
>
<field name="create_date"/>
<field name="remote"/>
<field name="login"/>
<field name="result"/>
</tree>
</field>
</record>
<record id="view_res_authentication_attempt_form" model="ir.ui.view">
<field name="model">res.authentication.attempt</field>
<field name="arch" type="xml">
<form>
<header>
<button
name="action_whitelist_add"
type="object"
string="Add remote to whitelist"
attrs="{'invisible': [('whitelisted', '=', True)]}"
/>
<button
name="action_whitelist_remove"
type="object"
string="Remove remote from whitelist"
attrs="{'invisible': [('whitelisted', '=', False)]}"
/>
</header>
<sheet>
<group>
<field name="create_date"/>
<field name="result"/>
<field name="login"/>
<field name="remote"/>
<field name="remote_metadata"/>
<field name="whitelisted" invisible="1"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_res_authentication_attempt_graph" model="ir.ui.view">
<field name="model">res.authentication.attempt</field>
<field name="arch" type="xml">
<graph>
<field name="create_date"/>
<field name="result"/>
</graph>
</field>
</record>
<record id="view_res_authentication_attempt_search" model="ir.ui.view">
<field name="model">res.authentication.attempt</field>
<field name="arch" type="xml">
<search>
<field name="login"/>
<filter name="filter_no_success" string="Without Success" domain="[('result','!=', 'successful')]"/>
<filter name="filter_banned" string="Banned" domain="[('result','=', 'banned')]"/>
<filter name="filter_failed" string="Failed" domain="[('result','=', 'failed')]"/>
<filter name="filter_successful" string="Successful" domain="[('result','=', 'successful')]"/>
</search>
</field>
</record>
</odoo>