category.xml
2.76 KB
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
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="idg_letter_category_tree" model="ir.ui.view">
<field name="name">idg.letter.category.tree</field>
<field name="model">idg.letter.category</field>
<field name="arch" type="xml">
<tree string="Category" sample="1" create="1" delete="1" multi_edit="0">
<field name="name" string="Nama"/>
</tree>
</field>
</record>
<record id="idg_letter_category_form" model="ir.ui.view">
<field name="name">idg.letter.category.form</field>
<field name="model">idg.letter.category</field>
<field name="arch" type="xml">
<form string="Category" sample="1">
<sheet>
<h1>
<field name="name" string="Name"/>
</h1>
<notebook>
<page string="Default Outgoing Message Approval" id="idg_letter_category_approver_page">
<field name="approver_ids"
mode="tree,kanban">
<tree editable="bottom" string="Outgoing Message">
<control>
<create name="add_line_control" string="Add a line"/>
</control>
<field name="user_id"/>
<field name="required"/>
<!-- <field name="name"/>-->
<!-- <field name="phone"/>-->
<!-- <field name="email"/>-->
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="idg_letter_category_action" model="ir.actions.act_window">
<field name="name">Category</field>
<field name="res_model">idg.letter.category</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_id" ref="idg_letter_category_tree"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Category
</p>
</field>
</record>
<menuitem id="idg_letter_category_menu"
name="Letter Category"
parent="eoffice_config_menu"
action="idg_letter_category_action"
sequence="4"/>
</data>
</odoo>