~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to zarafa/email_view.xml

  • Committer: Fabien Pinckaers
  • Date: 2009-02-06 10:25:35 UTC
  • mfrom: (3547.1.3 trunk-extra-addons)
  • Revision ID: fp@tinyerp.com-20090206102535-1eykxxd9d8uwb8cv
Adding Sednacom Zarafa Module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
3
(c) 2008 Sednacom <http://www.sednacom.fr>
 
4
 
 
5
 authors :
 
6
  - Brice < brice@sednacom.fr >
 
7
 
 
8
This program is free software; you can redistribute it and/or modify
 
9
it under the terms of the GNU General Public License as published by
 
10
the Free Software Foundation; either version 2 of the License, or
 
11
(at your option) any later version.
 
12
 
 
13
This program is distributed in the hope that it will be useful,
 
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
GNU General Public License for more details.
 
17
 
 
18
You should have received a copy of the GNU General Public License
 
19
along with this program; if not, write to the Free Software
 
20
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 
 
22
-->
 
23
<terp>
 
24
<data>
 
25
 
 
26
    <record model="ir.ui.view" id="sednacom_email_form">
 
27
        <field name="name">sednacom.email.form</field>
 
28
        <field name="model">sednacom.email</field>
 
29
        <field name="type">form</field>
 
30
        <field name="arch" type="xml">
 
31
            <form string="Email">
 
32
                <field name="exp" colspan="4" select="1" />
 
33
                <field name="to" colspan="4" select="1" />
 
34
                <field name="recipients" colspan="4" select="1" />
 
35
                <field name="name" colspan="4" select="1"/>
 
36
                <field name="datetime" select="2" />
 
37
                <field name="state" select="2" />
 
38
                <field name="crm_case" colspan="4" />
 
39
                <separator label="message" colspan="4" />
 
40
                <field name="body" nolabel="1" colspan="4" widget="html_tag" />
 
41
                <group col="2" colspan="2" >
 
42
                    <button name="sendmail" string="Send" type="object" states="draft" />
 
43
                </group>
 
44
            </form>
 
45
        </field>
 
46
    </record>
 
47
 
 
48
    <record model="ir.ui.view" id="sednacom_email_tree">
 
49
        <field name="name">sednacom.email.tree</field>
 
50
        <field name="model">sednacom.email</field>
 
51
        <field name="type">tree</field>
 
52
        <field name="arch" type="xml">
 
53
            <tree string="Emails">
 
54
                <field name="name"  />
 
55
                <field name="to" />
 
56
                <field name="exp" />
 
57
                <field name="datetime" />
 
58
                <field name="state" />
 
59
            </tree>
 
60
        </field>
 
61
    </record>
 
62
 
 
63
    <record model="ir.actions.act_window" id="action_sednacom_email_tree">
 
64
        <field name="name">Emails</field>
 
65
        <field name="type">ir.actions.act_window</field>
 
66
        <field name="res_model">sednacom.email</field>
 
67
        <field name="view_type">form</field>
 
68
        <field name="view_mode">tree,form</field>
 
69
        <field name="view_id" ref="sednacom_email_tree"/>
 
70
    </record>
 
71
 
 
72
    <menuitem name="Tools/Emails" action="action_sednacom_email_tree" id="menu_sednacom_email" />
 
73
 
 
74
 
 
75
</data>
 
76
</terp>
 
77