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>
29 <t t-name="CrashManager.warning">
30 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
32 <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
36 var message = d.message ? d.message : d.error.data.fault_code;
37 d.html_error = context.engine.tools.html_escape(message)
38 .replace(/\n/g, '<br/>');
40 <t t-raw="html_error"/>
46 <t t-name="CrashManager.error">
47 <t t-if="!session.openerp_entreprise">
48 <span>Your version of OpenERP is unsupported. Support & maintenance services are available here: <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">OpenERP Entreprise</a>.</span>
50 <t t-if="session.openerp_entreprise">
51 <div class="oe_error_send">
53 <div class="oe_centeralign"><b>OpenERP Enterprise Contract.</b></div>
54 <div><br/>Your report will be sent to the OpenERP Enterprise team.<br/></div><br/>
56 <label>Summary:</label><br/>
57 <input id="issuename" type="text" class="oe_fielddiv"/>
60 <label>Description:</label><br/>
61 <textarea id="explanation" rows="6"></textarea>
64 <label>What you did:</label><br/>
65 <textarea id="remark" rows="6" ></textarea>
70 <div class="oe_error_detail">
71 <pre><t t-esc="error.message"/></pre>
73 <pre><t t-esc="error.data.debug"/></pre>
78 <div class="oe_login">
79 <div class="oe_login_bottom"> </div>
80 <div class="oe_login_error_message">Invalid username or password</div>
81 <div class="oe_login_pane">
82 <div class="oe_login_logo"><img src='/web/static/src/img/logo2.png'/></div>
83 <form action="" method="post">
84 <div class="oe_login_dbpane" >
86 <input name="db" t-att-value="widget.selected_db || ''"/>
90 <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
92 <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
93 <li><button name="submit">Log in</button></li>
96 <div class="oe_login_footer">
97 <a href="#" class="oe_login_manage_db">Manage Databases</a> |
98 <a href="http://www.openerp.com">Powered by <span>OpenERP</span></a>
103 <t t-name="Login.dblist">
105 <t t-foreach="db_list" t-as="db">
106 <t t-if="selected_db === db">
107 <option t-att-value="db" selected="true">
108 <t t-esc="db"/></option>
110 <t t-if="selected_db !== db">
111 <option t-att-value="db"><t t-esc="db"/></option>
117 <t t-name="DatabaseManager">
118 <div class="oe_database_manager">
119 <div class="oe_database_manager_menu">
120 <ul class="oe_form_notebook">
121 <li><a href="#db_create">Create</a></li>
122 <li><a href="#db_drop">Drop</a></li>
123 <li><a href="#db_backup">Backup</a></li>
124 <li><a href="#db_restore">Restore</a></li>
125 <li><a href="#db_change_password">Password</a></li>
126 <li><a id="back_to_login" href="#">Back to Login</a></li>
128 <form id="db_create" name="create_db_form" class="oe_forms" method="POST">
129 <table align="center" class="db_option_table">
131 <th colspan="2" class="option_string"> CREATE DATABASE </th>
134 <td><label for="super_admin_pwd">Master password:</label></td>
135 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
138 <td><label for="db_name">New database name:</label></td>
139 <td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
142 <td><label for="demo_data">Load Demonstration data:</label></td>
143 <td><input type="checkbox" name="demo_data"/></td>
146 <td><label for="db_lang">Default language:</label></td>
148 <select name="db_lang" t-if="widget.lang_list">
149 <t t-foreach="widget.lang_list" t-as="lang">
150 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
156 <td><label for="create_admin_pwd">Admin password:</label></td>
157 <td><input type="password" name="create_admin_pwd" class="required"/></td>
160 <td><label for="create_confirm_pwd">Confirm password:</label></td>
161 <td><input type="password" name="create_confirm_pwd" class="required" equalTo="input[name=create_admin_pwd]"/></td>
164 <td colspan="2" align="right"><button class="oe_button">Create</button></td>
168 <form id="db_drop" name="drop_db_form" class="oe_forms" method="POST">
169 <table align="center" class="db_option_table">
171 <th colspan="2" class="option_string"> DROP DATABASE </th>
174 <td><label for="drop_db">Database:</label></td>
176 <select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
177 <t t-foreach="widget.db_list" t-as="db">
178 <option t-att-value="db"><t t-esc="db"/></option>
181 <input t-if="!widget.db_list" name="drop_db" class="required" type="text" autofocus="autofocus"/>
185 <td><label for="drop_password">Master Password:</label></td>
186 <td><input type="password" name="drop_pwd" class="required"/></td>
189 <td colspan="2" align="right"><button class="oe_button">Drop</button></td>
193 <form id="db_backup" name="backup_db_form" class="oe_forms" method="POST" target="backup-target" action="/web/database/backup">
194 <input type="hidden" name="token"/>
195 <table align="center" class="db_option_table">
197 <th colspan="2" class="option_string"> BACKUP DATABASE </th>
200 <td><label for="backup_db">Database:</label></td>
202 <select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
203 <t t-foreach="widget.db_list" t-as="db">
204 <option t-att-value="db"><t t-esc="db"/></option>
207 <input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
211 <td><label for="backup_pwd">Master Password:</label></td>
212 <td><input type="password" name="backup_pwd" class="required"/></td>
215 <td colspan="2" align="right"><button class="oe_button">Backup</button></td>
219 <form id="db_restore" name="restore_db_form" class="oe_forms" method="POST">
220 <table align="center" class="db_option_table">
222 <th colspan="2" class="option_string"> RESTORE DATABASE </th>
225 <td><label for="restore_db">File:</label></td>
226 <td><input type="file" name="db_file" class="required" autofocus="autofocus"/></td>
229 <td><label for="restore_pwd">Master Password:</label></td>
230 <td><input type="password" name="restore_pwd" class="required"/></td>
233 <td><label for="new_db">New database name:</label></td>
234 <td><input type="text" name="new_db" class="required"/></td>
237 <td colspan="2" align="right"><button class="oe_button">Restore</button></td>
241 <form id="db_change_password" name="change_pwd_form" class="oe_forms" method="POST">
242 <table align="center" class="db_option_table">
244 <th colspan="2" class="option_string"> CHANGE MASTER PASSWORD </th>
247 <td><label for="old_pwd">Master password:</label></td>
248 <td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
251 <td><label for="new_pwd">New master password:</label></td>
252 <td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
255 <td><label for="confirm_pwd">Confirm new master password:</label></td>
256 <td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/></td>
259 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
267 <t t-name="WebClient">
268 <table class="oe_webclient">
270 <td colspan="2" class="oe_topbar">
271 <div class="oe_menu_placeholder"/>
272 <div class="oe_user_menu_placeholder"/>
273 <div class="oe_systray"/>
277 <td class="oe_leftbar" valign="top">
278 <a href="#" class="oe_logo"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
279 <div class="oe_secondary_menus_container"/>
280 <div class="oe_footer">
281 Powered by <a href="http://www.openerp.com"><span>Open</span>ERP</a>
284 <td class="oe_application">
291 <ul class="oe_menu" t-if="widget.data">
292 <li t-foreach="widget.data.data.children" t-as="menu">
293 <t t-call="Menu.secondary.link"/>
297 <t t-name="Menu.more">
298 <li class="oe_menu_more_container">
299 <a href="#" class="oe_menu_more_link oe_dropdown_toggle">More</a>
300 <ul class="oe_menu_more" style="display: none;"/>
303 <t t-name="Menu.secondary">
304 <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
305 <t t-foreach="menu.children" t-as="menu">
306 <div class="oe_secondary_menu_section">
307 <t t-esc="menu.name"/>
309 Shall the section be still clickable ?
310 <t t-call="Menu.secondary.link"/>
313 <t t-call="Menu.secondary.submenu"/>
317 <t t-name="Menu.secondary.submenu">
318 <ul t-if="menu.children.length" class="oe_secondary_submenu">
319 <li t-foreach="menu.children" t-as="menu">
320 <t t-call="Menu.secondary.link"/>
321 <!--<span class="oe_menu_label">8</span>-->
322 <t t-call="Menu.secondary.submenu"/>
326 <t t-name="Menu.secondary.link">
327 <a t-attf-href="#menu_id=#{menu.id}&action_id=#{menu.action ? menu.action.split(',')[1] : ''}"
328 t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
329 t-att-data-menu="menu.id"
330 t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
331 t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
332 <t t-esc="menu.name"/>
333 <t t-if="menu.needaction_enabled">
334 <div class="oe_menu_counter">
335 <t t-esc="menu.needaction_counter"/>
341 <t t-name="UserMenu">
342 <ul class="oe_user_menu oe_topbar_item">
343 <li class="oe_dropdown">
344 <a href="#" class="oe_dropdown_toggle">
345 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
346 <span class="oe_topbar_name"/>
348 <ul class="oe_dropdown_options">
349 <!--<li><a href="#" data-menu="profile">Profile</a></li>-->
350 <li><a href="#" data-menu="settings">Settings</a></li>
351 <li><a href="#" data-menu="logout">Log out</a></li>
353 <li><a href="#" data-menu="about">About OpenERP</a></li>
359 <t t-name="UserMenu.shortcut">
360 <li t-foreach="shortcuts" t-as="shortcut">
361 <a href="#" data-menu="shortcut" t-att-data-id="shortcut.res_id" t-att-data-shortcut-id="shortcut.id">
362 <t t-esc="shortcut.name"/>
366 <t t-name="About-Page">
368 <a class="oe_activate_debug_mode" href="?debug" style="float:right; font-size: 80%;">Activate the developper mode</a>
369 <h1 style="margin:0;">OpenERP</h1>
370 <h3 style="margin:15px 0;padding:0;">Version <t t-esc="version_info.version"/></h3>
372 Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
373 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
376 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>
379 For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a>
383 <t t-name="Change_Pwd">
384 <form name="change_password_form" class="oe_forms" method="POST">
385 <table align="center">
387 <td><label for="old_pwd">Old Password:</label></td>
388 <td><input type="password" name="old_pwd"
389 minlength="1" autofocus="autofocus"/></td>
392 <td><label for="new_password">New Password:</label></td>
393 <td><input type="password" name="new_password"
394 minlength="1" autofocus="autofocus"/></td>
397 <td><label for="confirm_pwd">Confirm Password:</label></td>
398 <td><input type="password" name="confirm_pwd"
402 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
408 <t t-name="ViewManager">
409 <div class="oe_view_manager">
410 <table class="oe_view_manager_header2">
416 <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
417 <span class="oe_view_title_text"><t t-esc="widget.display_title()"/></span>
420 <td> <div class="oe_view_manager_view_search" t-opentag="true"/> </td>
423 <td> <div class="oe_view_manager_buttons"/> </td>
424 <td> <div class="oe_view_manager_sidebar"/> </td>
426 <ul class="oe_view_manager_switch oe_button_group oe_right">
427 <t t-if="widget.views_src.length != 1" t-foreach="widget.views_src" t-as="view">
428 <li><a t-attf-class="oe_vm_switch_#{view.view_type} oe_i" t-att-data-view-type="view.view_type" t-att-title="view.label || view.view_type">
432 <div class="oe_view_manager_pager oe_right"/>
436 <div class="oe_view_manager_body">
437 <t t-foreach="widget.views_src" t-as="view">
438 <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
443 <t t-name="ViewManagerAction" t-extend="ViewManager">
444 <t t-jquery="h2.oe_view_title" t-operation="prepend">
445 <a t-if="widget.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
446 href="javascript: void(0)"> </a>
448 <t t-jquery="h2.oe_view_title" t-operation="after">
449 <select t-if="widget.session.debug" class="oe_debug_view"/>
452 <t t-name="ViewManagerDebug">
453 <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
454 <option t-if="view_manager.active_view === 'form'" value="perm_read" data-views="form,page">View Log (perm_read)</option>
455 <option t-if="view_manager.active_view === 'form'" value="toggle_layout_outline">Toggle Form Layout Outline</option>
456 <option value="fields">View Fields</option>
457 <option value="fvg">Fields View Get</option>
458 <t t-if="view_manager.session.uid === 1">
459 <option value="manage_views">Manage Views</option>
460 <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>
461 <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>
462 <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>
463 <option value="edit_workflow">Edit Workflow</option>
466 <t t-name="ViewManagerDebugViewLog">
467 <div class="oe_debug_view_log">
469 <span><t t-esc="perm.id"/></span>
471 <label>XML ID:</label>
472 <span><t t-esc="perm.xmlid"/></span>
474 <label>Creation User:</label>
475 <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
477 <label>Creation Date:</label>
478 <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
480 <label>Latest Modification by:</label>
481 <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
483 <label>Latest Modification Date:</label>
484 <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
487 <t t-name="ViewPager">
488 <div class="oe_pager_value">
489 <t t-raw="__content__"/>
491 <ul class="oe_pager_group">
493 <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
494 <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
498 <a class="oe_i" type="button" data-pager-action="previous">(</a>
501 <a class="oe_i" type="button" data-pager-action="next">)</a>
504 <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
505 <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
512 <div class="oe_sidebar">
513 <t t-foreach="widget.sections" t-as="section">
514 <div class="oe_form_dropdown_section">
515 <button class="oe_dropdown_toggle"><t t-esc="section.label"/></button>
516 <ul class="oe_dropdown_menu">
517 <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
518 <a class="oe_sidebar_action_a" t-att-title="item.title" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
519 <t t-raw="item.label"/>
522 <li t-if="section.name == 'files'" class="oe_sidebar_add" style="display:none;">
523 Input type file stuff
530 <t t-name="Sidebar.attachments">
531 <div class="oe-sidebar-attachments-toolbar">
532 <div class="oe-binary-file-set" style="float: right">
533 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
534 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
535 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
536 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
537 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
538 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
539 <button class="oe_button" type="button">
540 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16" style="display: none"/>
543 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
544 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
546 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"/>
549 <br style="clear: both"/>
550 <ul class="oe-sidebar-attachments-items">
551 <li t-foreach="attachments" t-as="attachment">
552 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="_s + '/web/binary/saveas?session_id='
553 + session.session_id + '&model=ir.attachment&id=' + attachment.id
554 + '&field=datas&filename_field=name&t=' + (new Date().getTime())"/>
555 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
556 <t t-esc="attachment.name"/>
558 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
559 <img t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
565 <t t-name="TreeView">
566 <select t-if="toolbar" style="width: 30%">
568 <table class="oe-treeview-table">
571 <th t-foreach="fields_view" t-as="field"
572 t-if="!field.attrs.modifiers.tree_invisible"
573 class="treeview-header">
574 <t t-esc="fields[field.attrs.name].string" />
582 <tr t-name="TreeView.rows"
583 t-foreach="records" t-as="record"
584 t-att-id="'treerow_' + record.id"
585 t-att-data-id="record.id" t-att-data-level="level + 1">
586 <t t-set="children" t-value="record[children_field]"/>
587 <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
588 <t t-set="rank" t-value="'oe-treeview-first'"/>
589 <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
591 <td t-foreach="fields_view" t-as="field"
592 t-if="!field.attrs.modifiers.tree_invisible"
593 t-att-data-id="record.id"
594 t-att-style="color_for(record) + style "
595 t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}">
597 <span t-if="!field.attrs.modifiers.invisible" >
598 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
601 <t t-set="class" t-value="'treeview-td'"/>
602 <t t-set="rank" t-value="''"/>
603 <t t-set="style" t-value="''"/>
607 <table t-name="ListView" class="oe-listview-content">
608 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
610 <tr t-if="options.action_buttons !== false or options.pager !== false">
611 <th t-att-colspan="columns_count">
612 <div class="oe_list_buttons"/>
613 <div class="oe_list_sidebar"/>
614 <div class="oe_list_pager"/>
617 <tr t-if="options.header" class="oe-listview-header-columns">
618 <t t-foreach="columns" t-as="column">
619 <th t-if="column.meta">
620 <t t-esc="column.string"/>
623 <th t-if="options.selectable" width="1" >
624 <input type="checkbox" class="all-record-selector"/>
626 <th t-if="options.isClarkGable" width="1"></th>
627 <t t-foreach="columns" t-as="column">
628 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
629 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
630 <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
633 <th t-if="options.deletable" width="1"/>
638 <td t-if="options.selectable"/>
639 <td t-if="options.isClarkGable"/>
640 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
641 t-att-data-field="column.id" t-att-title="column.label">
643 <td t-if="options.deletable"/>
647 <div t-name="ListView.buttons" class="oe_list_buttons">
648 <t t-if="!widget.no_leaf and widget.options.action_buttons !== false">
649 <button type="button" class="oe_button oe_list_add" t-if="widget.options.addable">
650 <t t-esc="widget.options.addable"/>
652 <button type="button" class="oe_button oe_list_delete" t-if="widget.options.selectable and widget.options.deletable">
657 <t t-name="ListView.pager">
658 <div class="oe_list_pager" t-att-colspan="widget.columns_count">
659 <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
660 <span class="oe-pager-state">
665 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
666 <t t-call="ListView.row">
667 <t t-set="record" t-value="records.at(index)"/>
668 <t t-set="row_parity" t-value="index_parity"/>
671 <tr t-name="ListView.row" t-att-class="row_parity"
672 t-att-data-id="record.get('id')"
673 t-att-style="view.style_for(record)">
674 <t t-foreach="columns" t-as="column">
675 <td t-if="column.meta">
679 <th t-if="options.selectable" class="oe-record-selector" width="1">
680 <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
681 <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
682 <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
684 <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
685 <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
687 <t t-foreach="columns" t-as="column">
688 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
689 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
690 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
691 + (column.tag === 'button' ? ' oe-button' : '')"
692 t-att-data-field="column.id">
693 <t t-raw="render_cell(record, column)"/>
696 <td t-if="options.deletable" class='oe-record-delete' width="1">
697 <button type="button" name="delete" class="oe_i">d</button>
701 <t t-name="FormView">
702 <div class="oe_formview">
703 <div class="oe_form_buttons"/>
704 <div class="oe_form_sidebar"/>
705 <div class="oe_form_pager"/>
706 <div class="oe_form_container"/>
709 <div t-name="FormView.buttons" class="oe_form_buttons">
710 <t t-if="widget.options.action_buttons !== false">
711 <span class="oe_form_buttons_view">
712 <button type="button" class="oe_button oe_form_button_edit">Edit</button>
713 <button type="button" class="oe_button oe_form_button_create">Create</button>
714 <button type="button" class="oe_button oe_form_button_duplicate">Duplicate</button>
715 <button type="button" class="oe_button oe_form_button_delete">Delete</button>
717 <span class="oe_form_buttons_edit">
718 <button type="button" class="oe_button oe_form_button_save">Save</button> or
719 <a href="#" class="oe_form_button_cancel">Discard</a>
723 <t t-name="FormView.pager">
724 <div class="oe_form_pager">
725 <t t-if="widget.options.pager !== false" t-call="ViewPager">
726 <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
730 <form t-name="FormView.set_default" class="oe_forms oe_frame">
731 <t t-set="args" t-value="widget.dialog_options.args"/>
732 <table style="width: 100%">
735 <label for="formview_default_fields"
736 class="oe_label oe_align_right">
740 <td class="oe_form_required">
741 <select id="formview_default_fields">
743 <option t-foreach="args.fields" t-as="field"
744 t-att-value="field.name">
745 <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
750 <tr t-if="args.conditions.length">
752 <label for="formview_default_conditions"
753 class="oe_label oe_align_right">
758 <select id="formview_default_conditions">
760 <option t-foreach="args.conditions" t-as="cond"
761 t-att-value="cond.name + '=' + cond.value">
762 <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
769 <input type="radio" id="formview_default_self"
770 value="self" name="scope" checked="checked"/>
771 <label for="formview_default_self" class="oe_label"
772 style="display: inline;">
776 <input type="radio" id="formview_default_all"
777 value="all" name="scope"/>
778 <label for="formview_default_all" class="oe_label"
779 style="display: inline;">
787 <t t-name="FormRenderingForm.manual">
788 <div class="oe_form_manual_layout"/>
790 <t t-name="FormRenderingForm">
791 <div class="oe_form_sheetbg">
792 <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
793 <group t-if="layout === 'auto'" col="4"/>
797 <t t-name="FormRenderingSheet" t-extend="FormRenderingForm">
799 <t t-name="FormRenderingGroup">
801 <table border="0" cellpadding="0" cellspacing="0" width="100%" t-att-class="classnames"/>
804 <fieldset class="oe_group_box">
805 <legend><t t-esc="string"/></legend>
813 <t t-name="FormRenderingNotebook">
815 <ul t-attf-class="oe_form_notebook #{classnames}">
816 <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
817 <a t-attf-href="##{page.id}">
818 <t t-esc="page.string"/>
824 <t t-name="FormRenderingNotebookPage">
825 <div t-attf-class="oe_form_notebook_page #{classnames}" t-att-id="id">
826 <group t-if="layout === 'auto'" col="4"/>
829 <t t-name="FormRenderingSeparator">
830 <div t-attf-class="oe_horizontal_separator #{classnames}">
834 <t t-name="FormRenderingLabel">
835 <label t-att-for="_for"
837 t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
839 <span t-if="help">?</span>
845 <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
847 <t t-name="WidgetLabel.tooltip">
848 <div class="oe_tooltip_string" t-if="widget.string">
849 <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
851 <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>
852 <ul t-if="debug" class="oe_tooltip_technical">
853 <li data-item="field" t-if="widget.name">
854 <span class="oe_tooltip_technical_title">Field:</span>
855 <t t-esc="widget.name"/>
857 <li data-item="object" t-if="widget.view and widget.view.fields_view">
858 <span class="oe_tooltip_technical_title">Object:</span>
859 <t t-esc="widget.view.fields_view.model"/>
861 <li data-item="type" t-if="widget.field">
862 <span class="oe_tooltip_technical_title">Type:</span>
863 <t t-esc="widget.field.type"/>
865 <li t-if="widget.node.attrs.widget" data-item="widget">
866 <span class="oe_tooltip_technical_title">Widget:</span>
867 <t t-esc="widget.node.attrs.widget"/>
869 <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
870 <span class="oe_tooltip_technical_title">Size:</span>
871 <t t-esc="widget.node.attrs.size || widget.field.size"/>
873 <li t-if="widget.node.attrs.context" data-item="context">
874 <span class="oe_tooltip_technical_title">Context:</span>
875 <t t-esc="widget.node.attrs.context_string"/>
877 <li t-if="widget.node.attrs.domain" data-item="domain">
878 <span class="oe_tooltip_technical_title">Domain:</span>
879 <t t-esc="widget.node.attrs.domain_string"/>
881 <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
882 <span class="oe_tooltip_technical_title">Modifiers:</span>
883 <t t-esc="widget.node.attrs.modifiers"/>
885 <li t-if="widget.field and widget.field.change_default" data-item="change_default">
886 <span class="oe_tooltip_technical_title">Change default:</span>
889 <li t-if="widget.node.attrs.on_change" data-item="on_change">
890 <span class="oe_tooltip_technical_title">On change:</span>
891 <t t-esc="widget.node.attrs.on_change"/>
893 <li t-if="widget.field and widget.field.relation" data-item="relation">
894 <span class="oe_tooltip_technical_title">Relation:</span>
895 <t t-esc="widget.field.relation"/>
897 <li t-if="widget.field and widget.field.selection" data-item="selection">
898 <span class="oe_tooltip_technical_title">Selection:</span>
900 <li t-foreach="widget.field.selection" t-as="option">
901 [<t t-esc="option[0]"/>]
902 <t t-if="option[1]"> - </t>
903 <t t-esc="option[1]"/>
909 <t t-name="FieldChar">
910 <t t-if="!widget.get('effective_readonly')">
911 <div class="oe_form_field_char">
912 <input t-att-type="widget.password ? 'password' : 'text'"
913 t-att-id="widget.id_for_label"
914 t-att-tabindex="widget.node.attrs.tabindex"
915 t-att-autofocus="widget.node.attrs.autofocus"
916 t-attf-class="field_char #{widget.is_field_number ? 'oe-number' : ''}"
917 t-att-placeholder="widget.placeholder"
918 /><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"/>
921 <t t-if="widget.get('effective_readonly')">
922 <span t-attf-class="oe_form_field_char #{widget.is_field_number ? 'oe-number' : ''}"/>
925 <t t-name="FieldEmail">
926 <t t-if="!widget.get('effective_readonly')">
927 <table class="oe_form_field_email" cellpadding="0" cellspacing="0" border="0">
931 t-att-id="widget.id_for_label"
932 t-att-tabindex="widget.node.attrs.tabindex"
933 t-att-autofocus="widget.node.attrs.autofocus"
937 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Send an e-mail with your default e-mail client">
938 <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/>
944 <t t-if="widget.get('effective_readonly')">
946 <a href="#" class="oe_form_uri"/>
950 <t t-name="FieldUrl">
951 <t t-if="!widget.get('effective_readonly')">
952 <table class="oe_form_field_url" cellpadding="0" cellspacing="0" border="0">
956 t-att-id="widget.id_for_label"
957 t-att-tabindex="widget.node.attrs.tabindex"
958 t-att-autofocus="widget.node.attrs.autofocus"
962 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Open this resource">
963 <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.png"'/>
969 <t t-if="widget.get('effective_readonly')">
971 <a href="#" class="oe_form_uri"/>
975 <t t-name="FieldText">
976 <div class="oe_form_field_text">
978 t-att-name="widget.name"
980 t-att-tabindex="widget.node.attrs.tabindex"
981 t-att-autofocus="widget.node.attrs.autofocus"
983 <img class="oe_field_translate oe_input_icon" t-if="widget.field.translate"
984 t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
987 <t t-name="web.datetimepicker">
988 <div class="oe_datepicker_root oe_form_field_datetime">
989 <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
991 t-att-name="widget.name"
992 t-attf-class="oe_datepicker_master field_#{widget.type_of_date} oe_form_field_#{widget.type_of_date}"
993 /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
994 title="Select date" width="16" height="16" border="0"/>
997 <t t-name="FieldSelection">
998 <t t-if="!widget.get('effective_readonly')">
999 <div class="oe_form_field_selection">
1001 t-att-name="widget.name"
1002 t-att-tabindex="widget.node.attrs.tabindex"
1003 t-att-autofocus="widget.node.attrs.autofocus"
1004 t-att-id="widget.id_for_label">
1005 <t t-foreach="widget.values" t-as="option">
1006 <option><t t-esc="option[1]"/></option>
1011 <t t-if="widget.get('effective_readonly')">
1012 <span class="field_selection"/>
1015 <t t-name="FieldMany2One">
1016 <t t-if="!widget.get('effective_readonly')">
1017 <table class="oe_form_field_many2one" cellpadding="0" cellspacing="0" border="0">
1021 t-att-id="widget.id_for_label"
1022 t-att-tabindex="widget.node.attrs.tabindex"
1023 t-att-autofocus="widget.node.attrs.autofocus"
1025 <span class="oe-m2o-drop-down-button">
1026 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1029 <button class="oe_button oe_field_button oe-m2o-cm-button">
1030 <img t-att-src='_s + "/web/static/src/img/icons/gtk-go-forward.png"'/>
1036 <t t-if="widget.get('effective_readonly')">
1038 <a href="#" class="oe_form_uri"/>
1042 <t t-name="FieldMany2ManyTags">
1043 <div class="oe_form_field_many2manytags">
1044 <textarea rows="1" style="width: 100%"></textarea>
1047 <t t-name="FieldReference">
1048 <table class="oe_form_field_reference oe_frame oe_forms" border="0" cellpadding="0" cellspacing="0">
1050 <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection">
1052 <td t-attf-class="oe_form_frame_cell oe_form_many2one oe_form_view_reference_m2o" nowrap="true" style="display: none">
1057 <t t-name="FieldBoolean">
1058 <span class="oe_form_field_boolean">
1059 <input type="checkbox"
1060 t-att-id="widget.id_for_label"
1061 t-att-name="widget.name"
1062 t-att-tabindex="widget.node.attrs.tabindex"
1063 t-att-autofocus="widget.node.attrs.autofocus"
1064 class="field_boolean"/>
1067 <t t-name="FieldProgressBar">
1068 <div class="oe_form_field_progressbar" t-opentag="true">
1072 <t t-name="FieldStatus.content">
1073 <ul class="oe-arrow-list">
1074 <t t-set="size" t-value="widget.to_show.length"/>
1075 <t t-foreach="_.range(size)" t-as="i">
1076 <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1077 <span class="oe-arrow-list-before" t-if="i > 0"></span><span><t t-esc="widget.to_show[i][1]"/></span><span class="oe-arrow-list-after" t-if="i < size - 1"></span>
1082 <t t-name="FieldStatus.content">
1083 <ul class="oe_form_steps">
1084 <t t-set="size" t-value="widget.to_show.length"/>
1085 <t t-foreach="_.range(size)" t-as="i">
1086 <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : ''">
1087 <t t-esc="widget.to_show[i][1]"/>
1088 <img t-att-src='_s + "/web/static/src/img/form_steps.png"' class="oe_form_steps_arrow" t-if="i < size - 1"/>
1093 <t t-name="FieldBinaryImage">
1094 <table cellpadding="0" cellspacing="0" border="0" width="100%">
1096 <td class="oe_form_field-binary-image-placeholder" align="center">
1101 <td align="center" valign="bottom" height="25">
1102 <div class="oe-binary">
1103 <table cellspacing="0" cellpadding="0" border="0">
1106 <div class="oe-binary-file-set">
1107 <form class="oe-binary-form" t-att-target="widget.iframe"
1108 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1109 <input type="hidden" name="session_id" value=""/>
1110 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1111 <button class="oe_button" type="button" title="Set Image">
1112 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1114 <input type="file" class="oe-binary-file" name="ufile"
1115 t-att-tabindex="widget.node.attrs.tabindex"
1116 t-att-autofocus="widget.node.attrs.autofocus"
1122 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1123 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1129 <div class="oe-binary-progress" style="display: none">
1130 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1131 <b>Uploading ...</b>
1133 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1138 <t t-name="FieldBinaryImage-img">
1139 <img t-att-src='url' class="oe-binary-image field_image"
1140 t-att-border="widget.readonly ? 0 : 1"
1141 t-att-name="widget.name"
1142 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1143 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1144 t-att-style="'max-width: ' + (widget.$element.width() > 60 ? widget.$element.width() : 60) + 'px'"
1147 <t t-name="FieldBinaryFile">
1148 <t t-if="!widget.get('effective_readonly')">
1149 <table class="oe_form_field_binary" cellpadding="0" cellspacing="0" border="0">
1152 <input type="text" size="1" readonly="readonly"
1153 t-att-name="widget.name"
1154 t-att-tabindex="widget.node.attrs.tabindex"
1155 t-att-autofocus="widget.node.attrs.autofocus"
1156 class="field_binary"
1159 <td class="oe-binary" nowrap="true">
1160 <table cellspacing="0" cellpadding="0" border="0">
1163 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
1164 <form class="oe-binary-form" t-att-target="widget.iframe"
1165 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1166 <input type="hidden" name="session_id" value=""/>
1167 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1168 <button class="oe_button oe_field_button" type="button" title="Set Image">
1169 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1172 <input type="file" class="oe-binary-file" name="ufile"/>
1177 <button class="oe_button oe-binary-file-save" type="button" title="Save As">
1178 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1179 <span>Save As</span>
1183 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1184 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1191 <td class="oe-binary-progress" style="display: none" nowrap="true">
1192 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1193 <b>Uploading ...</b>
1194 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1199 <t t-if="widget.get('effective_readonly')">
1201 <a href="javascript:void(0)" class="oe_form_uri"/>
1205 <t t-name="WidgetButton">
1206 <button type="button" class="oe_button oe_form_button"
1207 t-att-tabindex="widget.node.attrs.tabindex"
1208 t-att-autofocus="widget.node.attrs.autofocus">
1209 <img t-if="widget.node.attrs.icon" t-att-src="_s + '/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1210 <span t-if="widget.string"><t t-esc="widget.string"/></span>
1213 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1214 <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1215 <div class="oe_tooltip_string" t-if="debug || widget.string">
1218 <t t-if="widget.string">: </t>
1219 <t t-if="!widget.string"> (no string)</t>
1221 <t t-esc="widget.string"/>
1224 <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1225 <li t-if="widget.node.attrs.special" data-item="special">
1226 <span class="oe_tooltip_technical_title">Special:</span>
1227 <t t-esc="widget.node.attrs.special"/>
1229 <t t-set="button_type" t-value="widget.node.attrs.type"/>
1230 <li t-if="button_type" data-item="button_type">
1231 <span class="oe_tooltip_technical_title">Button Type:</span>
1232 <t t-esc="button_type"/>
1234 <li t-if="button_type === 'object'" data-item="button_method">
1235 <span class="oe_tooltip_technical_title">Method:</span>
1236 <t t-esc="widget.node.attrs.name"/>
1238 <li t-if="button_type === 'action'" data-item="button_action">
1239 <span class="oe_tooltip_technical_title">Action ID:</span>
1240 <t t-esc="widget.node.attrs.name"/>
1245 <t t-name="TranslateDialog">
1246 <table t-if="widget.view.translatable_fields" class="oe_form oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
1248 <td class="oe_form_separator" width="1%" nowrap="nowrap">
1249 <div class="oe_horizontal_separator">Field</div>
1251 <th t-foreach="widget.languages" align="left">
1252 <div class="oe_horizontal_separator"><t t-esc="name"/></div>
1255 <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
1256 <td class="oe_form_group_cell" width="1%" nowrap="nowrap">
1257 <label class="oe_label"><t t-esc="field.node.attrs.string"/>:</label>
1259 <td t-foreach="widget.languages" t-as="lg" class="oe_form_group_cell">
1260 <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
1261 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
1267 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1268 <t t-jquery="span.oe_view_title_text" t-operation="replace"/>
1270 <t t-jquery=".oe-view-manager-header">
1271 this.attr('t-if', 'views.length != 1');
1274 <t t-name="One2Many.formview" t-extend="FormView">
1275 <t t-jquery=".oe_form_buttons" t-operation="inner">
1276 <button type="button" class="oe_button oe_form_button_create">Add</button>
1279 <t t-name="One2Many.listview" t-extend="ListView">
1280 <t t-jquery="thead.ui-widget-header > tr:first">
1281 this.removeAttr('t-if');
1284 <t t-jquery="tfoot > tr:last-child" t-operation="replace"/>
1286 <t t-jquery="td.oe-actions">
1287 this.removeAttr('t-if');
1289 <t t-jquery="td.oe-actions" t-operation="prepend">
1290 <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1294 <div t-name="SearchView" class="oe_searchview">
1296 <t t-name="SearchView.managed-filters">
1297 <option class="oe-filters-title" value="">Filters</option>
1298 <optgroup label="-- Filters --">
1299 <t t-foreach="filters" t-as="filter">
1300 <option t-attf-value="get:#{filter_index}"
1301 t-att-disabled="filter.disabled and 'disabled'"
1302 t-att-title="filter.disabled and disabled_filter_message">
1303 <t t-esc="filter.name"/>
1307 <optgroup label="-- Actions --">
1308 <option value="advanced_filter">Add Advanced Filter</option>
1309 <option value="save_filter">Save Filter</option>
1310 <option value="add_to_dashboard">Add to Dashboard</option>
1311 <option value="manage_filters">Manage Filters</option>
1314 <t t-name="SearchView.managed-filters.add">
1317 <input type="text"/>
1318 <p>(Any existing filter with the same name will be replaced)</p>
1321 <t t-name="SearchView.add_to_dashboard">
1322 <div class="oe_forms">
1323 <p><b>Select Dashboard to add this filter to:</b></p>
1324 <select style="width: 100%; margin-right: 1em;">
1325 <option t-foreach="dashboards" t-as="menu" t-att-value="menu.id" t-att-selected="(menu.id == selected_menu_id) || undefined"><t t-esc="menu.name"/></option>
1327 <p><b>Title of new Dashboard item:</b></p>
1328 <input type="text" style="width: 100%; margin-right: 1em;"/>
1331 <t t-name="SearchView.render_lines">
1332 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1333 t-foreach="lines" t-as="line">
1335 <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1336 <t t-raw="widget.render(defaults)"/>
1341 <button t-name="SearchView.filter" type="button"
1342 t-att-id="element_id"
1343 t-att-title="attrs.help"
1344 t-att-class="classes.join(' ')"
1346 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1347 <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1348 <br t-if="attrs.string"/>
1349 <t t-esc="attrs.string"/>
1351 <ul t-name="SearchView.filters">
1352 <li t-foreach="widget.filters" t-as="filter">
1353 <t t-esc="filter.attrs.string or filter.attrs.name or 'Ω'"/>
1356 <t t-name="SearchView.filters.facet">
1357 <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1359 <t t-set="val" t-value="facet.get('json')"/>
1361 <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1362 <t t-esc="facet.get('value')"/>
1364 <t t-if="val instanceof Array">
1365 <div class="search_facet_input_container"
1366 t-foreach="facet.get('json')" t-as="filter">
1367 <t t-esc="filter.attrs.string || filter.attrs.name"/>
1371 <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1373 <t t-name="SearchView.field">
1374 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1375 t-att-title="attrs.help"
1376 t-att-for="element_id"
1377 t-att-style="style">
1378 <t t-esc="attrs.string || attrs.name"/>
1379 <span t-if="attrs.help">?</span>
1381 <div t-att-style="style">
1382 <input type="text" size="15" t-att-name="attrs.name"
1383 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1384 t-att-id="element_id"
1385 t-att-value="defaults[attrs.name] || ''"/>
1386 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1389 <t t-name="SearchView.date">
1390 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1391 t-att-title="attrs.help"
1392 t-att-for="element_id"
1393 t-att-style="style">
1394 <t t-esc="attrs.string || attrs.name"/>
1395 <span t-if="attrs.help">?</span>
1397 <div t-att-style="style">
1398 <span t-att-id="element_id"/>
1399 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1402 <t t-name="SearchView.field.selection">
1403 <label t-att-title="attrs.help"
1404 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1405 t-att-for="element_id"
1406 t-att-style="style">
1407 <t t-esc="attrs.string || attrs.name"/>
1408 <span t-if="attrs.help">?</span>
1410 <div t-att-style="style">
1411 <select t-att-name="attrs.name" t-att-id="element_id"
1412 t-att-autofocus="attrs.default_focus === '1' || undefined">
1413 <option t-if="prepend_empty"/>
1414 <t t-foreach="attrs.selection" t-as="option">
1415 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1416 <option t-if="selected"
1417 t-attf-selected="selected"
1418 t-att-value="option_index">
1419 <t t-esc="option[1]"/>
1421 <option t-if="!selected" t-att-value="option_index">
1422 <t t-esc="option[1]"/>
1426 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1429 <t t-name="SearchView.util.expand">
1430 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1431 <a t-if="label" class="searchview_group_string" href="#">
1434 <div class="searchview_group_content">
1435 <t t-raw="content"/>
1439 <t t-name="SearchView.group">
1440 <t t-call="SearchView.util.expand">
1441 <t t-set="expand" t-value="attrs.expand"/>
1442 <t t-set="label" t-value="attrs.string"/>
1444 <t t-call="SearchView.render_lines"/>
1448 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1449 <h4>Advanced Search...</h4>
1454 <button class="oe_add_condition" type="button">Add a condition</button>
1455 <button class="oe_apply" type="submit">Apply</button>
1458 <t t-name="SearchView.extended_search.proposition">
1460 <select class="searchview_extended_prop_field">
1461 <t t-foreach="widget.attrs.fields" t-as="field">
1462 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1463 t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1464 t-att-value="field.name">
1465 <t t-esc="field.string"/>
1469 <select class="searchview_extended_prop_op"/>
1470 <span class="searchview_extended_prop_value"/>
1471 <a class="searchview_extended_delete_prop"
1472 href="javascript:void(0)"><span>Â </span></a>
1475 <t t-name="SearchView.extended_search.proposition.char">
1476 <input t-att-id="widget.element_id" class="field_char"/>
1478 <t t-name="SearchView.extended_search.proposition.empty">
1479 <span t-att-id="widget.element_id"></span>
1481 <t t-name="SearchView.extended_search.proposition.integer">
1482 <input type="number" t-att-id="widget.element_id" class="field_integer" step="1"/>
1484 <t t-name="SearchView.extended_search.proposition.float">
1485 <input type="number" t-att-id="widget.element_id" class="field_float" step="0.01"/>
1487 <t t-name="SearchView.extended_search.proposition.boolean">
1489 <t t-name="SearchView.extended_search.proposition.selection">
1490 <select t-att-id="widget.element_id">
1491 <t t-foreach="widget.field.selection" t-as="element">
1492 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1496 <t t-name="SelectCreatePopup">
1498 <table style="width:100%">
1499 <tr style="width:100%">
1500 <td style="width:100%">
1501 <div class="oe-select-create-popup-view-search" style="width:100%"></div>
1504 <tr style="width:100%">
1505 <td style="width:100%">
1506 <div class="oe-select-create-popup-view-list" style="width:100%"></div>
1510 <div class="oe-select-create-popup-view-form" style="width:100%"></div>
1513 <t t-name="SelectCreatePopup.search.buttons">
1514 <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1515 <button type="button" class="oe_button oe_selectcreatepopup-search-close">Cancel</button>
1517 <t t-name="SelectCreatePopup.form.buttons">
1518 <t t-if="widget.options.disable_multiple_selection">
1519 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save</button>
1521 <t t-if="! widget.options.disable_multiple_selection">
1522 <button type="button" class="oe_button oe_selectcreatepopup-form-save-new">Save & New</button>
1523 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save & Close</button>
1525 <button type="button" class="oe_button oe_selectcreatepopup-form-close">Cancel</button>
1527 <t t-name="FormOpenPopup">
1529 <div class="oe-form-open-popup-form-view" style="width:100%"></div>
1532 <t t-name="FormOpenPopup.form.buttons">
1533 <button type="button" class="oe_button oe_formopenpopup-form-save">Save</button>
1534 <button type="button" class="oe_button oe_formopenpopup-form-close">Cancel</button>
1536 <t t-extend="ListView.row">
1537 <!-- adds back padding to row being rendered after edition, if necessary
1538 (if not deletable add back padding), otherwise the row being added is
1541 <t t-jquery="> :last" t-operation="after">
1542 <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1546 <t t-name="view_editor">
1547 <table class="oe_view_editor">
1548 <t t-call="view_editor.row"/>
1551 <t t-name="view_editor.row">
1552 <tr t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
1554 <table class="oe_view_editor_field">
1556 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1557 <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1558 src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1560 <td style="cursor: pointer;">
1561 <a style="text-decoration:none" href="javascript:void(0);">
1562 <t t-esc="rec.name"/>
1569 <img t-if="rec.att_list.length"
1570 id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1573 <img id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1576 <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1577 id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1580 <img t-if="rec.att_list.length"
1581 id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1584 <img t-if="rec.att_list.length"
1585 id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1587 <t t-if="rec.child_id.length">
1588 <t t-set="data" t-value="rec.child_id"/>
1589 <t t-call="view_editor.row"/>
1593 <t t-name="vieweditor_char">
1594 <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1596 <t t-name="vieweditor_selection">
1597 <select t-att-id="widget.name" >
1598 <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1600 t-att-value="typeof option === 'object' ? option[0] : option">
1601 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1606 <t t-name="vieweditor_boolean">
1607 <input type="checkbox" t-att-id="widget.name"/>
1610 <t t-name="ExportView">
1611 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1613 <table t-name="ExportTreeView" class="oe-export"
1614 style="background-color: #F3F3F3;">
1617 This wizard will export all data that matches the current search criteria to a CSV file.
1618 You can export all data or only the fields that can be reimported after modification.
1623 <label for="import_compat">Export Type:</label>
1624 <select id="import_compat" name="import_compat">
1625 <option value="yes">Import Compatible Export</option>
1626 <option value="">Export all Data</option>
1629 <label for="export_format">Export Formats</label>
1630 <select id="export_format" name="export_format"></select>
1635 <th>Available fields</th>
1639 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1640 <div id="savenewlist"></div>
1641 <div id="ExistsExportList"></div>
1644 <tr style="height: 400px;">
1645 <td class="oe_export_fields_selector_left">
1646 <div id="left_field_panel">
1649 <td class="oe_export_fields_selector_center">
1650 <!-- TODO: replace ids by 'oe_*' classes -->
1651 <button class="oe_button" id="add_field">Add</button>
1652 <button class="oe_button" id="remove_field">Remove</button>
1653 <button class="oe_button" id="remove_all_field">Remove All</button>
1655 <td class="oe_export_fields_selector_right">
1656 <select name="fields_list" id="fields_list"
1657 multiple="multiple"></select>
1661 <table t-name="ExportTreeView-Secondary"
1662 id="field-tree-structure" class="oe_export_fields_selector_export"
1663 cellspacing="0" cellpadding="0">
1664 <tr><th class="oe_export_tree_header"> Name </th></tr>
1665 <t t-call="ExportTreeView-Secondary.children"/>
1667 <tr t-name="ExportTreeView-Secondary.children"
1668 t-foreach="fields" t-as="field"
1669 t-att-id="'treerow-' + field.id" class="oe_export_row">
1671 <table class="tree_grid" border="0">
1672 <tr class="oe_export_row">
1673 <t t-foreach="(field.id).split('/')" t-as="level" >
1674 <t t-if="(field.id).split('/')[0] != level">
1675 <td width="18" t-translation="off">&nbsp;</td>
1678 <td valign="top" align="left" style="cursor: pointer;" width="18">
1679 <t t-if="field.children">
1680 <t t-if="(field.id).split('/').length != 3">
1681 <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1685 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1686 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1687 <t t-esc="field.string"/>
1694 <t t-name="ExportNewList">
1696 <th><label>Save as:</label></th>
1697 <td><input size="10" type="text" id="savelist_name"/></td>
1698 <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1701 <t t-name="Exists.ExportList">
1702 <label for="saved_export_list">Saved exports:</label>
1704 <select id="saved_export_list">
1706 <t t-foreach="existing_exports" t-as="export">
1707 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1710 <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1713 <t t-name="ImportView">
1714 <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1716 <t t-name="ImportDataView">
1717 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1718 class="oe-import oe-import-no-result">
1719 <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
1720 <h2 class="separator horizontal">1. Import a .CSV file</h2>
1721 <p>Select a .CSV file to import. If you need a sample of file to import,
1722 you should use the export tool with the "Import Compatible" option.
1725 <label for="csvfile">CSV File:</label>
1726 <input type="file" id="csvfile" size="50" name="csvfile"/>
1728 <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1729 <div id="result" class="oe-import-result"></div>
1730 <fieldset class="oe-closed oe-import-result">
1731 <legend>Import Options</legend>
1735 <label for="file_has_headers">Does your file have titles?</label>
1736 <input type="checkbox" checked="checked"
1737 id="file_has_headers"/>
1741 <td><label for="csv_separator">Separator:</label></td>
1742 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1743 <td><label for="csv_delimiter">Delimiter:</label></td>
1744 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1747 <td><label for="csv_encoding">Encoding:</label></td>
1749 <select name="csvcode" id="csv_encoding">
1750 <option value="utf-8">UTF-8</option>
1751 <option value="latin1">Latin 1</option>
1754 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1755 Lines to skip<sup>?</sup>:</label></td>
1756 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1762 <t t-name="ImportView.result">
1763 <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1764 <tr t-if="headers" class="oe_import_grid-header">
1765 <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1766 <t t-esc="header"/></td>
1769 <td t-foreach="records[0]" t-as="column">
1770 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1771 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1774 <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1775 <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1776 <t t-esc="cell"/></td>
1780 <t t-name="ImportView.error">
1781 <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1782 <t t-if="error.preview">
1783 <p>Here is a preview of the file we could not import:</p>
1784 <pre><t t-esc="error.preview"/></pre>