blob: 1a921732f666c2e4c45bb5365853b1cd7a1bb674 (
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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="lunch_location_view_search" model="ir.ui.view">
<field name="name">lunch.location.view.search</field>
<field name="model">lunch.location</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="address"/>
</search>
</field>
</record>
<record id="lunch_location_form_view" model="ir.ui.view">
<field name="name">lunch.location.view.form</field>
<field name="model">lunch.location</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name"/>
<field name="address"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="lunch_location_tree_view" model="ir.ui.view">
<field name="name">lunch.location.view.form</field>
<field name="model">lunch.location</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="name"/>
<field name="address"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="lunch_location_kanban_view" model="ir.ui.view">
<field name="name">lunch.location.view.kanban</field>
<field name="model">lunch.location</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_card oe_kanban_global_click">
<div class="oe_kanban_content">
<div class="o_kanban_record_top">
<div class="o_kanban_record_headings">
<strong class="o_kanban_record_title"><field name="name"/></strong>
</div>
</div>
<div class="o_kanban_record_body">
<field name="company_id" groups="base.group_multi_company"/><br/>
<field name="address"/>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="lunch_location_action" model="ir.actions.act_window">
<field name="name">Lunch Locations</field>
<field name="res_model">lunch.location</field>
<field name="view_mode">tree,form,kanban</field>
<field name="search_view_id" ref="lunch_location_view_search"/>
<field name="help" type="html">
<!-- TODO: better help message -->
<p class="o_view_nocontent_smiling_face">
To see some locations, create one using the create button
</p>
</field>
</record>
</odoo>
|