[IMP] web: order fields in export wizard
[odoo/odoo.git] / addons / web / static / src / xml / base.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vim:fdl=1:
3 -->
4 <templates id="template" xml:space="preserve">
5 <t t-name="EmptyComponent">
6     <div></div>
7 </t>
8 <t t-name="Loading">
9     <div class="oe_loading">
10         Loading...
11     </div>
12 </t>
13 <t t-name="Notification">
14     <div class="oe_notification" t-translation="off">
15         <div id="oe_notification_default">
16             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
17             <h1>#{title}</h1>
18             <p>#{text}</p>
19         </div>
20         <div id="oe_notification_alert" class="ui-state-error">
21             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
22             <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
23             <h1>#{title}</h1>
24             <p>#{text}</p>
25         </div>
26     </div>
27 </t>
28 <t t-name="Tipsy.alert">
29     <a class="oe_tooltip_close oe_e">[</a>
30     <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert ui-state-error"></span>
31     <div class="oe_tooltip_message">
32         <t t-esc="message"/>
33     </div>
34 </t>
35 <t t-name="Dialog">
36     <div class="modal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true">
37         <div class="modal-dialog modal-lg">
38             <div class="modal-content">
39                 <div class="modal-header">
40                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
41                     <h3 class="modal-title"><t t-raw="title"/></h3>
42                 </div>
43                 <div class="modal-body">
44                 </div>
45             </div>
46         </div>
47     </div>
48 </t>
49 <t t-name="CrashManager.warning">
50     <table cellspacing="0" cellpadding="0" border="0" class="oe_dialog_warning">
51     <tr>
52         <td class="oe_dialog_icon"><img t-att-src='_s + "/web/static/src/img/warning.png"'/></td>
53         <td>
54             <p>
55                 <t t-js="d">
56                     var message = d.message ? d.message : d.error.data.message;
57                     d.html_error = context.engine.tools.html_escape(message)
58                         .replace(/\n/g, '<br/>');
59                 </t>
60                 <t t-raw="html_error"/>
61             </p>
62         </td>
63     </tr>
64     </table>
65 </t>
66 <t t-name="CrashManager.error">
67     <div class="oe_error_detail">
68         <pre><t t-esc="error.message"/></pre>
69         <hr/>
70         <pre><t t-esc="error.data.debug"/></pre>
71     </div>
72 </t>
73
74 <t t-name="DatabaseManager">
75     <div class="oe_view_manager_view_form">
76         <div class="oe_form">
77             <form id="db_create" name="create_db_form" style="display: block;">
78                 <div class="oe_view_manager oe_view_manager_current">
79                     <div class="oe_view_manager_header" style="padding: 8px;">
80                         <div class="oe_header_row">
81                             <h2 class="oe_view_title">
82                                 <span class="oe_view_title_text oe_breadcrumb_title">Create a New Database</span>
83                             </h2>
84                         </div>
85                     </div>
86                 </div>
87                 <p class="oe_grey" style="margin: 10px">
88                     Fill in this form to create an Odoo database. You can
89                     create databases for different companies or for different
90                     goals (testing, production). Once the database is created,
91                     you will be able to install your first application.
92                 </p>
93                 <p class="oe_grey" style="margin: 10px">
94                     By default, the master password is 'admin'. This password
95                     is required to created, delete dump or restore databases.
96                 </p>
97                 <table class="db_option_table" style="margin: 10px">
98                     <tr>
99                         <td><label for="super_admin_pwd">Master password:</label></td>
100                         <td>
101                             <input type="password" name="super_admin_pwd" class="required" value="admin"/>
102                         </td>
103                     </tr>
104                     <tr>
105                         <td><label for="db_name">Select a database name:</label></td>
106                         <td>
107                             <input type="text" name="db_name" class="required" matches="^[a-zA-Z0-9][a-zA-Z0-9_-]+$" autofocus="true" placeholder="e.g. mycompany"/> 
108                         </td>
109                     </tr>
110                     <tr>
111                         <td><label for="demo_data">Load demonstration data:</label></td>
112                         <td class="oe_form_group_cell">
113                             <span class="oe_form_field oe_form_field_boolean oe_grey" >
114                                 <input type="checkbox" name="demo_data" />
115                                 Check this box to evaluate Odoo.
116                             </span>
117                         </td>
118                     </tr>
119                     <tr>
120                         <td><label for="db_lang">Default language:</label></td>
121                         <td class="oe_form_field oe_form_field_selection">
122                             <select name="db_lang" t-if="widget.lang_list" class="oe_inline">
123                                 <t t-foreach="widget.lang_list" t-as="lang">
124                                     <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
125                                         <t t-esc="lang[1]" />
126                                     </option>
127                                 </t>
128                             </select>
129                         </td>
130                     </tr>
131                     <tr>
132                         <td><label for="create_admin_pwd">Choose a password:</label></td>
133                         <td><input type="password" name="create_admin_pwd" class="required" /></td>
134                     </tr>
135                     <tr>
136                         <td><label for="create_confirm_pwd">Confirm password:</label></td>
137                         <td><input type="password" name="create_confirm_pwd" class="required" equalTo="input[name=create_admin_pwd]"/></td>
138                     </tr>
139                     <tr>
140                         <td></td>
141                         <td><button type="submit" class="oe_button oe_highlight db_create">Create Database</button></td>
142                     </tr>
143                 </table>
144             </form>
145             <form id="db_duplicate" name="duplicate_db_form" style="display: none;">
146                 <div class="oe_view_manager oe_view_manager_current">
147                     <div class="oe_view_manager_header" style="padding: 8px;">
148                         <div class="oe_header_row">
149                             <h2 class="oe_view_title">
150                                 <span class="oe_view_title_text oe_breadcrumb_title">Duplicate Database</span>
151                             </h2>
152                             <button type="submit" class="oe_button oe_highlight db_duplicate">Duplicate</button>
153                         </div>
154                     </div>
155                 </div>
156                 <table align="center" class="db_option_table">
157                     <tr>
158                         <td><label for="super_admin_pwd">Master password:</label></td>
159                         <td><input type="password" name="super_admin_pwd" class="required" value="admin" /></td>
160                     </tr>
161                     <tr>
162                         <td><label for="db_original_name">Original database name:</label></td>
163                         <td><input type="text" name="db_original_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" autofocus="true"/></td>
164                     </tr>
165                     <tr>
166                         <td><label for="db_name">New database name:</label></td>
167                         <td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" /></td>
168                     </tr>
169                 </table>
170             </form>
171             <form id="db_drop" name="drop_db_form" style="display: none; ">
172                 <div class="oe_view_manager oe_view_manager_current">
173                     <div class="oe_view_manager_header" style="padding: 8px;">
174                         <div class="oe_header_row">
175                             <h2 class="oe_view_title">
176                                 <span class="oe_view_title_text oe_breadcrumb_title">Drop Database</span>
177                             </h2>
178                             <button type="submit" class="oe_button oe_highlight db_drop">Drop</button>
179                         </div>
180                     </div>
181                 </div>
182                 <table align="center" class="db_option_table">
183                     <tr>
184                         <td><label for="drop_db">Database:</label></td>
185                         <td class="oe_form_field oe_form_field_selection">
186                             <select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
187                                 <t t-foreach="widget.db_list" t-as="db">
188                                     <option t-att-value="db">
189                                         <t t-esc="db" />
190                                     </option>
191                                 </t>
192                             </select>
193                             <input t-if="!widget.db_list" name="drop_db" class="required" type="text" autofocus="autofocus"/>
194                         </td>
195                     </tr>
196                     <tr>
197                         <td><label for="drop_password">Master Password:</label></td>
198                         <td><input type="password" name="drop_pwd" class="required" /></td>
199                     </tr>
200                 </table>
201             </form>
202             <form id="db_backup" name="backup_db_form" target="backup-target" action="/web/database/backup" style="display: none;">
203                 <div class="oe_view_manager oe_view_manager_current">
204                     <div class="oe_view_manager_header" style="padding: 8px;">
205                         <div class="oe_header_row">
206                             <h2 class="oe_view_title">
207                                 <span class="oe_view_title_text oe_breadcrumb_title">Backup Database</span>
208                             </h2>
209                             <button type="submit" class="oe_button oe_highlight db_backup">Backup</button>
210                         </div>
211                     </div>
212                 </div>
213                 <input type="hidden" name="token" />
214                 <table align="center" class="db_option_table">
215                     <tr>
216                         <td><label for="backup_db">Database:</label></td>
217                         <td class="oe_form_field oe_form_field_selection ">
218                             <select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
219                                 <t t-foreach="widget.db_list" t-as="db">
220                                     <option t-att-value="db">
221                                         <t t-esc="db" />
222                                     </option>
223                                 </t>
224                             </select>
225                             <input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
226                         </td>
227                     </tr>
228                     <tr>
229                         <td><label for="backup_pwd">Master Password:</label></td>
230                         <td><input type="password" name="backup_pwd" class="required" /></td>
231                     </tr>
232                 </table>
233             </form>
234             <form id="db_restore" name="restore_db_form" style="display: none; ">
235                 <div class="oe_view_manager oe_view_manager_current">
236                     <div class="oe_view_manager_header" style="padding: 8px;">
237                         <div class="oe_header_row">
238                             <h2 class="oe_view_title">
239                                 <span class="oe_view_title_text oe_breadcrumb_title">Restore Database</span>
240                             </h2>
241                             <button type="submit" class="oe_button oe_highlight db_restore">Restore</button>
242                         </div>
243                     </div>
244                 </div>
245                 <table align="center" class="db_option_table">
246                     <tr>
247                         <td><label for="restore_pwd">Master Password:</label></td>
248                         <td><input type="password" name="restore_pwd" class="required" autofocus="autofocus"/></td>
249                     </tr>
250                     <tr>
251                         <td><label for="restore_db">File:</label></td>
252                         <td><input type="file" name="db_file" class="required"/></td>
253                     </tr>
254                     <tr>
255                         <td><label for="new_db">New database name:</label></td>
256                         <td><input type="text" name="new_db" class="required"/></td>
257                     </tr>
258                     <tr>
259                         <td><label for="mode">Mode:</label></td>
260                         <td><select name="mode" class="required">
261                             <option value="restore">Backup Restore</option>
262                             <option value="copy">Copy of an existing database</option>
263                         </select></td>
264                     </tr>
265                 </table>
266             </form>
267             <form id="db_change_password" name="change_pwd_form" style="display: none;">
268                 <div class="oe_view_manager oe_view_manager_current">
269                     <div class="oe_view_manager_header" style="padding: 8px;">
270                         <div class="oe_header_row">
271                             <h2 class="oe_view_title">
272                                 <span class="oe_view_title_text oe_breadcrumb_title">Change Master Password</span>
273                             </h2>
274                             <button type="submit" class="oe_button oe_highlight db-change-password">Change Password</button>
275                         </div>
276                     </div>
277                 </div>
278                 <table align="center" class="db_option_table">
279                     <tr>
280                         <td><label for="old_pwd">Master password:</label></td>
281                         <td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
282                     </tr>
283                     <tr>
284                         <td><label for="new_pwd">New master password:</label></td>
285                         <td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
286                     </tr>
287                     <tr>
288                         <td><label for="confirm_pwd">Confirm new master password:</label></td>
289                         <td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
290                     </tr>
291                 </table>
292             </form>
293         </div>
294     </div>
295 </t>
296 <t t-name="DatabaseManager.user_menu">
297     <li>
298          <a id="back-to-login" href="#">Back to Login</a>
299     </li>
300 </t>
301 <t t-name="DatabaseManager.menu">
302     <div class="oe_secondary_menu_section">Database Management</div>
303     <ul class="oe_secondary_submenu nav nav-pills nav-stacked">
304         <li><a href="#db_create">Create</a></li>
305         <li><a href="#db_duplicate">Duplicate</a></li>
306         <li><a href="#db_drop">Drop</a></li>
307         <li><a href="#db_backup">Backup</a></li>
308         <li><a href="#db_restore">Restore</a></li>
309         <li><a href="#db_change_password">Password</a></li>
310     </ul>
311 </t>
312
313 <t t-name="ChangePassword">
314     <form name="change_password_form" method="POST">
315       <div class="oe_form">
316         <table align="center">
317             <tr>
318                 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="old_pwd" class="oe_form_label">Old Password:</label></td>
319                 <td class="oe_form_group_cell"><input type="password" name="old_pwd"
320                            minlength="1" autofocus="autofocus"/></td>
321             </tr>
322             <tr>
323             <td class="oe_form_group_cell oe_form_group_cell_label"><label for="new_password" class="oe_form_label">New Password:</label></td>
324             <td class="oe_form_group_cell"><input type="password" name="new_password"
325                        minlength="1"/></td>
326             </tr>
327             <tr>
328                 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="confirm_pwd" class="oe_form_label">Confirm New Password:</label></td>
329                 <td class="oe_form_group_cell"><input type="password" name="confirm_pwd"
330                              minlength="1"/></td>
331             </tr>
332             <tr>
333                 <td colspan="2" align="right">
334                     <button class='oe_button oe_form_button'>Change Password</button>
335                     <span class="oe_fade oe_form_button"> or </span>
336                     <button type="button" class="oe_button oe_form_button_cancel oe_form_button oe_link" href="javascript:void(0)"><span>Cancel</span></button>
337                 </td>
338             </tr>
339         </table>
340       </div>
341     </form>
342 </t>
343
344 <t t-name="Menu.needaction_counter">
345     <div id="menu_counter" class="badge pull-right">
346         <t t-if="widget.needaction_counter &gt; 99"> 99+ </t>
347         <t t-if="widget.needaction_counter &lt;= 99"> <t t-esc="widget.needaction_counter"/> </t>
348     </div>
349 </t>
350
351 <t t-name="UserMenu">
352         <li class="dropdown">
353             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
354                 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
355                 <span class="oe_topbar_name"/> <b class="caret"></b>
356             </a>
357             <ul class="dropdown-menu">
358                 <li><a href="#" data-menu="settings">Preferences</a></li>
359                 <li><a href="#" data-menu="account">My Odoo.com account</a></li>
360                 <li><a href="#" data-menu="about">About Odoo</a></li>
361                 <li><a href="#" data-menu="help">Help</a></li>
362                 <li><a href="#" data-menu="logout">Log out</a></li>
363             </ul>
364         </li>
365 </t>
366 <t t-name="UserMenu.about">
367
368     <div class="oe_about">
369       <a class="oe_activate_debug_mode oe_right" href="?debug" style="background-color: white; padding:2px 6px; border-radius: 10px;">Activate the developer mode</a>
370       <img class="oe_logo" src="/web/static/src/img/logo2.png"/>
371       <h3>Version <t t-esc="version_info.server_version"/></h3>
372
373       <div class="oe_bottom">
374         <p>Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
375             Odoo is a trademark of the <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">OpenERP SA Company</a>.</p>
376         <p>Licenced under the terms of <a target="_blank" href="http://www.gnu.org/licenses/agpl.html" style="text-decoration: underline;">GNU Affero General Public License</a></p>
377         <p>For more information visit <a target="_blank" href="https://www.odoo.com" style="text-decoration: underline;">Odoo.com</a></p>
378       </div>
379     </div>
380
381 </t>
382
383 <t t-name="WebClient.timezone_notification">
384     <div class="oe_webclient_timezone_notification">
385         <p>Your user's preference timezone does not match your browser timezone:</p>
386
387         <dl>
388             <dt>User's timezone</dt>
389             <dd><t t-esc="user_timezone"/> (<t t-esc="user_offset"/>)</dd>
390             <dt>Browser's timezone</dt>
391             <dd><t t-esc="browser_offset"/></dd>
392         </dl>
393
394         <p><a href="#">Click here to change your user's timezone.</a></p>
395     </div>
396 </t>
397 <t t-name="WebClient.timezone_systray">
398     <li class="oe_topbar_item oe_timezone_systray" title="Timezone mismatch">
399         <a href="#"><i class="fa fa-exclamation-triangle" style="color:red;"></i></a>
400     </li>
401 </t>
402
403 <t t-name="EmbedClient">
404     <div class="openerp">
405         <div class="oe_application"></div>
406     </div>
407 </t>
408
409 <t t-name="ViewManager">
410     <div class="oe_view_manager">
411         <table class="oe_view_manager_header">
412             <col width="20%"/>
413             <col width="35%"/>
414             <col width="15%"/>
415             <col width="30%"/>
416             <tr class="oe_header_row oe_header_row_top">
417                 <td colspan="2">
418                         <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
419                             <span class="oe_view_title_text oe_breadcrumb_title"/>
420                         </h2>
421                 </td>
422                 <td colspan="2">
423                         <div class="oe_view_manager_view_search"/>
424                 </td>
425             </tr>
426             <tr class="oe_header_row">
427                 <td>
428                         <div class="oe_view_manager_buttons"/>
429                 </td>
430                 <td colspan="2">
431                         <div class="oe_view_manager_sidebar"/>
432                 </td>
433                 <td>
434                     <ul class="oe_view_manager_switch oe_button_group oe_right">
435                         <t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
436                           <li class="oe_e">
437                             <a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type"
438                                t-att-title="view.button_label"/>
439                           </li>
440                         </t>
441                     </ul>
442                     <div class="oe_view_manager_pager oe_right"/>
443                 </td>
444             </tr>
445         </table>
446
447     <div class="oe_view_manager_wrapper">
448         <div>
449             <div class="oe_view_manager_body">
450                 <div class="oe_searchview_drawer_container"/>
451                     <t t-foreach="widget.views_src" t-as="view">
452                         <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
453                     </t>
454                 </div>
455             </div>
456         </div>
457     </div>
458 </t>
459
460 <t t-name="ViewManagerAction" t-extend="ViewManager">
461     <t t-jquery="h2.oe_view_title" t-operation="before">
462         <select t-if="widget.session.debug" class="oe_debug_view"/>
463     </t>
464 </t>
465 <t t-name="ViewManagerDebug">
466     <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
467     <t t-if="view_manager.active_view === 'form'">
468         <option value="get_metadata">View Metadata</option>
469         <option value="toggle_layout_outline">Toggle Form Layout Outline</option>
470         <option value="set_defaults">Set Defaults</option>
471     </t>
472     <option value="tests">JS Tests</option>
473     <option value="fields">View Fields</option>
474     <option value="fvg">Fields View Get</option>
475     <option value="manage_filters">Manage Filters</option>
476     <t t-if="view_manager.session.uid === 1">
477         <option value="translate">Technical translation</option>
478         <option value="manage_views">Manage Views</option>
479         <option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
480         <option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
481         <option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
482         <option value="edit_workflow">Edit Workflow</option>
483         <option value="print_workflow">Print Workflow</option>
484     </t>
485 </t>
486 <t t-name="ViewManagerDebugViewLog">
487     <div class="oe_debug_view_log">
488         <table class="table table-condensed table-striped">
489             <tr>
490                 <th>ID:</th>
491                 <td><t t-esc="perm.id"/></td>
492             </tr>
493             <tr>
494                 <th>XML ID:</th>
495                 <td><t t-esc="perm.xmlid or '/'"/></td>
496             </tr>
497             <tr>
498                 <th>Creation User:</th>
499                 <td><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></td>
500             </tr>
501             <tr>
502                 <th>Creation Date:</th>
503                 <td><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></td>
504             </tr>
505             <tr>
506                 <th>Latest Modification by:</th>
507                 <td><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></td>
508             </tr>
509             <tr>
510                 <th>Latest Modification Date:</th>
511                 <td><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></td>
512             </tr>
513         </table>
514     </div>
515 </t>
516 <t t-name="ViewPager">
517     <div class="oe_pager_value">
518         <t t-raw="__content__"/>
519     </div>
520     <ul class="oe_pager_group">
521         <!--
522         <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
523             <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
524         </button>
525         -->
526         <li>
527             <a class="oe_i" type="button" data-pager-action="previous">(</a>
528         </li>
529         <li>
530             <a class="oe_i" type="button" data-pager-action="next">)</a>
531         </li>
532         <!--
533         <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
534             <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
535         </button>
536         -->
537     </ul>
538 </t>
539
540 <t t-name="Sidebar">
541     <div class="oe_sidebar">
542         <t t-foreach="widget.sections" t-as="section">
543             <div class="oe_form_dropdown_section">
544                 <button class="oe_dropdown_toggle oe_dropdown_arrow" t-if="section.name != 'buttons'">
545                     <t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
546                     <t t-esc="section.label"/>
547                 </button>
548                 <t t-if="section.name == 'buttons'" t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
549                     <button t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url"
550                         target="_blank" class="oe_sidebar_button oe_highlight">
551                         <t t-raw="item.label"/>
552                     </button>
553                 </t>
554                 <ul class="oe_dropdown_menu">
555                     <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
556                         <t t-if="section.name == 'files'">
557                             <t t-set="item.title">
558                                 <b>Attachment : </b><br/>
559                                 <t t-raw="item.name"/>
560                             </t>
561                             <t t-if="item.create_uid and item.create_uid[0]" t-set="item.title">
562                                 <t t-raw="item.title"/><br/>
563                                 <b>Created by : </b><br/>
564                                 <t t-raw="item.create_uid[1] + ' ' + item.create_date"/>
565                             </t>
566                             <t t-if="item.create_uid and item.write_uid and item.create_uid[0] != item.write_uid[0]" t-set="item.title">
567                                 <t t-raw="item.title"/><br/>
568                                 <b>Modified by : </b><br/>
569                                 <t t-raw="item.write_uid[1] + ' ' + item.write_date"/>
570                             </t>
571                         </t>
572                         <a class="oe_sidebar_action_a" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
573                             <t t-raw="item.label"/>
574                         </a>
575                          <a t-if="section.name == 'files' and !item.callback" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
576                     </li>
577                     <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
578                         <t t-call="HiddenInputFile">
579                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
580                             <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
581                             <input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
582                             <input type="hidden" name="id" t-att-value="widget.model_id"/>
583                             <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
584                             <span>Add...</span>
585                         </t>
586                     </li>
587                 </ul>
588             </div>
589         </t>
590     </div>
591 </t>
592
593 <t t-name="TreeView">
594     <select t-if="toolbar" style="width: 30%">
595     </select>
596     <table class="oe_tree_table oe-treeview-table">
597         <thead>
598             <tr>
599                 <th t-foreach="fields_view" t-as="field"
600                     t-if="!field.attrs.modifiers.tree_invisible"
601                     class="treeview-header">
602                     <t t-esc="field_value.attrs.string || fields[field.attrs.name].string" />
603                 </th>
604             </tr>
605         </thead>
606         <tbody>
607         </tbody>
608     </table>
609 </t>
610 <tr t-name="TreeView.rows"
611         t-foreach="records" t-as="record"
612         t-att-id="'treerow_' + record.id"
613         t-att-data-id="record.id" t-att-data-level="level + 1"
614         t-att-data-row-parent-id="row_parent_id">
615     <t t-set="children" t-value="record[children_field]"/>
616     <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
617     <t t-set="rank" t-value="'oe-treeview-first'"/>
618     <t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>
619
620     <td t-foreach="fields_view" t-as="field"
621         t-if="!field.attrs.modifiers.tree_invisible"
622         t-att-data-id="record.id"
623         t-att-style="color_for(record) + style "
624         t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
625
626         <span t-if="!field.attrs.modifiers.invisible" >
627             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
628         </span>
629
630         <t t-set="class" t-value="'treeview-td'"/>
631         <t t-set="rank" t-value="''"/>
632         <t t-set="style" t-value="''"/>
633     </td>
634 </tr>
635
636 <table t-name="ListView" class="oe_list_content">
637     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
638     <thead>
639         <tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
640             <th t-att-colspan="columns_count">
641                 <div class="oe_list_buttons"/>
642                 <div class="oe_list_sidebar"/>
643                 <div class="oe_list_pager"/>
644             </th>
645         </tr>
646         <tr t-if="options.header" class="oe_list_header_columns">
647             <t t-foreach="columns" t-as="column">
648                 <th t-if="column.meta">
649                     <t t-esc="column.string"/>
650                 </th>
651             </t>
652             <th t-if="options.selectable" width="1"  >
653                 <input type="checkbox" class="oe_list_record_selector"/>
654             </th>
655             <t t-foreach="columns" t-as="column">
656                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
657                     t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}"><div>
658                     <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
659                 </div></th>
660             </t>
661             <th t-if="options.deletable" class="oe_list_record_delete" width="13px"/>
662         </tr>
663     </thead>
664     <tfoot>
665         <tr>
666             <td t-if="options.selectable"/>
667             <td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
668                 t-att-data-field="column.id" t-att-title="column.label">
669             </td>
670             <td t-if="options.deletable" class="oe_list_record_delete"/>
671         </tr>
672     </tfoot>
673 </table>
674 <t t-name="ListView.buttons">
675     <div class="oe_list_buttons">
676     <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
677         <button type="button" class="oe_button oe_list_add oe_highlight">
678             <t t-esc="widget.options.addable"/>
679         </button>
680     </t>
681     </div>
682 </t>
683 <t t-name="ListView.pager">
684     <div class="oe_list_pager" t-att-colspan="widget.columns_count">
685         <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
686             <span class="oe_list_pager_state">
687             </span>
688         </t>
689     </div>
690 </t>
691 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
692     <t t-call="ListView.row">
693         <t t-set="record" t-value="records.at(index)"/>
694     </t>
695 </t>
696 <tr t-name="ListView.row"
697         t-att-data-id="record.get('id')"
698         t-att-style="view.style_for(record)">
699     <t t-set="asData" t-value="record.toForm().data"/>
700     <t t-foreach="columns" t-as="column">
701         <td t-if="column.meta"> </td>
702     </t>
703     <th t-if="options.selectable" class="oe_list_record_selector" width="1">
704         <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
705         <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
706         <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
707     </th>
708     <t t-foreach="columns" t-as="column">
709         <t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/>
710         <t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
711         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
712             t-attf-class="oe_list_field_cell oe_list_field_#{column.widget or column.type} #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''} #{modifiers.required ? 'oe_required' : ''}"
713             t-att-data-field="column.id"
714             ><t t-raw="render_cell(record, column)"/></td>
715     </t>
716     <td t-if="options.deletable" class='oe_list_record_delete' width="13px">
717         <button type="button" name="delete" class="oe_i">d</button>
718     </td>
719 </tr>
720 <t t-extend="ListView.buttons">
721     <t t-jquery="button.oe_list_add" t-operation="after">
722         <button class="oe_button oe_list_save oe_highlight"
723                 type="button">Save</button>
724         <span class="oe_alternative">
725             <span class="oe_fade">or</span>
726             <a href="#" class="oe_bold oe_list_discard">Discard</a>
727         </span>
728     </t>
729 </t>
730 <button t-name="ListView.row.text_button" type="button"
731         t-att-title="widget.string" t-att-disabled="disabled || undefined"
732         t-att-class="disabled ? 'oe_list_button_disabled btn_txt oe_link' : 'btn_txt oe_link'"
733         ><t t-esc="widget.string"/></button>
734 <button t-name="ListView.row.button" type="button"
735         t-att-title="widget.string" t-att-disabled="disabled || undefined"
736         t-att-class="disabled ? 'oe_list_button_disabled' : ''"
737         ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
738         t-att-alt="widget.string"/></button>
739 <t t-extend="ListView.row">
740     <!-- adds back padding to row being rendered after edition, if necessary
741          (if not deletable add back padding), otherwise the row being added is
742          missing columns
743      -->
744     <t t-jquery="&gt; :last" t-operation="after">
745         <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
746     </t>
747 </t>
748
749 <t t-name="FormView">
750     <div class="oe_formview">
751         <div class="oe_form_buttons"/>
752         <div class="oe_form_sidebar"/>
753         <div class="oe_form_pager"/>
754         <div class="oe_form_container"/>
755     </div>
756 </t>
757 <div t-name="FormView.buttons" class="oe_form_buttons">
758     <t t-if="widget.options.action_buttons !== false">
759         <span class="oe_form_buttons_view">
760             <!-- required for the bounce effect on button -->
761             <div t-if="widget.is_action_enabled('edit')" style="display: inline-block;">
762                 <button type="button" class="oe_button oe_form_button_edit" accesskey="E">Edit</button>
763             </div>
764             <button t-if="widget.is_action_enabled('create')"
765                 type="button" class="oe_button oe_form_button_create" accesskey="C">Create</button>
766         </span>
767         <span class="oe_form_buttons_edit">
768             <button type="button" class="oe_button oe_form_button_save oe_highlight" accesskey="S">Save</button>
769             <span class="oe_fade">or</span>
770             <a href="#" class="oe_bold oe_form_button_cancel" accesskey="D">Discard</a>
771         </span>
772     </t>
773 </div>
774 <t t-name="FormView.pager">
775     <div class="oe_form_pager">
776         <t t-if="widget.options.pager !== false" t-call="ViewPager">
777             <span class="oe_form_pager_state"></span>
778         </t>
779     </div>
780 </t>
781 <form t-name="FormView.set_default">
782     <t t-set="args" t-value="widget.dialog_options.args"/>
783     <table style="width: 100%">
784         <tr>
785             <td>
786                 <label for="formview_default_fields"
787                        class="oe_label oe_align_right">
788                     Default:
789                 </label>
790             </td>
791             <td class="oe_form_required">
792                 <select id="formview_default_fields">
793                     <option value=""/>
794                     <option t-foreach="args.fields" t-as="field"
795                             t-att-value="field.name">
796                         <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
797                     </option>
798                 </select>
799             </td>
800         </tr>
801         <tr t-if="args.conditions.length">
802             <td>
803                 <label for="formview_default_conditions"
804                        class="oe_label oe_align_right">
805                     Condition:
806                 </label>
807             </td>
808             <td>
809                 <select id="formview_default_conditions">
810                     <option value=""/>
811                     <option t-foreach="args.conditions" t-as="cond"
812                             t-att-value="cond.name + '=' + cond.value">
813                         <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
814                     </option>
815                 </select>
816             </td>
817         </tr>
818         <tr>
819             <td colspan="2">
820                 <input type="radio" id="formview_default_self"
821                        value="self" name="scope" checked="checked"/>
822                 <label for="formview_default_self" class="oe_label"
823                        style="display: inline;">
824                     Only you
825                 </label>
826                 <br/>
827                 <input type="radio" id="formview_default_all"
828                        value="all" name="scope"/>
829                 <label for="formview_default_all" class="oe_label"
830                        style="display: inline;">
831                     All users
832                 </label>
833             </td>
834         </tr>
835     </table>
836 </form>
837
838 <t t-name="FormRenderingForm">
839     <div t-attf-class="#{classnames}">
840     </div>
841 </t>
842 <t t-name="FormRenderingSheet">
843     <div class="oe_form_sheetbg">
844         <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
845         </div>
846     </div>
847 </t>
848 <t t-name="FormRenderingGroup">
849     <t t-if="string" t-call="FormRenderingSeparator"/>
850     <table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
851 </t>
852 <t t-name="FormRenderingNotebook">
853     <div class="oe_clear">
854         <ul t-attf-class="oe_notebook #{classnames}">
855             <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
856                 <a t-attf-href="##{page.id}" t-att-accesskey="page.accesskey">
857                     <t t-esc="page.string"/>
858                 </a>
859             </li>
860         </ul>
861     </div>
862 </t>
863 <t t-name="FormRenderingNotebookPage">
864     <div t-attf-class="oe_notebook_page #{classnames}" t-att-id="id">
865     </div>
866 </t>
867 <t t-name="FormRenderingSeparator">
868     <div t-attf-class="oe_horizontal_separator oe_clear #{classnames}">
869         <t t-esc="string"/>
870     </div>
871 </t>
872 <t t-name="FormRenderingLabel">
873     <label  t-att-for="_for"
874             t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
875         <t t-esc="string"/>
876     </label>
877 </t>
878
879 <t t-name="Widget">
880     Unhandled widget
881     <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
882 </t>
883 <t t-name="WidgetLabel.tooltip">
884     <div class="oe_tooltip_string" t-if="widget.string">
885         <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
886     </div>
887     <p t-if="widget.node.attrs.help or (widget.field and widget.field.help)" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p>
888     <ul t-if="debug" class="oe_tooltip_technical">
889         <li data-item="field" t-if="widget.name">
890             <span class="oe_tooltip_technical_title">Field:</span>
891             <t t-esc="widget.name"/>
892         </li>
893         <li data-item="object" t-if="widget.view and widget.view.fields_view">
894             <span class="oe_tooltip_technical_title">Object:</span>
895             <t t-esc="widget.view.fields_view.model"/>
896         </li>
897         <li data-item="type" t-if="widget.field">
898             <span class="oe_tooltip_technical_title">Type:</span>
899             <t t-esc="widget.field.type"/>
900         </li>
901         <li t-if="widget.node.attrs.widget" data-item="widget">
902             <span class="oe_tooltip_technical_title">Widget:</span>
903             <t t-esc="widget.node.attrs.widget"/>
904         </li>
905         <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
906             <span class="oe_tooltip_technical_title">Size:</span>
907             <t t-esc="widget.node.attrs.size || widget.field.size"/>
908         </li>
909         <li t-if="widget.node.attrs.context" data-item="context">
910             <span class="oe_tooltip_technical_title">Context:</span>
911             <t t-esc="widget.node.attrs.context"/>
912         </li>
913         <li t-if="widget.node.attrs.domain" data-item="domain">
914             <span class="oe_tooltip_technical_title">Domain:</span>
915             <t t-esc="widget.node.attrs.domain"/>
916         </li>
917         <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
918             <span class="oe_tooltip_technical_title">Modifiers:</span>
919             <t t-esc="widget.node.attrs.modifiers"/>
920         </li>
921         <li t-if="widget.field and widget.field.change_default" data-item="change_default">
922             <span class="oe_tooltip_technical_title">Change default:</span>
923             Yes
924         </li>
925         <li t-if="widget.node.attrs.on_change" data-item="on_change">
926             <span class="oe_tooltip_technical_title">On change:</span>
927             <t t-esc="widget.node.attrs.on_change"/>
928         </li>
929         <li t-if="widget.field and widget.field.relation" data-item="relation">
930             <span class="oe_tooltip_technical_title">Relation:</span>
931             <t t-esc="widget.field.relation"/>
932         </li>
933         <li t-if="widget.field and widget.field.selection" data-item="selection">
934             <span class="oe_tooltip_technical_title">Selection:</span>
935             <ul class="oe_tooltip_technical">
936                 <li t-foreach="widget.field.selection" t-as="option">
937                     [<t t-esc="option[0]"/>]
938                     <t t-if="option[1]"> - </t>
939                     <t t-esc="option[1]"/>
940                 </li>
941             </ul>
942         </li>
943     </ul>
944 </t>
945 <t t-name="FieldChar">
946     <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
947         <t t-if="!widget.get('effective_readonly')">
948             <input t-att-type="widget.password ? 'password' : 'text'"
949                 t-att-id="widget.id_for_label"
950                 t-att-tabindex="widget.node.attrs.tabindex"
951                 t-att-autofocus="widget.node.attrs.autofocus"
952                 t-att-placeholder="widget.node.attrs.placeholder"
953                 t-att-maxlength="widget.field.size"
954             /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
955         </t>
956         <t t-if="widget.get('effective_readonly')">
957             <span class="oe_form_char_content"></span>
958         </t>
959     </span>
960 </t>
961 <t t-name="KanbanSelection">
962     <div class="btn-group kanban_state">
963         <t t-foreach="widget.states" t-as="rec">
964             <a t-if="widget.get('value') === rec.name">
965                 <a class="oe_legend dropdown-toggle" data-toggle="dropdown">
966                     <span t-att-class="rec.state_class" t-if="widget.get('value') === rec.name" t-att-title="rec.tooltip"/>
967                     <span class="sr-only">Toggle Dropdown</span>
968                 </a>
969             </a>
970         </t>
971         <ul class="dropdown-menu state" role="menu">
972             <t t-foreach="widget.states" t-as="rec">
973                 <t t-if="widget.get('value') !== rec.name">
974                     <li class="oe_legend" t-att-data-value="rec.name" ><a href="#">
975                         <span t-att-class="rec.state_class" t-att-title="rec.tooltip"/>
976                         <t t-raw="rec.state_name" /></a>
977                     </li>
978                 </t>
979             </t>
980         </ul>
981     </div>
982 </t>
983 <t t-name="Priority">
984     <ul style="list-style: none; padding-left: 2px; display: inline-block;">
985         <t t-foreach="widget.priorities" t-as="rec" >
986             <li t-att-data-value="rec.click_value" class="oe_legend" style="display: inline-block;">
987                 <a href="#" t-att-title="rec.name">
988                     <span t-att-class="widget.get('value') gte rec.value and 'oe_e oe_star_on' or 'oe_e oe_star_off'">7</span>
989                 </a>
990             </li>
991         </t>
992     </ul>
993 </t>
994 <t t-name="FieldEmail">
995     <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
996         <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
997         <t t-if="!widget.get('effective_readonly')">
998             <div>
999                 <input type="text"
1000                     t-att-id="widget.id_for_label"
1001                     t-att-tabindex="widget.node.attrs.tabindex"
1002                     t-att-autofocus="widget.node.attrs.autofocus"
1003                     t-att-placeholder="widget.node.attrs.placeholder"
1004                 t-att-maxlength="widget.field.size"
1005                 />
1006             </div>
1007         </t>
1008     </span>
1009 </t>
1010 <t t-name="FieldUrl" t-extend="FieldEmail">
1011     <t t-jquery="span:first">
1012         this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
1013     </t>
1014 </t>
1015 <t t-name="FieldText">
1016     <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
1017         <t t-if="!widget.get('effective_readonly')">
1018             <textarea rows="6"
1019                 t-att-name="widget.name"
1020                 class="field_text"
1021                 t-att-tabindex="widget.node.attrs.tabindex"
1022                 t-att-autofocus="widget.node.attrs.autofocus"
1023                 t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
1024                 t-att-maxlength="widget.field.size"
1025             ></textarea><img class="oe_field_translate oe_input_icon"
1026                             t-if="widget.field.translate and !widget.get('effective_readonly')"
1027                             t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
1028             />            
1029         </t>
1030         <t t-if="widget.get('effective_readonly')">
1031             <span class="oe_form_text_content"></span>
1032         </t>
1033     </div>
1034 </t>
1035 <t t-name="FieldTextHtml">
1036     <div t-att-class="'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
1037             t-att-style="widget.node.attrs.style">
1038         <t t-if="! widget.get('effective_readonly')">
1039             <textarea/>
1040         </t>
1041     </div>
1042 </t>
1043 <t t-name="FieldCharDomain">
1044     <div class="oe_form_field">
1045         <span class="oe_domain_count"/>
1046         <button class="oe_button oe_link select_records" type="button"
1047             t-att-style="widget.node.attrs.style"
1048             t-att-accesskey="widget.node.attrs.accesskey">
1049             <span class="fa fa-arrow-right"/>
1050         </button>
1051     </div>
1052 </t>
1053 <t t-name="web.datepicker">
1054     <span>
1055         <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
1056         <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
1057         <input type="text"
1058             t-att-name="widget.name"
1059             t-att-placeholder="placeholder"
1060             class="oe_datepicker_master"
1061         /><img class="oe_input_icon oe_datepicker_trigger" draggable="false"
1062                t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
1063                title="Select date" width="16" height="16" border="0"/>
1064     </span>
1065 </t>
1066 <t t-name="FieldDate">
1067     <span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
1068 </t>
1069 <t t-name="FieldDatetime">
1070     <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
1071 </t>
1072 <t t-name="FieldSelection">
1073     <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
1074     </span>
1075 </t>
1076 <t t-name="FieldSelectionSelect">
1077     <select t-if="!widget.get('effective_readonly')"
1078         t-att-name="widget.name"
1079         t-att-tabindex="widget.node.attrs.tabindex"
1080         t-att-autofocus="widget.node.attrs.autofocus"
1081         t-att-id="widget.id_for_label">
1082             <t t-foreach="values" t-as="option">
1083                 <option t-att-value="JSON.stringify(option[0])">
1084                     <t t-esc="option[1]"/>
1085                 </option>
1086             </t>
1087     </select>
1088 </t>
1089 <t t-name="FieldRadio">
1090     <span t-attf-class="oe_form_field oe_form_field_radio #{widget.options.horizontal ? 'oe_horizontal' : 'oe_vertical'}" t-att-style="widget.node.attrs.style">
1091         <span t-if="!widget.get('effective_readonly')">
1092             <t t-if="widget.options.horizontal">
1093                 <t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/>
1094                 <t t-if="!widget.options.no_radiolabel">
1095                     <t t-foreach="widget.selection" t-as="selection">
1096                         <label t-att-for="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></label>
1097                     </t>
1098                     <br/>
1099                 </t>
1100                 <t t-foreach="widget.selection" t-as="selection">
1101                     <div t-att-style="'width: ' + width + '%;'">
1102                         <span class="oe_radio_input"><input type="radio" t-att-name="widget.uniqueId" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-value="selection[0]"/></span>
1103                     </div>
1104                 </t>
1105             </t>
1106             <t t-if="!widget.options.horizontal">
1107                 <t t-foreach="widget.selection" t-as="selection">
1108                     <div>
1109                         <span class="oe_radio_input"><input type="radio" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-name="widget.uniqueId" t-att-value="selection[0]"/></span><label t-if="!widget.options.no_radiolabel" t-att-for="widget.uniqueId + '_' + selection[0]"><t t-esc="selection[1]"/></label>
1110                     </div>
1111                 </t>
1112             </t>
1113         </span>
1114         <span t-if="widget.get('effective_readonly')" class="oe_radio_readonly"><t t-esc="widget.get('value')[1]"/></span>
1115     </span>
1116 </t>
1117 <t t-name="FieldMany2One">
1118     <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
1119         <t t-if="widget.get('effective_readonly')">
1120             <a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
1121             <span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
1122             <span class="oe_form_m2o_follow"/>
1123         </t>
1124         <t t-if="!widget.get('effective_readonly')">
1125             <a t-if="! widget.options.no_open" href="#" tabindex="-1"
1126                 class="oe_m2o_cm_button oe_e" draggable="false">/</a>
1127             <div>
1128                 <input type="text"
1129                     t-att-id="widget.id_for_label"
1130                     t-att-tabindex="widget.node.attrs.tabindex"
1131                     t-att-autofocus="widget.node.attrs.autofocus"
1132                     t-att-placeholder="widget.node.attrs.placeholder"
1133                 />
1134                 <span class="oe_m2o_drop_down_button">
1135                     <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/>
1136                 </span>
1137             </div>
1138         </t>
1139     </span>
1140 </t>
1141 <t t-name="Many2OneButton">
1142     <span class="oe_form_field">
1143     </span>
1144 </t>
1145 <t t-name="Many2OneButton.cell"
1146     ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png" t-att-alt="widget.string" width="16" height="16"/>
1147 </t>
1148 <t t-name="FieldMany2ManyTags">
1149     <div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
1150         <t t-if="! widget.get('effective_readonly')">
1151             <textarea rows="1" style="width: 100%"
1152                 t-att-placeholder="widget.node.attrs.placeholder"></textarea>
1153         </t>
1154     </div>
1155 </t>
1156 <t t-name="FieldMany2ManyTag">
1157     <t t-set="i" t-value="0"/>
1158     <t t-foreach="elements" t-as="el">
1159         <span class="oe_tag" t-att-data-index="i">
1160             <t t-esc="el[1]"/>
1161         </span>
1162         <t t-set="i" t-value="i + 1"/>
1163     </t>
1164 </t>
1165 <t t-name="FieldReference">
1166     <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
1167     <tr>
1168         <td t-attf-class="oe_form_frame_cell oe_form_selection">
1169             <span t-attf-class="oe_form_view_reference_selection"/>
1170         </td>
1171         <td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
1172             <span t-attf-class="oe_form_view_reference_m2o"/>
1173         </td>
1174     </tr>
1175     </table>
1176 </t>
1177 <t t-name="FieldBoolean">
1178     <span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
1179         <input type="checkbox"
1180             t-att-id="widget.id_for_label"
1181             t-att-name="widget.name"
1182             t-att-tabindex="widget.node.attrs.tabindex"
1183             t-att-autofocus="widget.node.attrs.autofocus"
1184             class="field_boolean"/>
1185     </span>
1186 </t>
1187 <t t-name="FieldProgressBar">
1188     <span class="oe_form_field oe_form_field_progressbar" t-att-style="widget.node.attrs.style">
1189         <span></span>
1190     </span>
1191 </t>
1192 <t t-name="FieldPercentPie">
1193     <div class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style">
1194         <svg></svg>
1195         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1196     </div>
1197 </t>
1198 <t t-name="FieldBarChart">
1199     <div class="oe_form_field oe_form_field_bar_chart" t-att-style="widget.node.attrs.style">
1200         <svg></svg>
1201         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1202     </div>
1203 </t>
1204 <t t-name="FieldStatus">
1205     <ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/>
1206 </t>
1207 <t t-name="FieldStatus.content">
1208     <t t-foreach="widget.selection.unfolded" t-as="i">
1209         <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1210             <span class="label"><t t-esc="i[1]"/></span>
1211             <!-- are you mit ? -->
1212             <span class="arrow"><span></span></span>
1213         </li>
1214     </t>
1215     <t t-if="widget.selection.folded.length">
1216         <li>
1217             <span class="label oe_dropdown_toggle oe_dropdown_arrow">More</span>
1218             <ul class="oe_dropdown_menu">
1219                 <t t-foreach="widget.selection.folded" t-as="i">
1220                     <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1221                         <span class="label"><t t-esc="i[1]"/></span>
1222                     </li>
1223                 </t>
1224             </ul>
1225         </li>
1226     </t>
1227 </t>
1228 <t t-name="FieldBinaryImage">
1229     <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
1230         <div class="oe_form_field_image_controls oe_edit_only">
1231             <i class="fa fa-pencil fa-1g pull-left col-md-offset-1 oe_form_binary_file_edit" title="Edit"/>
1232             <i class="fa fa-trash-o fa-1g col-md-offset-5 oe_form_binary_file_clear" title="Clear"/>
1233             <div class="oe_form_binary_progress" style="display: none">
1234                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1235                 <b>Uploading ...</b>
1236             </div>
1237         </div>
1238         <t t-call="HiddenInputFile">
1239             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1240         </t>
1241     </span>
1242 </t>
1243 <t t-name="FieldBinaryImage-img">
1244     <img t-att-src='url'
1245         t-att-border="widget.readonly ? 0 : 1"
1246         t-att-name="widget.name"
1247         t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1248         t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1249     />
1250 </t>
1251 <t t-name="FieldBinaryFile">
1252     <t t-if="!widget.get('effective_readonly')">
1253         <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
1254         <tr>
1255             <td>
1256                 <input type="text" size="1" readonly="readonly"
1257                     t-att-name="widget.name"
1258                     t-att-tabindex="widget.node.attrs.tabindex"
1259                     t-att-autofocus="widget.node.attrs.autofocus"
1260                     class="field_binary"
1261                 />
1262             </td>
1263             <td class="oe_form_binary" nowrap="true">
1264                 <table cellspacing="0" cellpadding="0" border="0">
1265                 <tr>
1266                     <td>
1267                         <t t-call="HiddenInputFile">
1268                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1269                             <t t-set="fileupload_style" t-translation="off">overflow-x: hidden</t>
1270                             <button class="oe_button oe_field_button" type="button">
1271                                 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1272                                 <span>Select</span>
1273                             </button>
1274                         </t>
1275                     </td>
1276                     <td>
1277                         <a class="oe_form_binary_file_save_data">
1278                             <button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
1279                                 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1280                                 <span>Save As</span>
1281                             </button>
1282                         </a>
1283                     </td>
1284                     <td>
1285                         <button class="oe_button oe_form_binary_file_clear" type="button" title="Clear">
1286                             <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1287                             <span>Clear</span>
1288                         </button>
1289                     </td>
1290                 </tr>
1291                 </table>
1292             </td>
1293             <td class="oe_form_binary_progress" style="display: none" nowrap="true">
1294                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1295                 <b>Uploading ...</b>
1296             </td>
1297         </tr>
1298         </table>
1299     </t>
1300     <t t-if="widget.get('effective_readonly')">
1301         <span t-att-style="widget.node.attrs.style">
1302             <a href="javascript:void(0)" class="oe_form_uri"/>
1303         </span>
1304     </t>
1305 </t>
1306 <t t-name="HiddenInputFile">
1307     <div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
1308         <form class="oe_form_binary_form" t-att-target="fileupload_id"
1309             method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
1310             <input type="hidden" name="session_id" value="" t-if="widget.session.override_session"/>
1311             <input type="hidden" name="callback" t-att-value="fileupload_id"/>
1312             <t t-raw="__content__"/>
1313             <input type="file" class="oe_form_binary_file" name="ufile" t-if="widget.widget!='image'"/>
1314             <input type="file" class="oe_form_binary_file" name="ufile" accept="image/*" t-if="widget.widget=='image'"/>
1315         </form>
1316         <iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
1317     </div>
1318 </t>
1319 <t t-name="FieldBinaryFileUploader.files">
1320     <div class="oe_attachments">
1321         <t t-if="!widget.get('effective_readonly')">
1322             <t t-foreach="values" t-as="id">
1323                 <t t-set="file" t-value="widget.data[id]"/>
1324                 <div class="oe_attachment">
1325                     <span t-if="(file.upload or file.percent_loaded&lt;100)" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}" t-attf-name="{file.name || file.filename}">
1326                         <span class="oe_fileuploader_in_process">...Upload in progress...</span>
1327                         <t t-raw="file.name || file.filename"/>
1328                     </span>
1329                     <a t-if="(!file.upload or file.percent_loaded&gt;=100)" t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1330                         <t t-raw="file.name || file.filename"/>
1331                     </a>
1332                     <t t-if="(!file.upload or file.percent_loaded&gt;=100)">
1333                         <a class="oe_right oe_delete oe_e" title="Delete this file" t-attf-data-id="{file.id}">[</a>
1334                     </t>
1335                 </div>
1336             </t>
1337         </t>
1338         <t t-if="widget.get('effective_readonly')">
1339             <t t-foreach="widget.get('value')" t-as="id">
1340                 <t t-set="file" t-value="widget.data[id]"/>
1341                 <div>
1342                     <a t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1343                         <t t-raw="file.name || file.filename"/>
1344                     </a>
1345                 </div>
1346             </t>
1347         </t>
1348     </div>
1349 </t>
1350 <t t-name="FieldBinaryFileUploader">
1351     <div t-att-style="widget.node.attrs.style" t-attf-class="oe_fileupload #{widget.node.attrs.class ? widget.node.attrs.class :''}">
1352         <div class="oe_placeholder_files"/>
1353         <div class="oe_add" t-if="!widget.get('effective_readonly')">
1354             <!-- uploader of file -->
1355             <button class="oe_attach"><span class="oe_e">'</span></button> 
1356             <span class='oe_attach_label'><t t-esc="widget.string"/></span>
1357             <t t-call="HiddenInputFile">
1358                 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1359                 <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
1360                 <input type="hidden" name="model" t-att-value="widget.view.model"/>
1361                 <input type="hidden" name="id" value="0"/>
1362                 <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1363             </t>
1364         </div>
1365     </div>
1366 </t>
1367 <t t-name="WidgetButton">
1368     <button type="button" t-att-class="widget.is_stat_button ? 'oe_stat_button btn btn-default' : 'oe_button oe_form_button ' + (widget.node.attrs.class ? widget.node.attrs.class : '')"
1369         t-att-style="widget.node.attrs.style"
1370         t-att-tabindex="widget.node.attrs.tabindex"
1371         t-att-autofocus="widget.node.attrs.autofocus"
1372         t-att-accesskey="widget.node.attrs.accesskey">
1373         <img t-if="!widget.is_stat_button and widget.node.attrs.icon " t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
1374         <div t-if="widget.is_stat_button and widget.icon_class" t-att-class="widget.icon_class"></div>
1375         <span t-if="widget.string and !widget.is_stat_button"><t t-esc="widget.string"/></span>
1376         <div t-if="widget.string and widget.is_stat_button"><t t-esc="widget.string"/></div>
1377     </button>
1378 </t>
1379 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1380     <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1381         <div class="oe_tooltip_string" t-if="debug || widget.string">
1382             <t t-if="debug">
1383                 Button
1384                 <t t-if="widget.string">: </t>
1385                 <t t-if="!widget.string"> (no string)</t>
1386             </t>
1387             <t t-esc="widget.string"/>
1388         </div>
1389     </t>
1390     <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1391         <li t-if="widget.node.attrs.special" data-item="special">
1392             <span class="oe_tooltip_technical_title">Special:</span>
1393             <t t-esc="widget.node.attrs.special"/>
1394         </li>
1395         <t t-set="button_type" t-value="widget.node.attrs.type"/>
1396         <li t-if="button_type" data-item="button_type">
1397             <span class="oe_tooltip_technical_title">Button Type:</span>
1398             <t t-esc="button_type"/>
1399         </li>
1400         <li t-if="button_type === 'object'" data-item="button_method">
1401             <span class="oe_tooltip_technical_title">Method:</span>
1402             <t t-esc="widget.node.attrs.name"/>
1403         </li>
1404         <li t-if="button_type === 'action'" data-item="button_action">
1405             <span class="oe_tooltip_technical_title">Action ID:</span>
1406             <t t-esc="widget.node.attrs.name"/>
1407         </li>
1408     </t>
1409 </t>
1410
1411 <t t-name="AbstractFormPopup.render">
1412     <div>
1413         <table style="width:100%">
1414             <tr style="width:100%">
1415                 <td style="width:100%">
1416                     <div class="oe_popup_search" style="width:100%"></div>
1417                 </td>
1418             </tr>
1419             <tr style="width:100%">
1420                 <td style="width:100%">
1421                     <div class="oe_popup_list_pager"></div>
1422                 </td>
1423             </tr>
1424             <tr style="width:100%">
1425                 <td style="width:100%">
1426                     <div class="oe_popup_list" style="width:100%"></div>
1427                 </td>
1428             </tr>
1429         </table>
1430         <div class="oe_popup_form" style="width:100%"></div>
1431     </div>
1432 </t>
1433 <t t-name="SelectCreatePopup.search.buttons">
1434     <t t-if="! widget.options.disable_multiple_selection">
1435         <button type="button" class="oe_button oe_selectcreatepopup-search-select oe_highlight" disabled="disabled">Select</button>
1436     </t>
1437     <t t-if="!widget.options.no_create">
1438     <button type="button" class="oe_button oe_selectcreatepopup-search-create">Create</button>
1439     or </t><a class="oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
1440 </t>
1441 <t t-name="AbstractFormPopup.buttons">
1442     <t t-if="! readonly">
1443         <t t-if="! multi_select">
1444             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save</button>
1445         </t>
1446         <t t-if="multi_select">
1447             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save &amp; Close</button>
1448             <button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save &amp; New</button>
1449         </t>
1450         or
1451     </t>
1452     <a class="oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">
1453         <t t-if="! readonly">
1454             Discard
1455         </t>
1456         <t t-if="readonly">
1457             Close
1458         </t>
1459     </a>
1460 </t>
1461
1462 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1463     <t t-jquery=".oe-view-manager-header">
1464         this.attr('t-if', 'views.length != 1');
1465     </t>
1466 </t>
1467 <t t-name="One2Many.formview" t-extend="FormView">
1468     <t t-jquery=".oe_form_buttons" t-operation="inner">
1469         <button type="button" class="oe_button oe_form_button_create">Add</button>
1470     </t>
1471 </t>
1472 <t t-name="One2Many.listview" t-extend="ListView">
1473     <t t-jquery="thead.ui-widget-header > tr:first">
1474         this.removeAttr('t-if');
1475     </t>
1476
1477     <t t-jquery="td.oe-actions">
1478         this.removeAttr('t-if');
1479     </t>
1480     <t t-jquery="td.oe-actions" t-operation="prepend">
1481         <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1482     </t>
1483 </t>
1484
1485 <div t-name="SearchView" class="oe_searchview">
1486     <div class="oe_searchview_facets"/>
1487     <div class="oe_searchview_clear"/>
1488     <div class="oe_searchview_unfold_drawer" title="Advanced Search..."/>
1489     <button type="button" class="oe_searchview_search"
1490             title="Search Again">Search</button>
1491 </div>
1492
1493 <div t-name="SearchViewDrawer" class="oe_searchview_drawer" style="display:none;">
1494     <div class="col-md-7"></div>
1495     <div class="col-md-5"></div>
1496 </div>
1497
1498 <div t-name="SearchView.InputView"
1499      class="oe_searchview_input"
1500      contenteditable="true"
1501      tabindex="0"/>
1502 <!-- tabindex: makes div focusable -->
1503 <div t-name="SearchView.FacetView"
1504      class="oe_tag oe_tag_dark oe_searchview_facet"
1505      tabindex="0"
1506     ><span class="oe_facet_remove">x</span
1507     ><span class="oe_facet_category oe_i" t-if="widget.model.has('icon')">
1508         <t t-esc="widget.model.get('icon')"/>
1509     </span
1510     ><span class="oe_facet_category" t-if="!widget.model.has('icon')">
1511         <t t-esc="widget.model.get('category')"/>
1512     </span ><span class="oe_facet_values"
1513 /></div>
1514 <span t-name="SearchView.FacetView.Value" class="oe_facet_value">
1515     <t t-esc="widget.model.get('label')"/>
1516 </span>
1517 <t t-name="SearchView.managed-filters">
1518     <option class="oe_search_filters_title" value="">Filters</option>
1519     <optgroup label="-- Filters --">
1520         <t t-foreach="filters" t-as="filter">
1521             <option t-attf-value="get:#{filter_index}"
1522                     t-att-disabled="filter.disabled and 'disabled'"
1523                     t-att-title="filter.disabled and disabled_filter_message">
1524                 <t t-esc="filter.name"/>
1525             </option>
1526         </t>
1527     </optgroup>
1528     <optgroup label="-- Actions --">
1529         <option value="advanced_filter">Add Advanced Filter</option>
1530         <option value="save_filter">Save Filter</option>
1531         <option value="manage_filters">Manage Filters</option>
1532     </optgroup>
1533 </t>
1534 <t t-name="SearchView.managed-filters.add">
1535     <div>
1536         <p>Filter Name:</p>
1537         <input type="text"/>
1538         <p>(Any existing filter with the same name will be replaced)</p>
1539     </div>
1540 </t>
1541 <t t-name="SearchView.render_lines">
1542     <table class="oe_search_render_line" border="0" cellspacing="0" cellpadding="0"
1543            t-foreach="lines" t-as="line">
1544         <tr>
1545             <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1546                 <t t-raw="widget.render(defaults)"/>
1547             </td>
1548         </tr>
1549     </table>
1550 </t>
1551 <button t-name="SearchView.filter" type="button"
1552         t-att-id="element_id"
1553         t-att-title="attrs.help"
1554         t-att-class="classes.join(' ')"
1555         t-att-style="style"
1556         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1557     <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1558     <br t-if="attrs.string"/>
1559     <t t-esc="attrs.string"/>
1560 </button>
1561 <ul t-name="SearchView.filters">
1562     <li t-foreach="widget.filters" t-as="filter" t-if="!filter.visible || filter.visible()"
1563             t-att-title="filter.attrs.string ? filter.attrs.help : undefined"
1564             t-att-data-index="filter_index">
1565         <t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
1566     </li>
1567 </ul>
1568 <t t-name="SearchView.filters.facet">
1569     <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1570
1571     <t t-set="val" t-value="facet.get('json')"/>
1572
1573     <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1574         <t t-esc="facet.get('value')"/>
1575     </div>
1576     <t t-if="val instanceof Array">
1577         <div class="search_facet_input_container"
1578                 t-foreach="facet.get('json')" t-as="filter">
1579             <t t-esc="filter.attrs.string || filter.attrs.name"/>
1580         </div>
1581     </t>
1582
1583     <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1584 </t>
1585 <t t-name="SearchView.field">
1586     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1587            t-att-title="attrs.help"
1588            t-att-for="element_id"
1589            t-att-style="style">
1590         <t t-esc="attrs.string || attrs.name"/>
1591         <span t-if="attrs.help">?</span>
1592     </label>
1593     <div t-att-style="style">
1594         <input type="text" size="15" t-att-name="attrs.name"
1595                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1596                t-att-id="element_id"
1597                t-att-value="defaults[attrs.name] || ''"/>
1598         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1599     </div>
1600 </t>
1601 <t t-name="SearchView.date">
1602     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1603            t-att-title="attrs.help"
1604            t-att-for="element_id"
1605            t-att-style="style">
1606         <t t-esc="attrs.string || attrs.name"/>
1607         <span t-if="attrs.help">?</span>
1608     </label>
1609     <div t-att-style="style">
1610         <span t-att-id="element_id"/>
1611         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1612     </div>
1613 </t>
1614 <t t-name="SearchView.field.selection">
1615     <label t-att-title="attrs.help"
1616            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1617            t-att-for="element_id"
1618            t-att-style="style">
1619         <t t-esc="attrs.string || attrs.name"/>
1620         <span t-if="attrs.help">?</span>
1621     </label>
1622     <div t-att-style="style">
1623         <select t-att-name="attrs.name" t-att-id="element_id"
1624                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1625             <option t-if="prepend_empty"/>
1626             <t t-foreach="attrs.selection" t-as="option">
1627                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1628                 <option t-if="selected"
1629                         t-attf-selected="selected"
1630                         t-att-value="option_index">
1631                     <t t-esc="option[1]"/>
1632                 </option>
1633                 <option t-if="!selected" t-att-value="option_index">
1634                     <t t-esc="option[1]"/>
1635                 </option>
1636             </t>
1637         </select>
1638         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1639     </div>
1640 </t>
1641 <t t-name="SearchView.util.expand">
1642     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1643         <a t-if="label" class="searchview_group_string" href="#">
1644             <t t-esc="label"/>
1645         </a>
1646         <div class="searchview_group_content">
1647             <t t-raw="content"/>
1648         </div>
1649     </div>
1650 </t>
1651 <div t-name="SearchView.Filters" class="oe_searchview_filters oe_searchview_section">
1652
1653 </div>
1654
1655
1656 <div t-name="SearchView.Custom" class="oe_searchview_custom oe_searchview_section">
1657     <dl class="dl-horizontal">
1658         <dt><span class="oe_i">M</span> Favorites</dt>
1659         <dd><ul class="oe_searchview_custom_list"/></dd>
1660     </dl>
1661 </div>
1662
1663  <div t-name="SearchView.SaveFilter" class="oe_searchview_savefilter">
1664     <h4>Save current filter</h4>
1665     <form class="oe_form">
1666         <p class="oe_form_required"><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
1667         <p>
1668             <input id="oe_searchview_custom_public" type="checkbox"/>
1669             <label for="oe_searchview_custom_public">Share with all users</label>
1670             <input id="oe_searchview_custom_default" type="checkbox"/>
1671             <label for="oe_searchview_custom_default">Use by default</label>
1672         </p>
1673         <button>Save</button>
1674     </form>
1675 </div>
1676
1677 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1678     <h4>Advanced Search</h4>
1679     <form>
1680         <ul>
1681
1682         </ul>
1683         <button class="oe_add_condition button" type="button">Add a condition</button><br/>
1684         <button class="oe_apply" type="submit">Apply</button>
1685     </form>
1686 </div>
1687 <t t-name="SearchView.extended_search.proposition">
1688     <li>
1689         <span class="searchview_extended_prop_or">or</span>
1690         <select class="searchview_extended_prop_field">
1691             <t t-foreach="widget.attrs.fields" t-as="field">
1692                 <option t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1693                         t-att-value="field.name">
1694                     <t t-esc="field.string"/>
1695                 </option>
1696             </t>
1697         </select>
1698         <select class="searchview_extended_prop_op"/>
1699         <span class="searchview_extended_prop_value"/>
1700         <a class="searchview_extended_delete_prop button">x</a>
1701     </li>
1702 </t>
1703 <t t-name="SearchView.extended_search.proposition.char">
1704     <input class="field_char"/>
1705 </t>
1706 <t t-name="SearchView.extended_search.proposition.empty">
1707     <span/>
1708 </t>
1709 <t t-name="SearchView.extended_search.proposition.integer">
1710     <input type="number" class="field_integer" value = "0" step="1"/>
1711 </t>
1712 <t t-name="SearchView.extended_search.proposition.float">
1713     <input type="number" class="field_float" value = "0.0" step="0.01"/>
1714 </t>
1715 <t t-name="SearchView.extended_search.proposition.selection">
1716     <select>
1717         <t t-foreach="widget.field.selection" t-as="element">
1718         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1719         </t>
1720     </select>
1721 </t>
1722
1723 <div t-name="SearchView.autocomplete" class="oe-autocomplete">
1724     <ul>
1725     </ul>
1726 </div>
1727 <t t-name="ExportView">
1728     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1729 </t>
1730 <table t-name="ExportTreeView" class="oe_export"
1731        style="background-color: #F3F3F3;">
1732     <tr>
1733         <td colspan="3">
1734             This wizard will export all data that matches the current search criteria to a CSV file.
1735             You can export all data or only the fields that can be reimported after modification.
1736         </td>
1737     </tr>
1738     <tr>
1739         <td colspan="3">
1740             <label for="import_compat">Export Type:</label>
1741             <select id="import_compat" name="import_compat">
1742                 <option value="yes">Import-Compatible Export</option>
1743                 <option value="">Export all Data</option>
1744             </select>
1745
1746             <label for="export_format">Export Formats</label>
1747             <select id="export_format" name="export_format"></select>
1748         </td>
1749     </tr>
1750
1751     <tr>
1752         <th>Available fields</th>
1753         <th/>
1754         <th>
1755             Fields to export
1756             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1757             <div id="savenewlist"></div>
1758             <div id="ExistsExportList"></div>
1759         </th>
1760     </tr>
1761     <tr style="height: 400px;">
1762         <td class="oe_export_fields_selector_left">
1763             <div id="left_field_panel">
1764             </div>
1765         </td>
1766         <td class="oe_export_fields_selector_center">
1767             <!-- TODO: replace ids by 'oe_*' classes -->
1768             <button class="oe_button" id="add_field">Add</button>
1769             <button class="oe_button" id="remove_field">Remove</button>
1770             <button class="oe_button" id="remove_all_field">Remove All</button>
1771             <button class="oe_button" id="move_up">Move Up</button>
1772             <button class="oe_button" id="move_down">Move Down</button>
1773         </td>
1774         <td class="oe_export_fields_selector_right">
1775             <select name="fields_list" id="fields_list"
1776                     multiple="multiple"></select>
1777         </td>
1778     </tr>
1779 </table>
1780 <t t-name="ExportTreeView-Domain">
1781     <t t-if="! record.ids_to_export">
1782         <p><strong>Please pay attention that all records matching your search filter will be exported. Not only the selected ids.</strong></p>
1783     </t>
1784     <t t-if="record.ids_to_export">
1785         <p><strong>Please note that only the selected ids will be exported.</strong></p>
1786     </t>
1787 </t>
1788 <table t-name="ExportTreeView-Secondary"
1789        id="field-tree-structure" class="oe_export_fields_selector_export"
1790        cellspacing="0" cellpadding="0">
1791     <tr><th class="oe_export_tree_header"> Name </th></tr>
1792     <t t-call="ExportTreeView-Secondary.children"/>
1793 </table>
1794 <tr t-name="ExportTreeView-Secondary.children"
1795     t-foreach="fields" t-as="field"
1796     t-att-id="'treerow-' + field.id" class="oe_export_row">
1797     <td>
1798         <table class="tree_grid" border="0">
1799             <tr class="oe_export_row">
1800                 <t t-foreach="(field.id).split('/')" t-as="level" >
1801                     <t t-if="(field.id).split('/')[0] != level">
1802                         <td width="18" t-translation="off">&amp;nbsp;</td>
1803                     </t>
1804                 </t>
1805                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1806                     <t t-if="field.children">
1807                         <t t-if="(field.id).split('/').length != 3">
1808                             <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1809                         </t>
1810                     </t>
1811                 </td>
1812                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1813                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1814                         <t t-esc="field.string"/>
1815                     </a>
1816                 </td>
1817             </tr>
1818         </table>
1819     </td>
1820 </tr>
1821 <t t-name="ExportNewList">
1822     <tr>
1823         <th><label>Save as:</label></th>
1824         <td><input size="10" type="text" id="savelist_name"/></td>
1825         <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1826     </tr>
1827 </t>
1828 <t t-name="Exists.ExportList">
1829     <label for="saved_export_list">Saved exports:</label>
1830
1831     <select id="saved_export_list">
1832         <option></option>
1833         <t t-foreach="existing_exports" t-as="export">
1834             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1835         </t>
1836     </select>
1837     <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1838 </t>
1839
1840 <t t-name="ImportView">
1841     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1842 </t>
1843 <t t-name="ImportDataView">
1844 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1845         class="oe_import oe_import_no_result">
1846     <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1847     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1848     <p>Select a .CSV file to import. If you need a sample of file to import,
1849        you should use the export tool with the "Import Compatible" option.
1850     </p>
1851     <p>
1852         <label for="csvfile">CSV File:</label>
1853         <input type="file" id="csvfile" size="50" name="csvfile"/>
1854     </p>
1855     <h2 class="separator horizontal oe_import_result">2. Check your file format</h2>
1856     <div id="result" class="oe_import_result"></div>
1857     <fieldset class="oe_closed oe_import_result">
1858         <legend>Import Options</legend>
1859         <table>
1860             <tr>
1861                 <td colspan="4">
1862                     <label for="file_has_headers">Does your file have titles?</label>
1863                     <input type="checkbox" checked="checked"
1864                            id="file_has_headers"/>
1865                 </td>
1866             </tr>
1867             <tr>
1868                 <td><label for="csv_separator">Separator:</label></td>
1869                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1870                 <td><label for="csv_delimiter">Delimiter:</label></td>
1871                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1872             </tr>
1873             <tr>
1874                 <td><label for="csv_encoding">Encoding:</label></td>
1875                 <td>
1876                     <select name="csvcode" id="csv_encoding">
1877                         <option value="utf-8">UTF-8</option>
1878                         <option value="latin1">Latin 1</option>
1879                     </select>
1880                 </td>
1881                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1882                     Lines to skip<sup>?</sup>:</label></td>
1883                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1884             </tr>
1885         </table>
1886     </fieldset>
1887 </form>
1888 </t>
1889 <t t-name="ImportView.result">
1890     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1891         <tr t-if="headers" class="oe_import_grid-header">
1892             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1893                 <t t-esc="header"/></td>
1894         </tr>
1895         <tr>
1896             <td t-foreach="records[0]" t-as="column">
1897                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe_m2o_drop_down_button">
1898                         <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/></span>
1899             </td>
1900         </tr>
1901         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1902             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1903                 <t t-esc="cell"/></td>
1904         </tr>
1905     </table>
1906 </t>
1907 <t t-name="ImportView.error">
1908     <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1909     <t t-if="error.preview">
1910         <p>Here is a preview of the file we could not import:</p>
1911         <pre><t t-esc="error.preview"/></pre>
1912     </t>
1913 </t>
1914 <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
1915     <input t-att-placeholder="_t('Type name to search')"/>
1916 </div>
1917 <t t-name="Throbber">
1918     <div>
1919         <div class="oe_blockui_spin" style="height: 50px">
1920         </div>
1921         <br />
1922         <div class="oe_throbber_message" style="color:white"></div>
1923     </div>
1924 </t>
1925 <t t-name="M2ODialog">
1926     <div>
1927         <p class="oe_grey"/>
1928         Name: <input class="oe_form_m2o_input_name" type="text"/>
1929     </div>
1930 </t>
1931 <t t-name="M2ODialog.buttons">
1932     <button class="oe_form_m2o_qc_button oe_button oe_highlight">Create</button>
1933     <button class="oe_form_m2o_sc_button oe_button">Create and edit</button> or
1934     <button class="oe_form_m2o_cancel_button oe_button oe_link"><span>Cancel</span></button>
1935 </t>
1936 <t t-name="FieldMonetary" t-extend="FieldChar">
1937     <t t-jquery="t:first" t-operation="before">
1938         <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'before'">
1939             <t t-esc="widget.get('currency_info').symbol"/>
1940         </t>
1941     </t>
1942     <t t-jquery="t:last" t-operation="after">
1943         <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'after'">
1944             <t t-esc="widget.get('currency_info').symbol"/>
1945         </t>
1946     </t>
1947 </t>
1948 <t t-name="FieldMany2ManyCheckBoxes">
1949     <t t-foreach="widget.get('records')" t-as="record">
1950         <div>
1951             <t t-if="selected[record[0]]">
1952                 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/>
1953             </t>
1954             <t t-if="! selected[record[0]]">
1955                 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"/>
1956             </t>
1957             <t t-esc="record[1]"/>
1958         </div>
1959     </t>
1960 </t>
1961 <t t-name="X2ManyCounter">
1962     <a href="javascript:void(0)"><t t-esc="text"/></a>
1963 </t>
1964 <t t-name="StatInfo">
1965     <strong><t t-esc="value"/></strong><br/><t t-esc="text"/></t>
1966
1967 </templates>