1 <?xml version="1.0" encoding="UTF-8"?>
4 <templates id="template" xml:space="preserve">
5 <t t-name="EmptyComponent">
9 <div class="oe_loading">
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>
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>
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">
36 <t t-name="CrashManager.warning">
37 <table cellspacing="0" cellpadding="0" border="0" class="oe_dialog_warning">
39 <td class="oe_dialog_icon"><img t-att-src='_s + "/web/static/src/img/warning.png"'/></td>
43 var message = d.message ? d.message : d.error.data.message;
44 d.html_error = context.engine.tools.html_escape(message)
45 .replace(/\n/g, '<br/>');
47 <t t-raw="html_error"/>
53 <t t-name="CrashManager.error">
54 <div class="oe_error_detail">
55 <pre><t t-esc="error.message"/></pre>
57 <pre><t t-esc="error.data.debug"/></pre>
62 <div class="oe_login">
63 <div class="oe_login_bottom"> </div>
64 <div class="oe_login_error_message"/>
65 <div class="oe_login_pane">
66 <div class="oe_login_logo"><img src='/web/static/src/img/logo2.png'/></div>
67 <form action="" method="post">
68 <div class="oe_login_dbpane" >
70 <input name="db" t-att-value="widget.selected_db || ''"/>
74 <li><input name="login" type="text" value="" autofocus="autofocus"/></li>
76 <li><input name="password" type="password" value=""/></li>
77 <li><button name="submit">Log in</button></li>
80 <div class="oe_login_footer">
81 <a href="#" class="oe_login_manage_db">Manage Databases</a> |
82 <a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a>
87 <t t-name="Login.dblist">
89 <t t-foreach="db_list" t-as="db">
90 <t t-if="selected_db === db">
91 <option t-att-value="db" selected="true">
92 <t t-esc="db"/></option>
94 <t t-if="selected_db !== db">
95 <option t-att-value="db"><t t-esc="db"/></option>
101 <t t-name="DatabaseManager">
102 <div class="oe_view_manager_view_form">
103 <div class="oe_form">
104 <form id="db_create" name="create_db_form" style="display: block;">
105 <div class="oe_view_manager oe_view_manager_current">
106 <div class="oe_view_manager_header" style="padding: 8px;">
107 <div class="oe_header_row">
108 <h2 class="oe_view_title">
109 <span class="oe_view_title_text oe_breadcrumb_title">Create a New Database</span>
114 <p class="oe_grey" style="margin: 10px">
115 Fill in this form to create an OpenERP database. You can
116 create databases for different companies or for different
117 goals (testing, production). Once the database is created,
118 you will be able to install your first application.
120 <p class="oe_grey" style="margin: 10px">
121 By default, the master password is 'admin'. This password
122 is required to created, delete dump or restore databases.
124 <table class="db_option_table" style="margin: 10px">
126 <td><label for="super_admin_pwd">Master password:</label></td>
128 <input type="password" name="super_admin_pwd" class="required" value="admin"/>
132 <td><label for="db_name">Select a database name:</label></td>
134 <input type="text" name="db_name" class="required" matches="^[a-zA-Z0-9][a-zA-Z0-9_-]+$" autofocus="true" placeholder="e.g. mycompany"/>
138 <td><label for="demo_data">Load demonstration data:</label></td>
139 <td class="oe_form_group_cell">
140 <span class="oe_form_field oe_form_field_boolean oe_grey" >
141 <input type="checkbox" name="demo_data" />
142 Check this box to evaluate OpenERP.
147 <td><label for="db_lang">Default language:</label></td>
148 <td class="oe_form_field oe_form_field_selection">
149 <select name="db_lang" t-if="widget.lang_list" class="oe_inline">
150 <t t-foreach="widget.lang_list" t-as="lang">
151 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
152 <t t-esc="lang[1]" />
159 <td><label for="create_admin_pwd">Choose a password:</label></td>
160 <td><input type="password" name="create_admin_pwd" class="required" /></td>
163 <td><label for="create_confirm_pwd">Confirm password:</label></td>
164 <td><input type="password" name="create_confirm_pwd" class="required" equalTo="input[name=create_admin_pwd]"/></td>
168 <td><button type="submit" class="oe_button oe_highlight db_create">Create Database</button></td>
172 <form id="db_duplicate" name="duplicate_db_form" style="display: none;">
173 <div class="oe_view_manager oe_view_manager_current">
174 <div class="oe_view_manager_header" style="padding: 8px;">
175 <div class="oe_header_row">
176 <h2 class="oe_view_title">
177 <span class="oe_view_title_text oe_breadcrumb_title">Duplicate Database</span>
179 <button type="submit" class="oe_button oe_highlight db_duplicate">Duplicate</button>
183 <table align="center" class="db_option_table">
185 <td><label for="super_admin_pwd">Master password:</label></td>
186 <td><input type="password" name="super_admin_pwd" class="required" value="admin" /></td>
189 <td><label for="db_original_name">Original database name:</label></td>
190 <td><input type="text" name="db_original_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" autofocus="true"/></td>
193 <td><label for="db_name">New database name:</label></td>
194 <td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" /></td>
198 <form id="db_drop" name="drop_db_form" style="display: none; ">
199 <div class="oe_view_manager oe_view_manager_current">
200 <div class="oe_view_manager_header" style="padding: 8px;">
201 <div class="oe_header_row">
202 <h2 class="oe_view_title">
203 <span class="oe_view_title_text oe_breadcrumb_title">Drop Database</span>
205 <button type="submit" class="oe_button oe_highlight db_drop">Drop</button>
209 <table align="center" class="db_option_table">
211 <td><label for="drop_db">Database:</label></td>
212 <td class="oe_form_field oe_form_field_selection">
213 <select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
214 <t t-foreach="widget.db_list" t-as="db">
215 <option t-att-value="db">
220 <input t-if="!widget.db_list" name="drop_db" class="required" type="text" autofocus="autofocus"/>
224 <td><label for="drop_password">Master Password:</label></td>
225 <td><input type="password" name="drop_pwd" class="required" /></td>
229 <form id="db_backup" name="backup_db_form" target="backup-target" action="/web/database/backup" style="display: none;">
230 <div class="oe_view_manager oe_view_manager_current">
231 <div class="oe_view_manager_header" style="padding: 8px;">
232 <div class="oe_header_row">
233 <h2 class="oe_view_title">
234 <span class="oe_view_title_text oe_breadcrumb_title">Backup Database</span>
236 <button type="submit" class="oe_button oe_highlight db_backup">Backup</button>
240 <input type="hidden" name="token" />
241 <table align="center" class="db_option_table">
243 <td><label for="backup_db">Database:</label></td>
244 <td class="oe_form_field oe_form_field_selection ">
245 <select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
246 <t t-foreach="widget.db_list" t-as="db">
247 <option t-att-value="db">
252 <input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
256 <td><label for="backup_pwd">Master Password:</label></td>
257 <td><input type="password" name="backup_pwd" class="required" /></td>
261 <form id="db_restore" name="restore_db_form" style="display: none; ">
262 <div class="oe_view_manager oe_view_manager_current">
263 <div class="oe_view_manager_header" style="padding: 8px;">
264 <div class="oe_header_row">
265 <h2 class="oe_view_title">
266 <span class="oe_view_title_text oe_breadcrumb_title">Restore Database</span>
268 <button type="submit" class="oe_button oe_highlight db_restore">Restore</button>
272 <table align="center" class="db_option_table">
274 <td><label for="restore_db">File:</label></td>
275 <td><input type="file" name="db_file" class="required" autofocus="autofocus"/></td>
278 <td><label for="restore_pwd">Master Password:</label></td>
279 <td><input type="password" name="restore_pwd" class="required"/></td>
282 <td><label for="new_db">New database name:</label></td>
283 <td><input type="text" name="new_db" class="required"/></td>
287 <form id="db_change_password" name="change_pwd_form" style="display: none;">
288 <div class="oe_view_manager oe_view_manager_current">
289 <div class="oe_view_manager_header" style="padding: 8px;">
290 <div class="oe_header_row">
291 <h2 class="oe_view_title">
292 <span class="oe_view_title_text oe_breadcrumb_title">Change Master Password</span>
294 <button type="submit" class="oe_button oe_highlight db-change-password">Change Password</button>
298 <table align="center" class="db_option_table">
300 <td><label for="old_pwd">Master password:</label></td>
301 <td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
304 <td><label for="new_pwd">New master password:</label></td>
305 <td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
308 <td><label for="confirm_pwd">Confirm new master password:</label></td>
309 <td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
316 <t t-name="DatabaseManager.user_menu">
317 <span class="oe_right">
318 <a id="back-to-login" href="#"><span class="oe_topbar_item oe_topbar_name">Back to Login</span></a>
321 <t t-name="DatabaseManager.menu">
322 <div class="oe_secondary_menu_section">Database Management</div>
323 <ul class="oe_secondary_submenu">
324 <li><a href="#db_create">Create</a></li>
325 <li><a href="#db_duplicate">Duplicate</a></li>
326 <li><a href="#db_drop">Drop</a></li>
327 <li><a href="#db_backup">Backup</a></li>
328 <li><a href="#db_restore">Restore</a></li>
329 <li><a href="#db_change_password">Password</a></li>
333 <t t-name="ChangePassword">
334 <form name="change_password_form" method="POST">
335 <div class="oe_form">
336 <table align="center">
338 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="old_pwd" class="oe_form_label">Old Password:</label></td>
339 <td class="oe_form_group_cell"><input type="password" name="old_pwd"
340 minlength="1" autofocus="autofocus"/></td>
343 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="new_password" class="oe_form_label">New Password:</label></td>
344 <td class="oe_form_group_cell"><input type="password" name="new_password"
348 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="confirm_pwd" class="oe_form_label">Confirm New Password:</label></td>
349 <td class="oe_form_group_cell"><input type="password" name="confirm_pwd"
353 <td colspan="2" align="right">
354 <button class='oe_button oe_form_button'>Change Password</button>
355 <span class="oe_fade oe_form_button"> or </span>
356 <button type="button" class="oe_button oe_form_button_cancel oe_form_button oe_link" href="javascript:void(0)"><span>Cancel</span></button>
365 <ul class="oe_menu" t-if="widget.data">
366 <li t-foreach="widget.data.data.children" t-as="menu">
367 <t t-call="Menu.link"/>
369 <li class="oe_menu_more_container" style="display: none;">
370 <span class="oe_topbar_item oe_menu_more_link oe_dropdown_toggle oe_dropdown_arrow">
372 <ul class="oe_menu_more oe_dropdown_menu"/>
377 <t t-name="Menu.secondary">
378 <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
379 <t t-foreach="menu.children" t-as="menu">
380 <div class="oe_secondary_menu_section">
381 <t t-esc="menu.name"/>
383 Shall the section be still clickable ?
384 <t t-call="Menu.link"/>
387 <t t-call="Menu.secondary.submenu"/>
391 <t t-name="Menu.secondary.submenu">
392 <ul t-if="menu.children.length" class="oe_secondary_submenu">
393 <li t-foreach="menu.children" t-as="menu">
394 <t t-call="Menu.link"/>
395 <!--<span class="oe_menu_label">8</span>-->
396 <t t-call="Menu.secondary.submenu"/>
400 <t t-name="Menu.link">
401 <a t-attf-href="#menu_id=#{menu.id}&action=#{menu.action ? menu.action.split(',')[1] : ''}"
402 t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
403 t-att-data-menu="menu.id"
404 t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
405 t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
406 <span class="oe_menu_text">
407 <t t-esc="menu.name"/>
412 <t t-name="Menu.needaction_counter">
413 <div class="oe_tag oe_tag_dark oe_menu_counter">
414 <t t-if="widget.needaction_counter > 99"> 99+ </t>
415 <t t-if="widget.needaction_counter <= 99"> <t t-esc="widget.needaction_counter"/> </t>
419 <t t-name="UserMenu">
420 <span class="oe_user_menu oe_topbar_item oe_dropdown_toggle oe_dropdown_arrow">
421 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
422 <span class="oe_topbar_name"/>
423 <ul class="oe_dropdown_menu">
424 <li><a href="#" data-menu="settings">Preferences</a></li>
425 <li><a href="#" data-menu="account">My OpenERP.com account</a></li>
426 <li><a href="#" data-menu="about">About OpenERP</a></li>
427 <li><a href="#" data-menu="help">Help</a></li>
428 <li><a href="#" data-menu="logout">Log out</a></li>
432 <t t-name="UserMenu.about">
434 <div class="oe_about">
435 <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>
436 <img class="oe_logo" src="/web/static/src/img/logo2.png"/>
437 <h3>Version <t t-esc="version_info.server_version"/></h3>
439 <div class="oe_bottom">
440 <p>Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
441 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.</p>
442 <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>
443 <p>For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a></p>
449 <t t-name="WebClient">
450 <div class="openerp openerp_webclient_container">
451 <table class="oe_webclient">
453 <td colspan="2" class="oe_topbar">
454 <div class="oe_menu_placeholder"/>
455 <div class="oe_user_menu_placeholder"/>
456 <div class="oe_systray"/>
460 <td class="oe_leftbar" valign="top">
461 <t t-set="debug" t-value="__debug__ ? '&debug' : ''"/>
462 <a class="oe_logo" t-attf-href="/?#{debug}">
463 <span class="oe_logo_edit">Edit Company data</span>
464 <img t-att-src='widget.session.url("/web/binary/company_logo")'/>
466 <div class="oe_secondary_menus_container"/>
467 <div class="oe_footer">
468 Powered by <a href="http://www.openerp.com" target="_blank"><span>OpenERP</span></a>
471 <td class="oe_application">
477 <t t-name="WebClient.timezone_notification">
478 <div class="oe_webclient_timezone_notification">
479 <p>Your user's preference timezone does not match your browser timezone:</p>
482 <dt>User's timezone</dt>
483 <dd><t t-esc="user_timezone"/> (<t t-esc="user_offset"/>)</dd>
484 <dt>Browser's timezone</dt>
485 <dd><t t-esc="browser_offset"/></dd>
488 <p><a href="#">Click here to change your user's timezone.</a></p>
491 <t t-name="WebClient.timezone_systray">
492 <div class="oe_topbar_item oe_timezone_systray" title="Timezone mismatch">
493 <span class="ui-icon ui-state-error ui-icon-alert"/>
497 <t t-name="EmbedClient">
498 <div class="openerp">
499 <div class="oe_application"></div>
503 <t t-name="ViewManager">
504 <div class="oe_view_manager">
505 <table class="oe_view_manager_header">
510 <tr class="oe_header_row oe_header_row_top">
512 <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
513 <span class="oe_view_title_text oe_breadcrumb_title"/>
517 <div class="oe_view_manager_view_search" t-opentag="true"/>
520 <tr class="oe_header_row">
522 <div class="oe_view_manager_buttons"/>
525 <div class="oe_view_manager_sidebar"/>
528 <ul class="oe_view_manager_switch oe_button_group oe_right">
529 <t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
531 <a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type"
532 t-att-title="view.button_label"/>
536 <div class="oe_view_manager_pager oe_right"/>
541 <div class="oe_view_manager_body">
542 <t t-foreach="widget.views_src" t-as="view">
543 <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
549 <t t-name="ViewManagerAction" t-extend="ViewManager">
550 <t t-jquery="h2.oe_view_title" t-operation="before">
551 <select t-if="widget.session.debug" class="oe_debug_view"/>
554 <t t-name="ViewManagerDebug">
555 <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
556 <t t-if="view_manager.active_view === 'form'">
557 <option value="perm_read">View Log (perm_read)</option>
558 <option value="toggle_layout_outline">Toggle Form Layout Outline</option>
559 <option value="set_defaults">Set Defaults</option>
561 <option value="tests">JS Tests</option>
562 <option value="fields">View Fields</option>
563 <option value="fvg">Fields View Get</option>
564 <option value="manage_filters">Manage Filters</option>
565 <t t-if="view_manager.session.uid === 1">
566 <option value="translate">Technical translation</option>
567 <option value="manage_views">Manage Views</option>
568 <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>
569 <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>
570 <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>
571 <option value="edit_workflow">Edit Workflow</option>
572 <option value="print_workflow">Print Workflow</option>
575 <t t-name="ViewManagerDebugViewLog">
576 <div class="oe_debug_view_log">
578 <span><t t-esc="perm.id"/></span>
580 <label>XML ID:</label>
581 <span><t t-esc="perm.xmlid"/></span>
583 <label>Creation User:</label>
584 <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
586 <label>Creation Date:</label>
587 <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
589 <label>Latest Modification by:</label>
590 <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
592 <label>Latest Modification Date:</label>
593 <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
596 <t t-name="ViewPager">
597 <div class="oe_pager_value">
598 <t t-raw="__content__"/>
600 <ul class="oe_pager_group">
602 <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
603 <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
607 <a class="oe_i" type="button" data-pager-action="previous">(</a>
610 <a class="oe_i" type="button" data-pager-action="next">)</a>
613 <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
614 <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
621 <div class="oe_sidebar">
622 <t t-foreach="widget.sections" t-as="section">
623 <div class="oe_form_dropdown_section">
624 <button class="oe_dropdown_toggle oe_dropdown_arrow">
625 <t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
626 <t t-esc="section.label"/>
628 <ul class="oe_dropdown_menu">
629 <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
630 <t t-if="section.name == 'files'">
631 <t t-set="item.title">
632 <b>Attachment : </b><br/>
633 <t t-raw="item.name"/>
635 <t t-if="item.create_uid and item.create_uid[0]" t-set="item.title">
636 <t t-raw="item.title"/><br/>
637 <b>Created by : </b><br/>
638 <t t-raw="item.create_uid[1] + ' ' + item.create_date"/>
640 <t t-if="item.create_uid and item.write_uid and item.create_uid[0] != item.write_uid[0]" t-set="item.title">
641 <t t-raw="item.title"/><br/>
642 <b>Modified by : </b><br/>
643 <t t-raw="item.write_uid[1] + ' ' + item.write_date"/>
646 <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">
647 <t t-raw="item.label"/>
649 <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>
651 <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
652 <t t-call="HiddenInputFile">
653 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
654 <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
655 <input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
656 <input type="hidden" name="id" t-att-value="widget.model_id"/>
657 <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
667 <t t-name="TreeView">
668 <select t-if="toolbar" style="width: 30%">
670 <table class="oe_tree_table oe-treeview-table">
673 <th t-foreach="fields_view" t-as="field"
674 t-if="!field.attrs.modifiers.tree_invisible"
675 class="treeview-header">
676 <t t-esc="field_value.attrs.string || fields[field.attrs.name].string" />
684 <tr t-name="TreeView.rows"
685 t-foreach="records" t-as="record"
686 t-att-id="'treerow_' + record.id"
687 t-att-data-id="record.id" t-att-data-level="level + 1"
688 t-att-data-row-parent-id="row_parent_id">
689 <t t-set="children" t-value="record[children_field]"/>
690 <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
691 <t t-set="rank" t-value="'oe-treeview-first'"/>
692 <t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>
694 <td t-foreach="fields_view" t-as="field"
695 t-if="!field.attrs.modifiers.tree_invisible"
696 t-att-data-id="record.id"
697 t-att-style="color_for(record) + style "
698 t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
700 <span t-if="!field.attrs.modifiers.invisible" >
701 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
704 <t t-set="class" t-value="'treeview-td'"/>
705 <t t-set="rank" t-value="''"/>
706 <t t-set="style" t-value="''"/>
710 <table t-name="ListView" class="oe_list_content">
711 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
713 <tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
714 <th t-att-colspan="columns_count">
715 <div class="oe_list_buttons"/>
716 <div class="oe_list_sidebar"/>
717 <div class="oe_list_pager"/>
720 <tr t-if="options.header" class="oe_list_header_columns">
721 <t t-foreach="columns" t-as="column">
722 <th t-if="column.meta">
723 <t t-esc="column.string"/>
726 <th t-if="options.selectable" width="1" >
727 <input type="checkbox" class="oe_list_record_selector"/>
729 <t t-foreach="columns" t-as="column">
730 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
731 t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}"><div>
732 <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
735 <th t-if="options.deletable" class="oe_list_record_delete" width="13px"/>
740 <td t-if="options.selectable"/>
741 <td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
742 t-att-data-field="column.id" t-att-title="column.label">
744 <td t-if="options.deletable" class="oe_list_record_delete"/>
748 <t t-name="ListView.buttons">
749 <div class="oe_list_buttons">
750 <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
751 <button type="button" class="oe_button oe_list_add oe_highlight">
752 <t t-esc="widget.options.addable"/>
757 <t t-name="ListView.pager">
758 <div class="oe_list_pager" t-att-colspan="widget.columns_count">
759 <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
760 <span class="oe_list_pager_state">
765 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
766 <t t-call="ListView.row">
767 <t t-set="record" t-value="records.at(index)"/>
770 <tr t-name="ListView.row"
771 t-att-data-id="record.get('id')"
772 t-att-style="view.style_for(record)">
773 <t t-set="asData" t-value="record.toForm().data"/>
774 <t t-foreach="columns" t-as="column">
775 <td t-if="column.meta"> </td>
777 <th t-if="options.selectable" class="oe_list_record_selector" width="1">
778 <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
779 <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
780 <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
782 <t t-foreach="columns" t-as="column">
783 <t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/>
784 <t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
785 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
786 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' : ''}"
787 t-att-data-field="column.id"
788 ><t t-raw="render_cell(record, column)"/></td>
790 <td t-if="options.deletable" class='oe_list_record_delete' width="13px">
791 <button type="button" name="delete" class="oe_i">d</button>
794 <t t-extend="ListView.buttons">
795 <t t-jquery="button.oe_list_add" t-operation="after">
796 <button class="oe_button oe_list_save oe_highlight"
797 type="button">Save</button>
798 <span class="oe_alternative">
799 <span class="oe_fade">or</span>
800 <a href="#" class="oe_bold oe_list_discard">Discard</a>
804 <button t-name="ListView.row.button" type="button"
805 t-att-title="widget.string" t-att-disabled="disabled || undefined"
806 t-att-class="disabled ? 'oe_list_button_disabled' : undefined"
807 ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
808 t-att-alt="widget.string"/></button>
809 <t t-extend="ListView.row">
810 <!-- adds back padding to row being rendered after edition, if necessary
811 (if not deletable add back padding), otherwise the row being added is
814 <t t-jquery="> :last" t-operation="after">
815 <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
819 <t t-name="FormView">
820 <div class="oe_formview">
821 <div class="oe_form_buttons"/>
822 <div class="oe_form_sidebar"/>
823 <div class="oe_form_pager"/>
824 <div class="oe_form_container"/>
827 <div t-name="FormView.buttons" class="oe_form_buttons">
828 <t t-if="widget.options.action_buttons !== false">
829 <span class="oe_form_buttons_view">
830 <!-- required for the bounce effect on button -->
831 <div t-if="widget.is_action_enabled('edit')" style="display: inline-block;">
832 <button type="button" class="oe_button oe_form_button_edit" accesskey="E">Edit</button>
834 <button t-if="widget.is_action_enabled('create')"
835 type="button" class="oe_button oe_form_button_create" accesskey="C">Create</button>
837 <span class="oe_form_buttons_edit">
838 <button type="button" class="oe_button oe_form_button_save oe_highlight" accesskey="S">Save</button>
839 <span class="oe_fade">or</span>
840 <a href="#" class="oe_bold oe_form_button_cancel" accesskey="D">Discard</a>
844 <t t-name="FormView.pager">
845 <div class="oe_form_pager">
846 <t t-if="widget.options.pager !== false" t-call="ViewPager">
847 <span class="oe_form_pager_state"></span>
851 <form t-name="FormView.set_default">
852 <t t-set="args" t-value="widget.dialog_options.args"/>
853 <table style="width: 100%">
856 <label for="formview_default_fields"
857 class="oe_label oe_align_right">
861 <td class="oe_form_required">
862 <select id="formview_default_fields">
864 <option t-foreach="args.fields" t-as="field"
865 t-att-value="field.name">
866 <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
871 <tr t-if="args.conditions.length">
873 <label for="formview_default_conditions"
874 class="oe_label oe_align_right">
879 <select id="formview_default_conditions">
881 <option t-foreach="args.conditions" t-as="cond"
882 t-att-value="cond.name + '=' + cond.value">
883 <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
890 <input type="radio" id="formview_default_self"
891 value="self" name="scope" checked="checked"/>
892 <label for="formview_default_self" class="oe_label"
893 style="display: inline;">
897 <input type="radio" id="formview_default_all"
898 value="all" name="scope"/>
899 <label for="formview_default_all" class="oe_label"
900 style="display: inline;">
908 <t t-name="FormRenderingForm">
909 <div t-attf-class="#{classnames}">
912 <t t-name="FormRenderingSheet">
913 <div class="oe_form_sheetbg">
914 <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
918 <t t-name="FormRenderingGroup">
919 <t t-if="string" t-call="FormRenderingSeparator"/>
920 <table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
922 <t t-name="FormRenderingNotebook">
923 <div class="oe_clear">
924 <ul t-attf-class="oe_notebook #{classnames}">
925 <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
926 <a t-attf-href="##{page.id}" t-att-accesskey="page.accesskey">
927 <t t-esc="page.string"/>
933 <t t-name="FormRenderingNotebookPage">
934 <div t-attf-class="oe_notebook_page #{classnames}" t-att-id="id">
937 <t t-name="FormRenderingSeparator">
938 <div t-attf-class="oe_horizontal_separator oe_clear #{classnames}">
942 <t t-name="FormRenderingLabel">
943 <label t-att-for="_for"
945 t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
952 <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
954 <t t-name="WidgetLabel.tooltip">
955 <div class="oe_tooltip_string" t-if="widget.string">
956 <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
958 <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>
959 <ul t-if="debug" class="oe_tooltip_technical">
960 <li data-item="field" t-if="widget.name">
961 <span class="oe_tooltip_technical_title">Field:</span>
962 <t t-esc="widget.name"/>
964 <li data-item="object" t-if="widget.view and widget.view.fields_view">
965 <span class="oe_tooltip_technical_title">Object:</span>
966 <t t-esc="widget.view.fields_view.model"/>
968 <li data-item="type" t-if="widget.field">
969 <span class="oe_tooltip_technical_title">Type:</span>
970 <t t-esc="widget.field.type"/>
972 <li t-if="widget.node.attrs.widget" data-item="widget">
973 <span class="oe_tooltip_technical_title">Widget:</span>
974 <t t-esc="widget.node.attrs.widget"/>
976 <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
977 <span class="oe_tooltip_technical_title">Size:</span>
978 <t t-esc="widget.node.attrs.size || widget.field.size"/>
980 <li t-if="widget.node.attrs.context" data-item="context">
981 <span class="oe_tooltip_technical_title">Context:</span>
982 <t t-esc="widget.node.attrs.context"/>
984 <li t-if="widget.node.attrs.domain" data-item="domain">
985 <span class="oe_tooltip_technical_title">Domain:</span>
986 <t t-esc="widget.node.attrs.domain"/>
988 <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
989 <span class="oe_tooltip_technical_title">Modifiers:</span>
990 <t t-esc="widget.node.attrs.modifiers"/>
992 <li t-if="widget.field and widget.field.change_default" data-item="change_default">
993 <span class="oe_tooltip_technical_title">Change default:</span>
996 <li t-if="widget.node.attrs.on_change" data-item="on_change">
997 <span class="oe_tooltip_technical_title">On change:</span>
998 <t t-esc="widget.node.attrs.on_change"/>
1000 <li t-if="widget.field and widget.field.relation" data-item="relation">
1001 <span class="oe_tooltip_technical_title">Relation:</span>
1002 <t t-esc="widget.field.relation"/>
1004 <li t-if="widget.field and widget.field.selection" data-item="selection">
1005 <span class="oe_tooltip_technical_title">Selection:</span>
1007 <li t-foreach="widget.field.selection" t-as="option">
1008 [<t t-esc="option[0]"/>]
1009 <t t-if="option[1]"> - </t>
1010 <t t-esc="option[1]"/>
1016 <t t-name="FieldChar">
1017 <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
1018 <t t-if="!widget.get('effective_readonly')">
1019 <input t-att-type="widget.password ? 'password' : 'text'"
1020 t-att-id="widget.id_for_label"
1021 t-att-tabindex="widget.node.attrs.tabindex"
1022 t-att-autofocus="widget.node.attrs.autofocus"
1023 t-att-placeholder="widget.node.attrs.placeholder"
1024 t-att-maxlength="widget.field.size"
1025 /><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"/>
1027 <t t-if="widget.get('effective_readonly')">
1028 <span class="oe_form_char_content"></span>
1032 <t t-name="FieldEmail">
1033 <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
1034 <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
1035 <t t-if="!widget.get('effective_readonly')">
1038 t-att-id="widget.id_for_label"
1039 t-att-tabindex="widget.node.attrs.tabindex"
1040 t-att-autofocus="widget.node.attrs.autofocus"
1041 t-att-placeholder="widget.node.attrs.placeholder"
1042 t-att-maxlength="widget.field.size"
1048 <t t-name="FieldUrl" t-extend="FieldEmail">
1049 <t t-jquery="span:first">
1050 this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
1053 <t t-name="FieldText">
1054 <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
1055 <t t-if="!widget.get('effective_readonly')">
1057 t-att-name="widget.name"
1059 t-att-tabindex="widget.node.attrs.tabindex"
1060 t-att-autofocus="widget.node.attrs.autofocus"
1061 t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
1062 t-att-maxlength="widget.field.size"
1063 ></textarea><img class="oe_field_translate oe_input_icon"
1064 t-if="widget.field.translate and !widget.get('effective_readonly')"
1065 t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
1068 <t t-if="widget.get('effective_readonly')">
1069 <span class="oe_form_text_content"></span>
1073 <t t-name="FieldTextHtml">
1074 <div t-att-class="'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
1075 t-att-style="widget.node.attrs.style">
1076 <t t-if="! widget.get('effective_readonly')">
1081 <t t-name="web.datepicker">
1083 <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
1084 <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
1086 t-att-name="widget.name"
1087 t-att-placeholder="placeholder"
1088 class="oe_datepicker_master"
1089 /><img class="oe_input_icon oe_datepicker_trigger" draggable="false"
1090 t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
1091 title="Select date" width="16" height="16" border="0"/>
1094 <t t-name="FieldDate">
1095 <span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
1097 <t t-name="FieldDatetime">
1098 <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
1100 <t t-name="FieldSelection">
1101 <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
1102 <select t-if="!widget.get('effective_readonly')"
1103 t-att-name="widget.name"
1104 t-att-tabindex="widget.node.attrs.tabindex"
1105 t-att-autofocus="widget.node.attrs.autofocus"
1106 t-att-id="widget.id_for_label">
1107 <t t-foreach="widget.values" t-as="option">
1109 <t t-esc="widget.node.attrs.placeholder" t-if="option[0] === false and widget.node.attrs.placeholder"/>
1110 <t t-esc="option[1]" t-if="option[0] !== false"/>
1116 <t t-name="FieldRadio">
1117 <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">
1118 <span t-if="!widget.get('effective_readonly')">
1119 <t t-if="widget.options.horizontal">
1120 <t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/>
1121 <t t-if="!widget.options.no_radiolabel">
1122 <t t-foreach="widget.selection" t-as="selection">
1123 <label t-att-for="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></label>
1127 <t t-foreach="widget.selection" t-as="selection">
1128 <div t-att-style="'width: ' + width + '%;'">
1129 <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>
1133 <t t-if="!widget.options.horizontal">
1134 <t t-foreach="widget.selection" t-as="selection">
1136 <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>
1141 <span t-if="widget.get('effective_readonly')" class="oe_radio_readonly"><t t-esc="widget.get('value')[1]"/></span>
1144 <t t-name="FieldMany2One">
1145 <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
1146 <t t-if="widget.get('effective_readonly')">
1147 <a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
1148 <span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
1149 <span class="oe_form_m2o_follow"/>
1151 <t t-if="!widget.get('effective_readonly')">
1152 <a t-if="! widget.options.no_open" href="#" tabindex="-1"
1153 class="oe_m2o_cm_button oe_e" draggable="false">/</a>
1156 t-att-id="widget.id_for_label"
1157 t-att-tabindex="widget.node.attrs.tabindex"
1158 t-att-autofocus="widget.node.attrs.autofocus"
1159 t-att-placeholder="widget.node.attrs.placeholder"
1161 <span class="oe_m2o_drop_down_button">
1162 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/>
1168 <t t-name="Many2OneButton">
1169 <span class="oe_form_field">
1172 <t t-name="Many2OneButton.cell"
1173 ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png" t-att-alt="widget.string" width="16" height="16"/>
1175 <t t-name="FieldMany2ManyTags">
1176 <div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
1177 <t t-if="! widget.get('effective_readonly')">
1178 <textarea rows="1" style="width: 100%"
1179 t-att-placeholder="widget.node.attrs.placeholder"></textarea>
1183 <t t-name="FieldMany2ManyTag">
1184 <t t-set="i" t-value="0"/>
1185 <t t-foreach="elements" t-as="el">
1186 <span class="oe_tag" t-att-data-index="i">
1189 <t t-set="i" t-value="i + 1"/>
1192 <t t-name="FieldReference">
1193 <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
1195 <td t-attf-class="oe_form_frame_cell oe_form_selection">
1196 <span t-attf-class="oe_form_view_reference_selection"/>
1198 <td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
1199 <span t-attf-class="oe_form_view_reference_m2o"/>
1204 <t t-name="FieldBoolean">
1205 <span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
1206 <input type="checkbox"
1207 t-att-id="widget.id_for_label"
1208 t-att-name="widget.name"
1209 t-att-tabindex="widget.node.attrs.tabindex"
1210 t-att-autofocus="widget.node.attrs.autofocus"
1211 class="field_boolean"/>
1214 <t t-name="FieldProgressBar">
1215 <span class="oe_form_field oe_form_field_progressbar" t-att-style="widget.node.attrs.style">
1219 <t t-name="FieldStatus">
1220 <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"/>
1222 <t t-name="FieldStatus.content">
1223 <t t-foreach="widget.selection.unfolded" t-as="i">
1224 <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1225 <span class="label"><t t-esc="i[1]"/></span>
1226 <!-- are you mit ? -->
1227 <span class="arrow"><span></span></span>
1230 <t t-if="widget.selection.folded.length">
1231 <li t-att-class="value_folded ? 'oe_active oe_folded' : 'oe_folded'">
1232 <span class="label"> ... </span>
1234 <t t-foreach="widget.selection.folded" t-as="i">
1235 <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1236 <span class="label"><t t-esc="i[1]"/></span>
1243 <t t-name="FieldBinaryImage">
1244 <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
1245 <div class="oe_form_field_image_controls oe_edit_only">
1246 <t t-call="HiddenInputFile">
1247 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1250 <div class="oe_form_binary_progress" style="display: none">
1251 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1252 <b>Uploading ...</b>
1257 <t t-name="FieldBinaryImage-img">
1258 <img t-att-src='url'
1259 t-att-border="widget.readonly ? 0 : 1"
1260 t-att-name="widget.name"
1261 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1262 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1265 <t t-name="FieldBinaryFile">
1266 <t t-if="!widget.get('effective_readonly')">
1267 <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
1270 <input type="text" size="1" readonly="readonly"
1271 t-att-name="widget.name"
1272 t-att-tabindex="widget.node.attrs.tabindex"
1273 t-att-autofocus="widget.node.attrs.autofocus"
1274 class="field_binary"
1277 <td class="oe_form_binary" nowrap="true">
1278 <table cellspacing="0" cellpadding="0" border="0">
1281 <t t-call="HiddenInputFile">
1282 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1283 <t t-set="fileupload_style" t-translation="off">width: 83px;</t>
1284 <button class="oe_button oe_field_button" type="button">
1285 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1291 <a class="oe_form_binary_file_save_data">
1292 <button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
1293 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1294 <span>Save As</span>
1299 <button class="oe_button oe_form_binary_file_clear" type="button" title="Clear">
1300 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1307 <td class="oe_form_binary_progress" style="display: none" nowrap="true">
1308 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1309 <b>Uploading ...</b>
1314 <t t-if="widget.get('effective_readonly')">
1315 <span t-att-style="widget.node.attrs.style">
1316 <a href="javascript:void(0)" class="oe_form_uri"/>
1320 <t t-name="HiddenInputFile">
1321 <div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
1322 <form class="oe_form_binary_form" t-att-target="fileupload_id"
1323 method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
1324 <input type="hidden" name="session_id" value="" t-if="widget.session.override_session"/>
1325 <input type="hidden" name="callback" t-att-value="fileupload_id"/>
1326 <t t-raw="__content__"/>
1327 <input type="file" class="oe_form_binary_file" name="ufile" t-if="widget.widget!='image'"/>
1328 <input type="file" class="oe_form_binary_file" name="ufile" accept="image/*" t-if="widget.widget=='image'"/>
1330 <iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
1333 <t t-name="FieldBinaryFileUploader.files">
1334 <div class="oe_attachments">
1335 <t t-if="!widget.get('effective_readonly')">
1336 <t t-foreach="widget.get('value')" t-as="id">
1337 <t t-set="file" t-value="widget.data[id]"/>
1338 <div class="oe_attachment">
1339 <span t-if="(file.upload or file.percent_loaded<100)" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}" t-attf-name="{file.name || file.filename}">
1340 <span class="oe_fileuploader_in_process">...Upload in progress...</span>
1341 <t t-raw="file.name || file.filename"/>
1343 <a t-if="(!file.upload or file.percent_loaded>=100)" t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1344 <t t-raw="file.name || file.filename"/>
1346 <t t-if="(!file.upload or file.percent_loaded>=100)">
1347 <a class="oe_right oe_delete oe_e" title="Delete this file" t-attf-data-id="{file.id}">[</a>
1352 <t t-if="widget.get('effective_readonly')">
1353 <t t-foreach="widget.get('value')" t-as="id">
1354 <t t-set="file" t-value="widget.data[id]"/>
1356 <a t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1357 <t t-raw="file.name || file.filename"/>
1364 <t t-name="FieldBinaryFileUploader">
1365 <div t-att-style="widget.node.attrs.style" t-attf-class="oe_fileupload #{widget.node.attrs.class ? widget.node.attrs.class :''}">
1366 <div class="oe_placeholder_files"/>
1367 <div class="oe_add" t-if="!widget.get('effective_readonly')">
1368 <!-- uploader of file -->
1369 <button class="oe_attach"><span class="oe_e">'</span></button>
1370 <span class='oe_attach_label'><t t-esc="widget.string"/></span>
1371 <t t-call="HiddenInputFile">
1372 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1373 <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
1374 <input type="hidden" name="model" t-att-value="widget.view.model"/>
1375 <input type="hidden" name="id" value="0"/>
1376 <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1381 <t t-name="WidgetButton">
1382 <button type="button" class="oe_button oe_form_button"
1383 t-att-style="widget.node.attrs.style"
1384 t-att-tabindex="widget.node.attrs.tabindex"
1385 t-att-autofocus="widget.node.attrs.autofocus"
1386 t-att-accesskey="widget.node.attrs.accesskey">
1387 <img t-if="widget.node.attrs.icon" t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
1388 <span t-if="widget.string"><t t-esc="widget.string"/></span>
1391 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1392 <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1393 <div class="oe_tooltip_string" t-if="debug || widget.string">
1396 <t t-if="widget.string">: </t>
1397 <t t-if="!widget.string"> (no string)</t>
1399 <t t-esc="widget.string"/>
1402 <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1403 <li t-if="widget.node.attrs.special" data-item="special">
1404 <span class="oe_tooltip_technical_title">Special:</span>
1405 <t t-esc="widget.node.attrs.special"/>
1407 <t t-set="button_type" t-value="widget.node.attrs.type"/>
1408 <li t-if="button_type" data-item="button_type">
1409 <span class="oe_tooltip_technical_title">Button Type:</span>
1410 <t t-esc="button_type"/>
1412 <li t-if="button_type === 'object'" data-item="button_method">
1413 <span class="oe_tooltip_technical_title">Method:</span>
1414 <t t-esc="widget.node.attrs.name"/>
1416 <li t-if="button_type === 'action'" data-item="button_action">
1417 <span class="oe_tooltip_technical_title">Action ID:</span>
1418 <t t-esc="widget.node.attrs.name"/>
1423 <t t-name="AbstractFormPopup.render">
1425 <table style="width:100%">
1426 <tr style="width:100%">
1427 <td style="width:100%">
1428 <div class="oe_popup_search" style="width:100%"></div>
1431 <tr style="width:100%">
1432 <td style="width:100%">
1433 <div class="oe_popup_list_pager"></div>
1436 <tr style="width:100%">
1437 <td style="width:100%">
1438 <div class="oe_popup_list" style="width:100%"></div>
1442 <div class="oe_popup_form" style="width:100%"></div>
1445 <t t-name="SelectCreatePopup.search.buttons">
1446 <t t-if="! widget.options.disable_multiple_selection">
1447 <button type="button" class="oe_button oe_selectcreatepopup-search-select oe_highlight" disabled="disabled">Select</button>
1449 <button type="button" class="oe_button oe_selectcreatepopup-search-create">Create</button>
1450 or <a class="oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
1452 <t t-name="AbstractFormPopup.buttons">
1453 <t t-if="! readonly">
1454 <t t-if="! multi_select">
1455 <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save</button>
1457 <t t-if="multi_select">
1458 <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save & Close</button>
1459 <button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save & New</button>
1463 <a class="oe_button oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">
1464 <t t-if="! readonly">
1473 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1474 <t t-jquery=".oe-view-manager-header">
1475 this.attr('t-if', 'views.length != 1');
1478 <t t-name="One2Many.formview" t-extend="FormView">
1479 <t t-jquery=".oe_form_buttons" t-operation="inner">
1480 <button type="button" class="oe_button oe_form_button_create">Add</button>
1483 <t t-name="One2Many.listview" t-extend="ListView">
1484 <t t-jquery="thead.ui-widget-header > tr:first">
1485 this.removeAttr('t-if');
1488 <t t-jquery="td.oe-actions">
1489 this.removeAttr('t-if');
1491 <t t-jquery="td.oe-actions" t-operation="prepend">
1492 <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1496 <div t-name="SearchView" class="oe_searchview">
1497 <div class="oe_searchview_facets"/>
1498 <div class="oe_searchview_clear"/>
1499 <div class="oe_searchview_unfold_drawer" title="Advanced Search..."/>
1500 <div class="oe_searchview_drawer"/>
1501 <button type="button" class="oe_searchview_search"
1502 title="Search Again">Search</button>
1505 <div t-name="SearchView.InputView"
1506 class="oe_searchview_input"
1507 contenteditable="true"
1509 <!-- tabindex: makes div focusable -->
1510 <div t-name="SearchView.FacetView"
1511 class="oe_tag oe_tag_dark oe_searchview_facet"
1513 ><span class="oe_facet_remove">x</span
1514 ><span class="oe_facet_category oe_i" t-if="widget.model.has('icon')">
1515 <t t-esc="widget.model.get('icon')"/>
1517 ><span class="oe_facet_category" t-if="!widget.model.has('icon')">
1518 <t t-esc="widget.model.get('category')"/>
1519 </span ><span class="oe_facet_values"
1521 <span t-name="SearchView.FacetView.Value" class="oe_facet_value">
1522 <t t-esc="widget.model.get('label')"/>
1524 <t t-name="SearchView.managed-filters">
1525 <option class="oe_search_filters_title" value="">Filters</option>
1526 <optgroup label="-- Filters --">
1527 <t t-foreach="filters" t-as="filter">
1528 <option t-attf-value="get:#{filter_index}"
1529 t-att-disabled="filter.disabled and 'disabled'"
1530 t-att-title="filter.disabled and disabled_filter_message">
1531 <t t-esc="filter.name"/>
1535 <optgroup label="-- Actions --">
1536 <option value="advanced_filter">Add Advanced Filter</option>
1537 <option value="save_filter">Save Filter</option>
1538 <option value="manage_filters">Manage Filters</option>
1541 <t t-name="SearchView.managed-filters.add">
1544 <input type="text"/>
1545 <p>(Any existing filter with the same name will be replaced)</p>
1548 <t t-name="SearchView.render_lines">
1549 <table class="oe_search_render_line" border="0" cellspacing="0" cellpadding="0"
1550 t-foreach="lines" t-as="line">
1552 <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1553 <t t-raw="widget.render(defaults)"/>
1558 <button t-name="SearchView.filter" type="button"
1559 t-att-id="element_id"
1560 t-att-title="attrs.help"
1561 t-att-class="classes.join(' ')"
1563 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1564 <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1565 <br t-if="attrs.string"/>
1566 <t t-esc="attrs.string"/>
1568 <ul t-name="SearchView.filters">
1569 <li t-foreach="widget.filters" t-as="filter" t-if="!filter.visible || filter.visible()"
1570 t-att-title="filter.attrs.string ? filter.attrs.help : undefined"
1571 t-att-data-index="filter_index">
1572 <t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
1575 <t t-name="SearchView.filters.facet">
1576 <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1578 <t t-set="val" t-value="facet.get('json')"/>
1580 <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1581 <t t-esc="facet.get('value')"/>
1583 <t t-if="val instanceof Array">
1584 <div class="search_facet_input_container"
1585 t-foreach="facet.get('json')" t-as="filter">
1586 <t t-esc="filter.attrs.string || filter.attrs.name"/>
1590 <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1592 <t t-name="SearchView.field">
1593 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1594 t-att-title="attrs.help"
1595 t-att-for="element_id"
1596 t-att-style="style">
1597 <t t-esc="attrs.string || attrs.name"/>
1598 <span t-if="attrs.help">?</span>
1600 <div t-att-style="style">
1601 <input type="text" size="15" t-att-name="attrs.name"
1602 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1603 t-att-id="element_id"
1604 t-att-value="defaults[attrs.name] || ''"/>
1605 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1608 <t t-name="SearchView.date">
1609 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1610 t-att-title="attrs.help"
1611 t-att-for="element_id"
1612 t-att-style="style">
1613 <t t-esc="attrs.string || attrs.name"/>
1614 <span t-if="attrs.help">?</span>
1616 <div t-att-style="style">
1617 <span t-att-id="element_id"/>
1618 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1621 <t t-name="SearchView.field.selection">
1622 <label t-att-title="attrs.help"
1623 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1624 t-att-for="element_id"
1625 t-att-style="style">
1626 <t t-esc="attrs.string || attrs.name"/>
1627 <span t-if="attrs.help">?</span>
1629 <div t-att-style="style">
1630 <select t-att-name="attrs.name" t-att-id="element_id"
1631 t-att-autofocus="attrs.default_focus === '1' || undefined">
1632 <option t-if="prepend_empty"/>
1633 <t t-foreach="attrs.selection" t-as="option">
1634 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1635 <option t-if="selected"
1636 t-attf-selected="selected"
1637 t-att-value="option_index">
1638 <t t-esc="option[1]"/>
1640 <option t-if="!selected" t-att-value="option_index">
1641 <t t-esc="option[1]"/>
1645 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1648 <t t-name="SearchView.util.expand">
1649 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1650 <a t-if="label" class="searchview_group_string" href="#">
1653 <div class="searchview_group_content">
1654 <t t-raw="content"/>
1658 <div t-name="SearchView.Filters" class="oe_searchview_filters oe_searchview_section">
1661 <div t-name="SearchView.CustomFilters" class="oe_searchview_custom oe_searchview_section">
1663 <h3><span class="oe_i">M</span> Custom Filters</h3>
1664 <ul class="oe_searchview_custom_list"/>
1665 <div class="oe_searchview_custom">
1666 <h4>Save current filter</h4>
1668 <p><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
1670 <input id="oe_searchview_custom_public" type="checkbox"/>
1671 <label for="oe_searchview_custom_public">Share with all users</label>
1672 <input id="oe_searchview_custom_default" type="checkbox"/>
1673 <label for="oe_searchview_custom_default">Use by default</label>
1675 <button>Save</button>
1681 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1682 <h4>Advanced Search</h4>
1687 <button class="oe_add_condition button" type="button">Add a condition</button><br/>
1688 <button class="oe_apply" type="submit">Apply</button>
1691 <t t-name="SearchView.extended_search.proposition">
1693 <span class="searchview_extended_prop_or">or</span>
1694 <select class="searchview_extended_prop_field">
1695 <t t-foreach="widget.attrs.fields" t-as="field">
1696 <option t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1697 t-att-value="field.name">
1698 <t t-esc="field.string"/>
1702 <select class="searchview_extended_prop_op"/>
1703 <span class="searchview_extended_prop_value"/>
1704 <a class="searchview_extended_delete_prop button">x</a>
1707 <t t-name="SearchView.extended_search.proposition.char">
1708 <input class="field_char"/>
1710 <t t-name="SearchView.extended_search.proposition.empty">
1713 <t t-name="SearchView.extended_search.proposition.integer">
1714 <input type="number" class="field_integer" value = "0" step="1"/>
1716 <t t-name="SearchView.extended_search.proposition.float">
1717 <input type="number" class="field_float" value = "0.0" step="0.01"/>
1719 <t t-name="SearchView.extended_search.proposition.selection">
1721 <t t-foreach="widget.field.selection" t-as="element">
1722 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1727 <t t-name="ExportView">
1728 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1730 <table t-name="ExportTreeView" class="oe_export"
1731 style="background-color: #F3F3F3;">
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.
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>
1746 <label for="export_format">Export Formats</label>
1747 <select id="export_format" name="export_format"></select>
1752 <th>Available fields</th>
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>
1761 <tr style="height: 400px;">
1762 <td class="oe_export_fields_selector_left">
1763 <div id="left_field_panel">
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>
1772 <td class="oe_export_fields_selector_right">
1773 <select name="fields_list" id="fields_list"
1774 multiple="multiple"></select>
1778 <table t-name="ExportTreeView-Secondary"
1779 id="field-tree-structure" class="oe_export_fields_selector_export"
1780 cellspacing="0" cellpadding="0">
1781 <tr><th class="oe_export_tree_header"> Name </th></tr>
1782 <t t-call="ExportTreeView-Secondary.children"/>
1784 <tr t-name="ExportTreeView-Secondary.children"
1785 t-foreach="fields" t-as="field"
1786 t-att-id="'treerow-' + field.id" class="oe_export_row">
1788 <table class="tree_grid" border="0">
1789 <tr class="oe_export_row">
1790 <t t-foreach="(field.id).split('/')" t-as="level" >
1791 <t t-if="(field.id).split('/')[0] != level">
1792 <td width="18" t-translation="off">&nbsp;</td>
1795 <td valign="top" align="left" style="cursor: pointer;" width="18">
1796 <t t-if="field.children">
1797 <t t-if="(field.id).split('/').length != 3">
1798 <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1802 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1803 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1804 <t t-esc="field.string"/>
1811 <t t-name="ExportNewList">
1813 <th><label>Save as:</label></th>
1814 <td><input size="10" type="text" id="savelist_name"/></td>
1815 <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1818 <t t-name="Exists.ExportList">
1819 <label for="saved_export_list">Saved exports:</label>
1821 <select id="saved_export_list">
1823 <t t-foreach="existing_exports" t-as="export">
1824 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1827 <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1830 <t t-name="ImportView">
1831 <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1833 <t t-name="ImportDataView">
1834 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1835 class="oe_import oe_import_no_result">
1836 <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1837 <h2 class="separator horizontal">1. Import a .CSV file</h2>
1838 <p>Select a .CSV file to import. If you need a sample of file to import,
1839 you should use the export tool with the "Import Compatible" option.
1842 <label for="csvfile">CSV File:</label>
1843 <input type="file" id="csvfile" size="50" name="csvfile"/>
1845 <h2 class="separator horizontal oe_import_result">2. Check your file format</h2>
1846 <div id="result" class="oe_import_result"></div>
1847 <fieldset class="oe_closed oe_import_result">
1848 <legend>Import Options</legend>
1852 <label for="file_has_headers">Does your file have titles?</label>
1853 <input type="checkbox" checked="checked"
1854 id="file_has_headers"/>
1858 <td><label for="csv_separator">Separator:</label></td>
1859 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1860 <td><label for="csv_delimiter">Delimiter:</label></td>
1861 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1864 <td><label for="csv_encoding">Encoding:</label></td>
1866 <select name="csvcode" id="csv_encoding">
1867 <option value="utf-8">UTF-8</option>
1868 <option value="latin1">Latin 1</option>
1871 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1872 Lines to skip<sup>?</sup>:</label></td>
1873 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1879 <t t-name="ImportView.result">
1880 <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1881 <tr t-if="headers" class="oe_import_grid-header">
1882 <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1883 <t t-esc="header"/></td>
1886 <td t-foreach="records[0]" t-as="column">
1887 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe_m2o_drop_down_button">
1888 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/></span>
1891 <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1892 <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1893 <t t-esc="cell"/></td>
1897 <t t-name="ImportView.error">
1898 <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1899 <t t-if="error.preview">
1900 <p>Here is a preview of the file we could not import:</p>
1901 <pre><t t-esc="error.preview"/></pre>
1904 <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
1905 <input t-att-placeholder="_t('Type name to search')"/>
1907 <t t-name="Throbber">
1909 <div class="oe_blockui_spin" style="height: 50px">
1912 <div class="oe_throbber_message" style="color:white"></div>
1915 <t t-name="M2ODialog">
1917 Name: <input class="oe_form_m2o_input_name" type="text"/>
1920 <t t-name="M2ODialog.buttons">
1921 <button class="oe_form_m2o_qc_button oe_button oe_highlight">Quick Add</button>
1922 <button class="oe_form_m2o_sc_button oe_button">Add All Info...</button>
1923 <button class="oe_form_m2o_cancel_button oe_button">Cancel</button>
1925 <t t-name="FieldMonetary" t-extend="FieldChar">
1926 <t t-jquery="t:first" t-operation="before">
1927 <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'before'">
1928 <t t-esc="widget.get('currency_info').symbol"/>
1931 <t t-jquery="t:last" t-operation="after">
1932 <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'after'">
1933 <t t-esc="widget.get('currency_info').symbol"/>
1937 <t t-name="FieldMany2ManyCheckBoxes">
1938 <t t-foreach="widget.get('records')" t-as="record">
1940 <t t-if="selected[record[0]]">
1941 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/>
1943 <t t-if="! selected[record[0]]">
1944 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"/>
1946 <t t-esc="record[1]"/>