-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbase_ext.xml
More file actions
228 lines (194 loc) · 10.3 KB
/
base_ext.xml
File metadata and controls
228 lines (194 loc) · 10.3 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1: -->
<templates id="template" xml:space="preserve">
<!--<t t-extend="Login">-->
<!--<t t-jquery="input[name='name']" t-operation="append">-->
<!--<t t-att-value="widget.selected_login || ''" />-->
<!--</t>-->
<!--<t t-jquery="input[name='name']" t-operation="append">-->
<!--<t t-att-value="widget.selected_password || ''" />-->
<!--</t>-->
<!--</t>-->
<!-- tested: ok -->
<t t-extend="One2Many.viewmanager">
<t t-jquery="div.oe_view_manager">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().view and widget.getParent().view.fields_view.model');
this.attr('t-att-data-bt-testing-name', 'widget and widget.getParent and widget.getParent().name');
this.attr('t-att-data-bt-testing-submodel_name', 'widget.model');
</t>
</t>
<t t-extend="KanbanView.buttons">
<t t-jquery="button.oe_kanban_button_new">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().parent and widget.getParent().getParent().view and widget.getParent().getParent().view.fields_view.model');
this.attr('t-att-data-bt-testing-name', 'widget and widget.getParent and widget.getParent().parent and widget.getParent().getParent().view and widget.getParent().getParent().name');
this.attr('data-bt-testing-button', 'oe_kanban_button_new');
this.attr('t-att-data-bt-testing-submodel_name', 'widget.model');
</t>
</t>
<!-- tested: ok -->
<t t-extend="ListView.buttons">
<t t-jquery="button.oe_list_add">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_list_add');
</t>
<t t-jquery="button.oe_list_save">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_list_save');
</t>
</t>
<!-- tested: ok -->
<t t-extend="FormView.buttons">
<t t-jquery="button.oe_form_button_edit">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_edit');
</t>
<t t-jquery="button.oe_form_button_create">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_create');
</t>
<t t-jquery="button.oe_form_button_save">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_save');
</t>
<t t-jquery="a.oe_form_button_cancel">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_cancel');
</t>
</t>
<!-- tested: ok -->
<t t-extend="FormRenderingNotebook">
<t t-jquery="ul li a">
this.attr('t-att-data-bt-testing-original-string', 'page.string');
</t>
</t>
<!-- tested: ok -->
<t t-extend="FieldChar">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="input">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<!-- tested: ok -->
<t t-extend="FieldEmail">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="input">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<!-- tested: ok -->
<t t-extend="FieldText">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="textarea">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<t t-extend="web.datepicker">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().getParent and widget.getParent().getParent().dataset and widget.getParent().getParent().dataset.model"/>
</t>
<t t-jquery="input.oe_datepicker_master">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<t t-extend="FieldSelectionSelect">
<t t-jquery="select">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
</t>
<t t-jquery="select option">
this.attr('t-att-data-type', 'widget.field and widget.field.type');
<!-- When the field is selection take the tecnical value to be language independend.
If it is a many2one field, take the name of the field instead of the id. It's better to be database independend than language independend
-->
this.attr('t-att-data-bt-testing-value', "widget.field.type === 'many2one' ? option[1] : option[0]");
</t>
</t>
<t t-extend="FieldMany2One">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="span.oe_form_field_many2one input[type='text']">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<t t-extend="FieldMany2ManyTags">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="div.oe_tags">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<t t-extend="FieldBoolean">
<t t-jquery="span.oe_form_field_boolean input[type='checkbox']">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
</t>
</t>
<t t-extend="FieldBinaryFile">
<t t-jquery="t:first" t-operation="before">
<t t-set="bt_testing_model_name" t-value="widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model"/>
</t>
<t t-jquery="input.field_binary">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'bt_testing_model_name');
</t>
</t>
<t t-extend="WidgetButton">
<t t-jquery="button">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('t-att-data-bt-testing-name', 'widget.node.attrs.name');
</t>
</t>
<t t-extend="SelectCreatePopup.search.buttons">
<t t-jquery="button.oe_selectcreatepopup-search-select">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_select');
</t>
<t t-jquery="button.oe_selectcreatepopup-search-create">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_create');
</t>
<t t-jquery="a.oe_form_button_cancel">
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().dataset and widget.getParent().dataset.model');
this.attr('data-bt-testing-name', 'oe_form_button_cancel');
</t>
</t>
<t t-extend="AbstractFormPopup.buttons">
<t t-jquery="button.oe_abstractformpopup-form-save">
this.attr('data-bt-testing-name', 'oe_form_button_save');
</t>
<t t-jquery="button.oe_abstractformpopup-form-save">
this.attr('data-bt-testing-name', 'oe_form_button_save_and_close');
</t>
<t t-jquery="button.oe_abstractformpopup-form-save-new">
this.attr('data-bt-testing-name', 'oe_form_button_save_new');
</t>
<t t-jquery="a.oe_form_button_cancel">
this.attr('data-bt-testing-name', 'oe_form_button_cancel');
</t>
</t>
<table t-extend="ListView.row">
<t t-jquery=":parent">
this.attr('t-att-data-bt-testing-model_name', 'view.dataset and view.dataset.model');
</t>
</table>
<t t-extend="Sidebar">
<t t-jquery="a.oe_sidebar_action_a">
this.attr('t-att-data-bt-type', 'item.action and item.action.type');
this.attr('t-att-data-bt-id', 'item.action and item.action.id');
</t>
</t>
</templates>