~openerp/openobject-server/web-dashboard

« back to all changes in this revision

Viewing changes to bin/addons/base/res/res_log_view.xml

  • Committer: Fabien Pinckaers
  • Date: 2010-05-19 18:32:10 UTC
  • Revision ID: fp@tinyerp.com-20100519183210-vyo63jvfs22mpxhg
[IMP] logs background activities

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
        <record id="res_log_search" model="ir.ui.view">
 
5
            <field name="name">res.log.search</field>
 
6
            <field name="model">res.log</field>
 
7
            <field name="type">search</field>
 
8
            <field name="arch" type="xml">
 
9
                <search string="Logs">
 
10
                    <filter icon="terp-sale" string="My Logs" domain="[('user_id','=',uid)]" name="my"/>
 
11
                    <separator orientation="vertical"/>
 
12
                    <field name="name"/>
 
13
                    <field name="user_id"/>
 
14
                    <field name="res_model"/>
 
15
                </search>
 
16
            </field>
 
17
        </record>
 
18
        <record id="res_log_tree" model="ir.ui.view">
 
19
            <field name="name">res.log.tree</field>
 
20
            <field name="model">res.log</field>
 
21
            <field name="type">tree</field>
 
22
            <field name="arch" type="xml">
 
23
                <tree string="Logs">
 
24
                    <field name="name"/>
 
25
                    <field name="user_id"/>
 
26
                </tree>
 
27
            </field>
 
28
        </record>
 
29
        <record id="res_log_form" model="ir.ui.view">
 
30
            <field name="name">res.log.form</field>
 
31
            <field name="model">res.log</field>
 
32
            <field name="type">form</field>
 
33
            <field name="arch" type="xml">
 
34
                <form string="Logs">
 
35
                    <group colspan="4" col="6">
 
36
                        <field name="name" colspan="4"/>
 
37
                        <field name="user_id" />
 
38
                        <field name="res_model"/>
 
39
                        <field name="res_id"/>
 
40
                    </group>
 
41
                </form>
 
42
            </field>
 
43
        </record>
 
44
 
 
45
        <record id="res_log_act_window" model="ir.actions.act_window">
 
46
            <field name="name">Logs</field>
 
47
            <field name="res_model">res.log</field>
 
48
            <field name="view_type">form</field>
 
49
            <field name="context">{'search_default_my': 1}</field>
 
50
        </record>
 
51
        <menuitem
 
52
            action="res_log_act_window"
 
53
            id="menu_res_log_act_window"
 
54
            parent="base.next_id_4"/>
 
55
    </data>
 
56
</openerp>