~openerp/openobject-server/web-dashboard

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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="res_log_search" model="ir.ui.view">
            <field name="name">res.log.search</field>
            <field name="model">res.log</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Logs">
                    <filter icon="terp-sale" string="My Logs" domain="[('user_id','=',uid)]" name="my"/>
                    <separator orientation="vertical"/>
                    <field name="name"/>
                    <field name="user_id"/>
                    <field name="res_model"/>
                </search>
            </field>
        </record>
        <record id="res_log_tree" model="ir.ui.view">
            <field name="name">res.log.tree</field>
            <field name="model">res.log</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Logs">
                    <field name="name"/>
                    <field name="user_id"/>
                </tree>
            </field>
        </record>
        <record id="res_log_form" model="ir.ui.view">
            <field name="name">res.log.form</field>
            <field name="model">res.log</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Logs">
                    <group colspan="4" col="6">
                        <field name="name" colspan="4"/>
                        <field name="user_id" />
                        <field name="res_model"/>
                        <field name="res_id"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="res_log_act_window" model="ir.actions.act_window">
            <field name="name">Logs</field>
            <field name="res_model">res.log</field>
            <field name="view_type">form</field>
            <field name="context">{'search_default_my': 1}</field>
        </record>
        <menuitem
            action="res_log_act_window"
            id="menu_res_log_act_window"
            parent="base.next_id_4"/>
    </data>
</openerp>