summaryrefslogtreecommitdiff
path: root/fixco_custom/views/token_log.xml
blob: 77e6dd4875ae5ff23e4b6446e042ccc17f178684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="token_log_tree" model="ir.ui.view">
        <field name="name">token.log.tree</field>
        <field name="model">token.log</field>
        <field name="arch" type="xml">
            <tree editable="top" default_order="create_date desc">
                <field name="token"/>
                <field name="expires_at"/>
                <field name="token_from"/>
                <field name="created_at"/>
                <field name="created_by"/>
                <field name="source"/>
                <field name="is_active" widget="boolean_toggle"/>
            </tree>
        </field>
    </record>

    <record id="token_log_action" model="ir.actions.act_window">
        <field name="name">Token Log</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">token.log</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
            action="token_log_action"
            id="token_log"
            parent="base.menu_users"
            name="Token Log"
            sequence="1"
    />
</odoo>