-
-
Notifications
You must be signed in to change notification settings - Fork 311
/
Copy pathedi_exchange_template_output_views.xml
150 lines (150 loc) · 6.28 KB
/
edi_exchange_template_output_views.xml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="edi_exchange_template_output_view_tree" model="ir.ui.view">
<field name="model">edi.exchange.template.output</field>
<field name="arch" type="xml">
<tree>
<field name="backend_type_id" />
<field name="backend_id" />
<field name="name" />
<field name="code" />
<field name="output_type" />
</tree>
</field>
</record>
<record id="edi_exchange_template_output_view_form" model="ir.ui.view">
<field name="model">edi.exchange.template.output</field>
<field name="arch" type="xml">
<form string="EDI Exchange Template Output">
<sheet>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
<field name="name" />
</h1>
</div>
<group name="wrapper">
<group name="main">
<field name="backend_type_id" />
<field name="backend_id" />
<field name="type_id" />
<field name="code" />
<field name="output_type" />
<field name="generator" />
<field
name="prettify"
attrs="{'invisible': [('generator', '!=', 'qweb')]}"
/>
<field
name="template_id"
attrs="{'required': [('generator', '=', 'qweb')], 'invisible': [('generator', '!=', 'qweb')]}"
/>
<field
name="report_id"
attrs="{'required': [('generator', '=', 'report')], 'invisible': [('generator', '!=', 'report')]}"
/>
</group>
</group>
<group
name="template_edit"
col="4"
attrs="{'invisible': [('generator', '!=', 'qweb')]}"
>
<separator string="Template" colspan="4" />
<field name="template_key" colspan="4" />
<field
name="template_arch"
widget="ace"
nolabel="1"
colspan="4"
/>
</group>
<group name="code_snippet_edit" col="4">
<separator string="Code snippet" colspan="4" />
<field
name="code_snippet"
widget="ace"
nolabel="1"
colspan="4"
/>
<separator string="Code snippet docs" colspan="4" />
<div class="alert alert-info" role="alert" colspan="4">
<field name="code_snippet_docs" nolabel="1" colspan="4" />
</div>
</group>
</sheet>
</form>
</field>
</record>
<record id="edi_exchange_template_output_view_search" model="ir.ui.view">
<field name="model">edi.exchange.template.output</field>
<field name="arch" type="xml">
<search string="EDI Exchange Template Output">
<field name="name" />
<field name="type_id" />
<field name="backend_id" />
<field name="template_key" />
<group expand="0" string="Group By">
<filter
name="group_by_backend_type_id"
string="Backend type"
context="{'group_by': 'backend_type_id'}"
/>
<filter
name="group_by_backend_id"
string="Backend"
context="{'group_by': 'backend_id'}"
/>
<filter
name="group_by_type_id"
string="Type"
context="{'group_by': 'type_id'}"
/>
</group>
</search>
</field>
</record>
<record
model="ir.actions.act_window"
id="act_open_edi_exchange_template_output_view"
>
<field name="name">EDI Exchange Template Output</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.exchange.template.output</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="edi_exchange_template_output_view_search" />
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
<record
model="ir.actions.act_window.view"
id="act_open_edi_exchange_template_output_view_form"
>
<field name="act_window_id" ref="act_open_edi_exchange_template_output_view" />
<field name="sequence" eval="20" />
<field name="view_mode">form</field>
<field name="view_id" ref="edi_exchange_template_output_view_form" />
</record>
<record
model="ir.actions.act_window.view"
id="act_open_edi_exchange_template_output_view_tree"
>
<field name="act_window_id" ref="act_open_edi_exchange_template_output_view" />
<field name="sequence" eval="10" />
<field name="view_mode">tree</field>
<field name="view_id" ref="edi_exchange_template_output_view_tree" />
</record>
<menuitem
id="menu_edi_exchange_template_root"
parent="edi_oca.menu_edi_config"
sequence="200"
action="act_open_edi_exchange_template_output_view"
name="EDI Exchange Templates"
/>
<menuitem
id="menu_edi_exchange_template_output"
parent="menu_edi_exchange_template_root"
sequence="10"
action="act_open_edi_exchange_template_output_view"
/>
</odoo>