2011-03-02 21:09:42 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id= "template" xml:space= "preserve" >
2012-04-08 14:33:01 +00:00
<t t-name= "EmptyComponent" >
<div > </div>
</t>
<t t-name= "Loading" >
2012-04-08 15:06:33 +00:00
<div class= "oe_loading" >
2012-04-08 14:33:01 +00:00
Loading...
</div>
</t>
2011-10-14 00:30:56 +00:00
<t t-name= "Notification" >
2012-02-07 18:22:55 +00:00
<div class= "oe_notification" t-translation= "off" >
2011-04-05 15:53:48 +00:00
<div id= "oe_notification_default" >
<a class= "ui-notify-cross ui-notify-close" href= "#" > x</a>
<h1 > #{title}</h1>
<p > #{text}</p>
</div>
2011-04-05 17:35:12 +00:00
<div id= "oe_notification_alert" class= "ui-state-error" >
<a class= "ui-notify-cross ui-notify-close" href= "#" > x</a>
<span style= "float:left; margin:2px 5px 0 0;" class= "ui-icon ui-icon-alert" > </span>
<h1 > #{title}</h1>
<p > #{text}</p>
</div>
2011-04-05 15:53:48 +00:00
</div>
2011-10-14 00:30:56 +00:00
</t>
2012-08-06 14:00:44 +00:00
<t t-name= "Tipsy.alert" >
<a class= "oe_tooltip_close oe_e" > [</a>
<span style= "float:left; margin:2px 5px 0 0;" class= "ui-icon ui-icon-alert ui-state-error" > </span>
<div class= "oe_tooltip_message" >
<t t-esc= "message" />
</div>
</t>
2012-04-02 12:26:45 +00:00
<t t-name= "CrashManager.warning" >
2012-06-27 14:12:49 +00:00
<table cellspacing= "0" cellpadding= "0" border= "0" class= "oe_dialog_warning" >
2012-04-02 12:26:45 +00:00
<tr >
2012-06-27 14:12:49 +00:00
<td > <img t-att-src= '_s + "/web/static/src/img/warning.png"' class= "oe_dialog_icon" /> </td>
2012-04-02 12:26:45 +00:00
<td >
<p >
<t t-js= "d" >
var message = d.message ? d.message : d.error.data.fault_code;
d.html_error = context.engine.tools.html_escape(message)
.replace(/\n/g, '<br /> ');
</t>
<t t-raw= "html_error" />
</p>
</td>
</tr>
</table>
</t>
<t t-name= "CrashManager.error" >
<t t-if= "!session.openerp_entreprise" >
<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>
</t>
<t t-if= "session.openerp_entreprise" >
<div class= "oe_error_send" >
<div >
<div class= "oe_centeralign" > <b > OpenERP Enterprise Contract.</b> </div>
<div > <br /> Your report will be sent to the OpenERP Enterprise team.<br /> </div> <br />
<div >
<label > Summary:</label> <br />
<input id= "issuename" type= "text" class= "oe_fielddiv" />
</div> <br /> <br />
<div >
<label > Description:</label> <br />
<textarea id= "explanation" rows= "6" > </textarea>
</div> <br /> <br />
<div >
<label > What you did:</label> <br />
<textarea id= "remark" rows= "6" > </textarea>
</div>
</div>
</div> <br />
</t>
<div class= "oe_error_detail" >
<pre > <t t-esc= "error.message" /> </pre>
<hr />
<pre > <t t-esc= "error.data.debug" /> </pre>
</div>
</t>
<t t-name= "Login" >
2012-04-08 16:52:25 +00:00
<div class= "oe_login" >
<div class= "oe_login_bottom" > </div>
<div class= "oe_login_error_message" > Invalid username or password</div>
<div class= "oe_login_pane" >
<div class= "oe_login_logo" > <img src= '/web/static/src/img/logo2.png' /> </div>
<form action= "" method= "post" >
<div class= "oe_login_dbpane" >
Database:
<input name= "db" t-att-value= "widget.selected_db || ''" />
</div>
<ul >
<li > Username</li>
<li > <input type= "text" name= "login" t-att-value= "widget.selected_login || ''" autofocus= "autofocus" /> </li>
<li > Password</li>
<li > <input type= "password" name= "password" t-att-value= "widget.selected_password || ''" /> </li>
<li > <button name= "submit" > Log in</button> </li>
</ul>
</form>
<div class= "oe_login_footer" >
<a href= "#" class= "oe_login_manage_db" > Manage Databases</a> |
<a href= "http://www.openerp.com" > Powered by <span > OpenERP</span> </a>
</div>
2012-04-02 12:26:45 +00:00
</div>
</div>
</t>
<t t-name= "Login.dblist" >
<select name= "db" >
<t t-foreach= "db_list" t-as= "db" >
<t t-if= "selected_db === db" >
<option t-att-value= "db" selected= "true" >
<t t-esc= "db" /> </option>
</t>
<t t-if= "selected_db !== db" >
<option t-att-value= "db" > <t t-esc= "db" /> </option>
</t>
</t>
</select>
</t>
2012-08-11 21:48:09 +00:00
2012-04-08 16:52:25 +00:00
<t t-name= "DatabaseManager" >
2012-08-11 21:48:09 +00:00
<div class= "oe_view_manager_view_form" >
<div class= "oe_form" >
<form id= "db_create" name= "create_db_form" style= "display: block;" >
<div class= "oe_view_manager oe_view_manager_current" >
<div class= "oe_view_manager_header" style= "padding: 8px;" >
<div class= "oe_header_row" >
<h2 class= "oe_view_title" >
<span class= "oe_view_title_text oe_breadcrumb_title" > Create Database</span>
</h2>
<button type= "submit" class= "oe_button oe_highlight db_create" > Create</button>
</div>
2012-08-07 06:50:51 +00:00
</div>
2012-08-11 21:48:09 +00:00
</div>
2012-04-08 22:42:01 +00:00
<table align= "center" class= "db_option_table" >
<tr >
<td > <label for= "super_admin_pwd" > Master password:</label> </td>
2012-08-11 21:48:09 +00:00
<td > <input type= "password" name= "super_admin_pwd" class= "required" value= "admin" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
<tr >
<td > <label for= "db_name" > New database name:</label> </td>
2012-05-15 07:53:20 +00:00
<td > <input type= "text" name= "db_name" class= "required" matches= "^[a-zA-Z][a-zA-Z0-9_]+$" autofocus= "true" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
<tr >
<td > <label for= "demo_data" > Load Demonstration data:</label> </td>
2012-08-11 21:48:09 +00:00
<td class= "oe_form_group_cell" >
<span class= "oe_form_field oe_form_field_boolean" >
<input type= "checkbox" name= "demo_data" />
</span>
</td>
2012-04-08 22:42:01 +00:00
</tr>
<tr >
<td > <label for= "db_lang" > Default language:</label> </td>
2012-08-11 21:48:09 +00:00
<td class= "oe_form_field oe_form_field_selection " >
2012-04-08 22:42:01 +00:00
<select name= "db_lang" t-if= "widget.lang_list" >
<t t-foreach= "widget.lang_list" t-as= "lang" >
2012-08-11 21:48:09 +00:00
<option t-att-value= "lang[0]" t-att-selected= "lang[0] === 'en_US' ? 'selected' : undefined" >
<t t-esc= "lang[1]" />
</option>
2012-04-08 22:42:01 +00:00
</t>
</select>
</td>
</tr>
<tr >
<td > <label for= "create_admin_pwd" > Admin password:</label> </td>
2012-08-11 21:48:09 +00:00
<td > <input type= "password" name= "create_admin_pwd" class= "required" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
<tr >
<td > <label for= "create_confirm_pwd" > Confirm password:</label> </td>
<td > <input type= "password" name= "create_confirm_pwd" class= "required" equalTo= "input[name=create_admin_pwd]" /> </td>
</tr>
</table>
</form>
2012-08-11 21:48:09 +00:00
<form id= "db_drop" name= "drop_db_form" style= "display: none; " >
<div class= "oe_view_manager oe_view_manager_current" >
<div class= "oe_view_manager_header" style= "padding: 8px;" >
<div class= "oe_header_row" >
<h2 class= "oe_view_title" >
<span class= "oe_view_title_text oe_breadcrumb_title" > Drop Database</span>
</h2>
<button type= "submit" class= "oe_button oe_highlight db_drop" > Drop</button>
</div>
2012-08-08 06:48:11 +00:00
</div>
2012-08-11 21:48:09 +00:00
</div>
2012-04-08 22:42:01 +00:00
<table align= "center" class= "db_option_table" >
<tr >
<td > <label for= "drop_db" > Database:</label> </td>
2012-08-11 21:48:09 +00:00
<td class= "oe_form_field oe_form_field_selection" >
2012-04-08 22:42:01 +00:00
<select t-if= "widget.db_list" name= "drop_db" autofocus= "autofocus" >
<t t-foreach= "widget.db_list" t-as= "db" >
2012-08-11 21:48:09 +00:00
<option t-att-value= "db" >
<t t-esc= "db" />
</option>
2012-04-08 22:42:01 +00:00
</t>
</select>
<input t-if= "!widget.db_list" name= "drop_db" class= "required" type= "text" autofocus= "autofocus" />
</td>
</tr>
<tr >
<td > <label for= "drop_password" > Master Password:</label> </td>
2012-08-11 21:48:09 +00:00
<td > <input type= "password" name= "drop_pwd" class= "required" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
</table>
</form>
2012-08-11 21:48:09 +00:00
<form id= "db_backup" name= "backup_db_form" target= "backup-target" action= "/web/database/backup" style= "display: none;" >
<div class= "oe_view_manager oe_view_manager_current" >
<div class= "oe_view_manager_header" style= "padding: 8px;" >
<div class= "oe_header_row" >
<h2 class= "oe_view_title" >
<span class= "oe_view_title_text oe_breadcrumb_title" > Backup Database</span>
</h2>
<button type= "submit" class= "oe_button oe_highlight db_backup" > Backup</button>
</div>
2012-08-08 06:48:11 +00:00
</div>
2012-08-11 21:48:09 +00:00
</div>
<input type= "hidden" name= "token" />
2012-04-08 22:42:01 +00:00
<table align= "center" class= "db_option_table" >
<tr >
<td > <label for= "backup_db" > Database:</label> </td>
2012-08-11 21:48:09 +00:00
<td class= "oe_form_field oe_form_field_selection " >
2012-04-08 22:42:01 +00:00
<select t-if= "widget.db_list" name= "backup_db" autofocus= "autofocus" >
<t t-foreach= "widget.db_list" t-as= "db" >
2012-08-11 21:48:09 +00:00
<option t-att-value= "db" >
<t t-esc= "db" />
</option>
2012-04-08 22:42:01 +00:00
</t>
</select>
<input t-if= "!widget.db_list" name= "backup_db" class= "required" type= "text" autofocus= "autofocus" />
</td>
</tr>
<tr >
<td > <label for= "backup_pwd" > Master Password:</label> </td>
2012-08-11 21:48:09 +00:00
<td > <input type= "password" name= "backup_pwd" class= "required" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
</table>
</form>
2012-08-11 21:48:09 +00:00
<form id= "db_restore" name= "restore_db_form" style= "display: none; " >
<div class= "oe_view_manager oe_view_manager_current" >
<div class= "oe_view_manager_header" style= "padding: 8px;" >
<div class= "oe_header_row" >
<h2 class= "oe_view_title" >
<span class= "oe_view_title_text oe_breadcrumb_title" > Restore Database</span>
</h2>
<button type= "submit" class= "oe_button oe_highlight db_restore" > Restore</button>
</div>
2012-08-08 06:48:11 +00:00
</div>
2012-08-11 21:48:09 +00:00
</div>
2012-04-08 22:42:01 +00:00
<table align= "center" class= "db_option_table" >
<tr >
<td > <label for= "restore_db" > File:</label> </td>
<td > <input type= "file" name= "db_file" class= "required" autofocus= "autofocus" /> </td>
</tr>
<tr >
<td > <label for= "restore_pwd" > Master Password:</label> </td>
<td > <input type= "password" name= "restore_pwd" class= "required" /> </td>
</tr>
<tr >
<td > <label for= "new_db" > New database name:</label> </td>
<td > <input type= "text" name= "new_db" class= "required" /> </td>
</tr>
</table>
</form>
2012-08-11 21:48:09 +00:00
<form id= "db_change_password" name= "change_pwd_form" style= "display: none;" >
<div class= "oe_view_manager oe_view_manager_current" >
<div class= "oe_view_manager_header" style= "padding: 8px;" >
<div class= "oe_header_row" >
<h2 class= "oe_view_title" >
<span class= "oe_view_title_text oe_breadcrumb_title" > Change Master Password</span>
</h2>
<button type= "submit" class= "oe_button oe_highlight db-change-password" > Change Password</button>
</div>
2012-08-08 06:48:11 +00:00
</div>
2012-08-11 21:48:09 +00:00
</div>
2012-04-08 22:42:01 +00:00
<table align= "center" class= "db_option_table" >
<tr >
<td > <label for= "old_pwd" > Master password:</label> </td>
<td > <input type= "password" name= "old_pwd" class= "required" minlength= "1" autofocus= "autofocus" /> </td>
</tr>
<tr >
<td > <label for= "new_pwd" > New master password:</label> </td>
<td > <input type= "password" name= "new_pwd" class= "required" minlength= "1" /> </td>
</tr>
<tr >
<td > <label for= "confirm_pwd" > Confirm new master password:</label> </td>
2012-08-11 21:48:09 +00:00
<td > <input type= "password" name= "confirm_pwd" class= "required" equalTo= "input[name=new_pwd]" minlength= "1" /> </td>
2012-04-08 22:42:01 +00:00
</tr>
</table>
</form>
2012-04-02 12:26:45 +00:00
</div>
</div>
</t>
2012-08-11 21:48:09 +00:00
<t t-name= "DatabaseManager.user_menu" >
<span class= "oe_right" >
<a id= "back-to-login" href= "#" > <span class= "oe_topbar_item oe_topbar_name" > Back to Login</span> </a>
</span>
</t>
<t t-name= "DatabaseManager.menu" >
<div class= "oe_secondary_menu_section" > Database Management</div>
<ul class= "oe_secondary_submenu" >
<li > <a href= "#db_create" > Create</a> </li>
<li > <a href= "#db_drop" > Drop</a> </li>
<li > <a href= "#db_backup" > Backup</a> </li>
<li > <a href= "#db_restore" > Restore</a> </li>
<li > <a href= "#db_change_password" > Password</a> </li>
</ul>
</t>
2011-09-27 15:53:47 +00:00
2012-08-08 19:28:55 +00:00
<t t-name= "ChangePassword" >
<form name= "change_password_form" method= "POST" >
<table align= "center" >
<tr >
<td > <label for= "old_pwd" > Old Password:</label> </td>
<td > <input type= "password" name= "old_pwd"
minlength="1" autofocus="autofocus"/></td>
</tr>
<tr >
<td > <label for= "new_password" > New Password:</label> </td>
<td > <input type= "password" name= "new_password"
2012-08-09 06:29:09 +00:00
minlength="1"/></td>
2012-08-08 19:28:55 +00:00
</tr>
<tr >
<td > <label for= "confirm_pwd" > Confirm Password:</label> </td>
<td > <input type= "password" name= "confirm_pwd"
minlength="1"/></td>
</tr>
<tr >
<td colspan= "2" align= "right" > <button class= "oe_button" > Change Password</button> </td>
</tr>
</table>
</form>
</t>
2011-03-22 11:49:19 +00:00
<t t-name= "Menu" >
2012-02-23 15:02:30 +00:00
<ul class= "oe_menu" t-if= "widget.data" >
<li t-foreach= "widget.data.data.children" t-as= "menu" >
2012-02-29 13:02:35 +00:00
<t t-call= "Menu.secondary.link" />
2012-02-23 15:02:30 +00:00
</li>
</ul>
2011-03-02 21:09:42 +00:00
</t>
2012-03-27 19:32:12 +00:00
<t t-name= "Menu.more" >
<li class= "oe_menu_more_container" >
2012-06-20 15:14:53 +00:00
<span class= "oe_topbar_item oe_menu_more_link oe_dropdown_toggle oe_dropdown_arrow" >
2012-06-19 21:22:12 +00:00
More
2012-06-20 15:14:53 +00:00
<ul class= "oe_menu_more oe_dropdown_menu" />
2012-06-19 21:22:12 +00:00
</span>
2012-03-27 19:32:12 +00:00
</li>
</t>
2011-03-22 11:49:19 +00:00
<t t-name= "Menu.secondary" >
2011-09-19 14:46:31 +00:00
<div t-foreach= "widget.data.data.children" t-as= "menu" style= "display: none" class= "oe_secondary_menu" t-att-data-menu-parent= "menu.id" >
2011-03-22 11:49:19 +00:00
<t t-foreach= "menu.children" t-as= "menu" >
2012-02-28 13:41:21 +00:00
<div class= "oe_secondary_menu_section" >
<t t-esc= "menu.name" />
<!--
Shall the section be still clickable ?
<t t-call= "Menu.secondary.link" />
-->
</div>
<t t-call= "Menu.secondary.submenu" />
2011-03-22 11:49:19 +00:00
</t>
</div>
</t>
2012-02-28 13:41:21 +00:00
<t t-name= "Menu.secondary.submenu" >
<ul t-if= "menu.children.length" class= "oe_secondary_submenu" >
<li t-foreach= "menu.children" t-as= "menu" >
<t t-call= "Menu.secondary.link" />
<!-- <span class="oe_menu_label">8</span> -->
<t t-call= "Menu.secondary.submenu" />
</li>
</ul>
</t>
<t t-name= "Menu.secondary.link" >
2012-08-08 14:16:41 +00:00
<a t-attf-href= "#menu_id=#{menu.id}&action=#{menu.action ? menu.action.split(',')[1] : ''}"
2012-02-28 13:41:21 +00:00
t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
2012-02-29 13:02:35 +00:00
t-att-data-menu="menu.id"
t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
2012-02-28 13:41:21 +00:00
<t t-esc= "menu.name" />
2012-05-09 08:41:39 +00:00
<t t-if= "menu.needaction_enabled and menu.needaction_counter" >
2012-07-26 16:11:06 +00:00
<div class= "oe_tag oe_tag_dark oe_menu_counter" >
2012-03-30 12:59:28 +00:00
<t t-esc= "menu.needaction_counter" />
2012-03-30 10:57:31 +00:00
</div>
</t>
2011-09-15 20:22:09 +00:00
</a>
2011-03-02 21:09:42 +00:00
</t>
2012-02-23 15:39:21 +00:00
2012-02-29 14:15:27 +00:00
<t t-name= "UserMenu" >
2012-06-20 15:14:53 +00:00
<span class= "oe_user_menu oe_topbar_item oe_dropdown_toggle oe_dropdown_arrow" >
2012-06-19 13:14:32 +00:00
<img class= "oe_topbar_avatar" t-att-data-default-src= "_s + '/web/static/src/img/user_menu_avatar.png'" />
<span class= "oe_topbar_name" />
2012-06-20 15:14:53 +00:00
<ul class= "oe_dropdown_menu" >
2012-06-19 13:14:32 +00:00
<li > <a href= "#" data-menu= "about" > About OpenERP</a> </li>
<li > <a href= "#" data-menu= "settings" > Preferences</a> </li>
<li > <a href= "#" data-menu= "logout" > Log out</a> </li>
</ul>
2012-06-19 20:55:30 +00:00
</span>
2012-02-23 17:44:39 +00:00
</t>
2012-04-27 22:11:50 +00:00
<t t-name= "UserMenu.about" >
2012-07-24 13:46:52 +00:00
<div class= "oe_about" >
2012-08-08 06:51:18 +00:00
<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>
2012-07-24 13:46:52 +00:00
<img class= "oe_logo" src= "/web/static/src/img/logo2.png" />
<h3 > Version <t t-esc= "version_info.version" /> </h3>
<div class= "oe_bottom" >
<p > Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
OpenERP is a trademark of the <a target= "_blank" href= "http://openerp.com/" style= "text-decoration: underline;" > OpenERP SA Company</a> .</p>
<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>
<p > For more information visit <a target= "_blank" href= "http://openerp.com/" style= "text-decoration: underline;" > OpenERP.com</a> </p>
</div>
2012-04-08 14:33:01 +00:00
</div>
2012-07-24 13:46:52 +00:00
2012-04-08 14:33:01 +00:00
</t>
2012-02-23 17:44:39 +00:00
2012-04-27 22:11:50 +00:00
<t t-name= "WebClient" >
2012-07-18 13:10:04 +00:00
<div class= "openerp openerp_webclient_container" >
2012-04-27 22:11:50 +00:00
<table class= "oe_webclient" >
<tr >
<td colspan= "2" class= "oe_topbar" >
<div class= "oe_menu_placeholder" />
<div class= "oe_user_menu_placeholder" />
<div class= "oe_systray" />
</td>
</tr>
<tr >
<td class= "oe_leftbar" valign= "top" >
2012-05-15 07:05:56 +00:00
<t t-js= "d" >
d.url = '/' + (window.location.search || '');
</t>
<a t-att-href= "url" class= "oe_logo" > <img t-att-src= '_s + "/web/static/src/img/logo.png"' /> </a>
2012-04-27 22:11:50 +00:00
<div class= "oe_secondary_menus_container" />
<div class= "oe_footer" >
Powered by <a href= "http://www.openerp.com" > <span > Open</span> ERP</a>
</div>
</td>
<td class= "oe_application" >
</td>
</tr>
</table>
2012-07-18 13:10:04 +00:00
</div>
2012-04-27 22:11:50 +00:00
</t>
2012-07-17 16:00:50 +00:00
<t t-name= "EmbedClient" >
2012-07-18 13:10:04 +00:00
<div class= "openerp" >
<div class= "oe_application" > </div>
</div>
2012-04-27 22:11:50 +00:00
</t>
2011-03-24 16:31:14 +00:00
<t t-name= "ViewManager" >
2012-04-08 14:33:01 +00:00
<div class= "oe_view_manager" >
2012-05-10 17:54:35 +00:00
<table class= "oe_view_manager_header" >
2012-08-02 14:46:23 +00:00
<col width= "20%" />
<col width= "25%" />
<col width= "20%" />
<col width= "35%" />
2012-06-12 13:15:43 +00:00
<tr class= "oe_header_row oe_header_row_top" >
2012-04-10 21:26:45 +00:00
<td colspan= "2" >
2012-05-10 17:54:35 +00:00
<h2 class= "oe_view_title" t-if= "widget.flags.display_title !== false" >
2012-07-05 14:22:46 +00:00
<span class= "oe_view_title_text oe_breadcrumb_title" />
2012-05-10 17:54:35 +00:00
</h2>
</td>
2012-07-12 15:26:35 +00:00
<td colspan= "2" >
2012-05-10 17:54:35 +00:00
<div class= "oe_view_manager_view_search" t-opentag= "true" />
2012-04-10 21:26:45 +00:00
</td>
</tr>
2012-05-10 17:54:35 +00:00
<tr class= "oe_header_row" >
<td >
<div class= "oe_view_manager_buttons" />
</td>
2012-07-12 15:26:35 +00:00
<td colspan= "2" >
2012-05-10 17:54:35 +00:00
<div class= "oe_view_manager_sidebar" />
</td>
2012-04-10 21:26:45 +00:00
<td >
<ul class= "oe_view_manager_switch oe_button_group oe_right" >
2012-06-20 16:41:44 +00:00
<t t-if= "widget.views_src.length > 1" t-foreach= "widget.views_src" t-as= "view" >
<li class= "oe_e" > <a t-attf-class= "oe_vm_switch_#{view.view_type}" t-att-data-view-type= "view.view_type" t-att-title= "_t('Switch to ') + (view.label || view.view_type)" >
2012-04-10 21:26:45 +00:00
</a> </li>
</t>
</ul>
<div class= "oe_view_manager_pager oe_right" />
</td>
</tr>
</table>
2012-05-10 17:54:35 +00:00
2012-04-08 14:33:01 +00:00
<div class= "oe_view_manager_body" >
2012-04-09 10:37:08 +00:00
<t t-foreach= "widget.views_src" t-as= "view" >
2012-04-09 23:44:40 +00:00
<div t-attf-class= "oe_view_manager_view_#{view.view_type}" />
2011-12-30 15:01:08 +00:00
</t>
2012-04-08 14:33:01 +00:00
</div>
</div>
2011-03-24 16:31:14 +00:00
</t>
2012-05-09 10:22:58 +00:00
2012-04-08 14:33:01 +00:00
<t t-name= "ViewManagerAction" t-extend= "ViewManager" >
2012-04-29 23:14:26 +00:00
<t t-jquery= "h2.oe_view_title" t-operation= "before" >
2012-04-09 10:37:08 +00:00
<select t-if= "widget.session.debug" class= "oe_debug_view" />
2011-09-12 12:57:38 +00:00
</t>
2011-09-12 08:24:26 +00:00
</t>
2011-12-13 11:35:21 +00:00
<t t-name= "ViewManagerDebug" >
<option value= "" > Debug View#<t t-esc= "view.fields_view.view_id" /> </option>
2012-04-10 14:29:01 +00:00
<option t-if= "view_manager.active_view === 'form'" value= "perm_read" data-views= "form,page" > View Log (perm_read)</option>
2012-04-10 11:28:34 +00:00
<option t-if= "view_manager.active_view === 'form'" value= "toggle_layout_outline" > Toggle Form Layout Outline</option>
2012-01-13 17:54:05 +00:00
<option value= "fields" > View Fields</option>
2012-01-24 17:01:11 +00:00
<option value= "fvg" > Fields View Get</option>
2012-05-18 14:00:01 +00:00
<option value= "manage_filters" > Manage Filters</option>
2012-01-10 11:23:28 +00:00
<t t-if= "view_manager.session.uid === 1" >
<option value= "manage_views" > Manage Views</option>
<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>
<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>
<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>
<option value= "edit_workflow" > Edit Workflow</option>
</t>
2011-12-13 11:35:21 +00:00
</t>
2012-01-24 17:01:11 +00:00
<t t-name= "ViewManagerDebugViewLog" >
<div class= "oe_debug_view_log" >
<label > ID:</label>
<span > <t t-esc= "perm.id" /> </span>
<label > XML ID:</label>
<span > <t t-esc= "perm.xmlid" /> </span>
<label > Creation User:</label>
<span > <t t-esc= "format(perm.create_uid, { 'type' : 'many2one' }, '/')" /> </span>
<label > Creation Date:</label>
<span > <t t-esc= "format(perm.create_date, { 'type' : 'datetime' }, '/')" /> </span>
<label > Latest Modification by:</label>
<span > <t t-esc= "format(perm.write_uid, { 'type' : 'many2one' }, '/')" /> </span>
<label > Latest Modification Date:</label>
<span > <t t-esc= "format(perm.write_date, { 'type' : 'datetime' }, '/')" /> </span>
</div>
</t>
2012-04-02 12:26:45 +00:00
<t t-name= "ViewPager" >
2012-04-10 10:08:16 +00:00
<div class= "oe_pager_value" >
2012-04-10 09:44:17 +00:00
<t t-raw= "__content__" />
2012-04-10 10:08:16 +00:00
</div>
2012-04-10 09:44:17 +00:00
<ul class= "oe_pager_group" >
<!--
<button class= "oe_button oe_button_pager" type= "button" data-pager-action= "first" >
<img t-att-src= '_s + "/web/static/src/img/pager_first.png"' />
</button>
-->
<li >
<a class= "oe_i" type= "button" data-pager-action= "previous" > (</a>
</li>
<li >
<a class= "oe_i" type= "button" data-pager-action= "next" > )</a>
</li>
<!--
<button class= "oe_button oe_button_pager" type= "button" data-pager-action= "last" >
<img t-att-src= '_s + "/web/static/src/img/pager_last.png"' />
</button>
-->
</ul>
2012-04-02 12:26:45 +00:00
</t>
2011-07-26 21:00:05 +00:00
<t t-name= "Sidebar" >
2012-04-09 13:14:38 +00:00
<div class= "oe_sidebar" >
<t t-foreach= "widget.sections" t-as= "section" >
<div class= "oe_form_dropdown_section" >
2012-06-20 15:14:53 +00:00
<button class= "oe_dropdown_toggle oe_dropdown_arrow" >
2012-06-20 10:21:26 +00:00
<t t-esc= "section.label" />
</button>
2012-07-26 14:29:57 +00:00
<ul class= "oe_dropdown_menu" >
<li t-foreach= "widget.items[section.name]" t-as= "item" t-att-class= "item.classname" >
<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" >
<t t-raw= "item.label" />
</a>
<a t-if= "section.name == 'files'" class= "oe_sidebar_delete_item" t-att-data-id= "item.id" title= "Delete this attachment" > x</a>
</li>
<li t-if= "section.name == 'files'" class= "oe_sidebar_add_attachment" >
<t t-call= "HiddenInputFile" >
<t t-set= "fileupload_id" t-value= "widget.fileupload_id" />
<t t-set= "fileupload_action" > /web/binary/upload_attachment</t>
<input type= "hidden" name= "model" t-att-value= "widget.dataset and widget.dataset.model" />
<input type= "hidden" name= "id" t-att-value= "widget.model_id" />
<input type= "hidden" name= "session_id" t-att-value= "widget.session.session_id" />
<span > Add...</span>
</t>
</li>
</ul>
2012-04-09 13:14:38 +00:00
</div>
</t>
2011-10-10 12:34:32 +00:00
</div>
</t>
2011-06-13 05:51:02 +00:00
<t t-name= "TreeView" >
2012-07-02 12:19:27 +00:00
<div class = "tree_header" >
<select t-if= "toolbar" > </select>
<button id = "tree_view_collapse" > Collapse All</button>
<button id = "tree_view_expand" > Expand All</button>
</div>
<table class= "oe-treeview-table" >
2011-08-09 11:25:27 +00:00
<thead >
<tr >
<th t-foreach= "fields_view" t-as= "field"
2012-07-02 12:19:27 +00:00
t-if="!field.attrs.modifiers.tree_invisible">
2011-08-09 11:25:27 +00:00
<t t-esc= "fields[field.attrs.name].string" />
</th>
</tr>
</thead>
<tbody >
</tbody>
</table>
2011-06-07 07:10:34 +00:00
</t>
2011-08-09 09:09:39 +00:00
<tr t-name= "TreeView.rows"
t-foreach="records" t-as="record"
2011-08-09 11:25:27 +00:00
t-att-id="'treerow_' + record.id"
2012-07-03 12:19:14 +00:00
t-att-data-id="record.id" t-att-data-level="level">
2011-08-09 08:56:28 +00:00
<t t-set= "children" t-value= "record[children_field]" />
2011-11-23 11:05:18 +00:00
<t t-set= "class" t-value= "children and children.length ? 'treeview-tr' : 'treeview-td'" />
2012-07-02 12:19:27 +00:00
<t t-set= "rank" t-value= "'oe-treeview-first'" />
2012-07-03 12:19:14 +00:00
<t t-set= "style" t-value= "'background-position: ' + 19*(level-1) + 'px; padding-left: ' + 19*(level-1) + 'px;'" />
2011-08-09 11:25:27 +00:00
<td t-foreach= "fields_view" t-as= "field"
t-if="!field.attrs.modifiers.tree_invisible"
2011-08-09 12:35:47 +00:00
t-att-data-id="record.id"
2012-01-12 11:22:04 +00:00
t-att-style="color_for(record) + style "
2012-05-30 21:26:51 +00:00
t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
2012-01-16 12:47:40 +00:00
2012-01-12 11:22:04 +00:00
<span t-if= "!field.attrs.modifiers.invisible" >
2011-08-09 15:44:40 +00:00
<t t-esc= "render(record[field.attrs.name], fields[field.attrs.name])" />
2011-08-09 09:09:39 +00:00
</span>
2012-01-16 12:47:40 +00:00
2011-11-23 11:05:18 +00:00
<t t-set= "class" t-value= "'treeview-td'" />
2012-02-13 11:52:20 +00:00
<t t-set= "rank" t-value= "''" />
2012-01-12 11:22:04 +00:00
<t t-set= "style" t-value= "''" />
2011-08-09 09:09:39 +00:00
</td>
</tr>
2011-11-07 13:45:39 +00:00
2012-06-27 14:12:49 +00:00
<table t-name= "ListView" class= "oe_list_content" >
2012-04-30 00:01:58 +00:00
<t t-set= "columns_count" t-value= "visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)" />
2012-04-09 20:03:34 +00:00
<thead >
2012-04-20 17:44:27 +00:00
<tr t-if= "(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)" >
2011-07-15 12:50:44 +00:00
<th t-att-colspan= "columns_count" >
2012-04-09 19:35:09 +00:00
<div class= "oe_list_buttons" />
<div class= "oe_list_sidebar" />
<div class= "oe_list_pager" />
2011-04-07 15:35:27 +00:00
</th>
</tr>
2012-06-27 14:12:49 +00:00
<tr t-if= "options.header" class= "oe_list_header_columns" >
2011-05-24 11:57:55 +00:00
<t t-foreach= "columns" t-as= "column" >
<th t-if= "column.meta" >
<t t-esc= "column.string" />
</th>
</t>
2011-10-24 09:17:30 +00:00
<th t-if= "options.selectable" width= "1" >
2012-06-27 14:12:49 +00:00
<input type= "checkbox" class= "oe_list_record_selector" />
2012-04-09 19:35:09 +00:00
</th>
2011-04-07 12:12:22 +00:00
<t t-foreach= "columns" t-as= "column" >
2011-05-24 11:57:55 +00:00
<th t-if= "!column.meta and column.invisible !== '1'" t-att-data-id= "column.id"
2012-08-08 07:56:29 +00:00
t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}">
2012-04-09 19:35:09 +00:00
<t t-if= "column.tag !== 'button'" > <t t-esc= "column.string" /> </t>
2011-04-07 12:12:22 +00:00
</th>
</t>
2012-08-08 19:38:42 +00:00
<th t-if= "options.deletable" width= "13px" />
2011-04-07 12:12:22 +00:00
</tr>
2011-04-07 08:36:24 +00:00
</thead>
2012-04-09 20:03:34 +00:00
<tfoot >
2011-05-25 13:04:14 +00:00
<tr >
2011-06-07 11:36:29 +00:00
<td t-if= "options.selectable" />
2012-06-27 14:12:49 +00:00
<td t-foreach= "aggregate_columns" t-as= "column" class= "oe_list_footer oe_number"
2011-07-25 10:29:49 +00:00
t-att-data-field="column.id" t-att-title="column.label">
2011-05-25 13:04:14 +00:00
</td>
2011-06-07 11:36:29 +00:00
<td t-if= "options.deletable" />
2011-05-25 13:04:14 +00:00
</tr>
</tfoot>
2011-04-12 11:17:12 +00:00
</table>
2012-04-10 13:55:37 +00:00
<div t-name= "ListView.buttons" class= "oe_list_buttons" >
2012-06-12 13:15:43 +00:00
<t t-if= "!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable" >
2012-06-19 08:45:26 +00:00
<button type= "button" class= "oe_button oe_list_add oe_highlight" >
2012-04-09 20:16:47 +00:00
<t t-esc= "widget.options.addable" />
2012-04-09 19:35:09 +00:00
</button>
2012-07-11 11:29:59 +00:00
<span class= "oe_alternative" t-if= "widget.options.import_enabled" >
2012-07-02 16:09:51 +00:00
<span class= "oe_fade" > or</span> <a href= "#" class= "oe_bold oe_list_button_import" > Import</a>
2012-07-10 14:32:28 +00:00
</span>
2012-04-10 13:55:37 +00:00
</t>
</div>
2012-04-10 11:26:56 +00:00
<t t-name= "ListView.pager" >
2012-04-10 13:55:37 +00:00
<div class= "oe_list_pager" t-att-colspan= "widget.columns_count" >
<t t-if= "!widget.no_leaf and widget.options.pager !== false" t-call= "ViewPager" >
2012-06-27 14:12:49 +00:00
<span class= "oe_list_pager_state" >
2012-04-09 19:35:09 +00:00
</span>
</t>
</div>
2011-12-13 14:49:55 +00:00
</t>
2011-08-17 13:16:35 +00:00
<t t-name= "ListView.rows" t-foreach= "records.length" t-as= "index" >
<t t-call= "ListView.row" >
<t t-set= "record" t-value= "records.at(index)" />
</t>
2011-03-02 21:09:42 +00:00
</t>
2012-07-26 15:57:42 +00:00
<tr t-name= "ListView.row"
2011-09-25 18:04:07 +00:00
t-att-data-id="record.get('id')"
2012-04-18 11:53:16 +00:00
t-att-style="view.style_for(record)">
2012-07-11 08:11:16 +00:00
<t t-set= "asData" t-value= "record.toForm().data" />
2011-05-24 11:57:55 +00:00
<t t-foreach= "columns" t-as= "column" >
2012-07-26 09:17:34 +00:00
<td t-if= "column.meta" > </td>
2011-05-24 11:57:55 +00:00
</t>
2012-06-27 14:12:49 +00:00
<th t-if= "options.selectable" class= "oe_list_record_selector" width= "1" >
2012-01-18 12:05:54 +00:00
<t t-set= "checked" t-value= "options.select_view_id == record.get('id') ? 'checked' : null" />
<input t-if= "options.radio" type= "radio" name= "radiogroup" t-att-checked= "checked" />
<input t-if= "!options.radio" type= "checkbox" name= "radiogroup" t-att-checked= "checked" />
2011-11-10 12:15:50 +00:00
</th>
2011-04-06 13:58:37 +00:00
<t t-foreach= "columns" t-as= "column" >
2012-07-11 08:11:16 +00:00
<t t-set= "number" t-value= "column.type === 'integer' or column.type == 'float'" />
<t t-set= "modifiers" t-value= "column.modifiers_for(asData)" />
2011-05-24 11:57:55 +00:00
<td t-if= "!column.meta and column.invisible !== '1'" t-att-title= "column.help"
2012-08-08 19:38:42 +00:00
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' : ''}"
2012-07-18 13:37:12 +00:00
t-att-data-field="column.id"
><t t-raw= "render_cell(record, column)" /> </td>
2011-04-06 13:58:37 +00:00
</t>
2012-08-08 19:38:42 +00:00
<td t-if= "options.deletable" class= 'oe_list_record_delete' width= "13px" >
2012-04-10 15:41:56 +00:00
<button type= "button" name= "delete" class= "oe_i" > d</button>
2011-04-07 15:13:19 +00:00
</td>
2011-04-06 13:58:37 +00:00
</tr>
2012-07-10 14:32:28 +00:00
<t t-extend= "ListView.buttons" >
<t t-jquery= "button.oe_list_add" t-operation= "after" >
<button class= "oe_button oe_list_save oe_highlight"
2012-07-18 14:01:31 +00:00
type="button">Save</button>
2012-07-10 14:32:28 +00:00
</t>
2012-07-11 14:20:48 +00:00
<t t-jquery= "a.oe_list_button_import" t-operation= "after" >
<a href= "#" class= "oe_bold oe_list_discard" > discard</a>
</t>
2012-05-22 10:04:48 +00:00
</t>
2012-07-26 09:17:34 +00:00
<t t-extend= "ListView.row" >
<!-- adds back padding to row being rendered after edition, if necessary
(if not deletable add back padding), otherwise the row being added is
missing columns
-->
<t t-jquery= "> :last" t-operation= "after" >
<td t-if= "edited and !options.deletable" class= "oe-listview-padding" />
</t>
</t>
2012-05-22 10:04:48 +00:00
2012-04-09 18:44:45 +00:00
<t t-name= "FormView" >
<div class= "oe_formview" >
<div class= "oe_form_buttons" />
<div class= "oe_form_sidebar" />
<div class= "oe_form_pager" />
<div class= "oe_form_container" />
</div>
</t>
2012-04-10 13:55:37 +00:00
<div t-name= "FormView.buttons" class= "oe_form_buttons" >
<t t-if= "widget.options.action_buttons !== false" >
2012-04-09 21:30:43 +00:00
<span class= "oe_form_buttons_view" >
2012-08-08 07:38:21 +00:00
<div style= "display: inline-block;" > <!-- required for the bounce effect on button -->
<button type= "button" class= "oe_button oe_form_button_edit" > Edit</button>
</div>
2012-04-09 21:30:43 +00:00
<button type= "button" class= "oe_button oe_form_button_create" > Create</button>
</span>
<span class= "oe_form_buttons_edit" >
2012-06-28 14:32:52 +00:00
<button type= "button" class= "oe_button oe_form_button_save oe_highlight" > Save</button> <span class= "oe_fade" > or</span> <a href= "#" class= "oe_bold oe_form_button_cancel" > Discard</a>
2012-04-09 21:30:43 +00:00
</span>
2012-04-10 13:55:37 +00:00
</t>
</div>
2012-04-09 18:44:45 +00:00
<t t-name= "FormView.pager" >
2012-04-10 13:55:37 +00:00
<div class= "oe_form_pager" >
<t t-if= "widget.options.pager !== false" t-call= "ViewPager" >
2012-04-09 18:44:45 +00:00
<span class= "oe_pager_index" > 0</span> <span class= "oe_pager_separator" > / </span> <span class= "oe_pager_count" > 0</span>
</t>
</div>
2011-11-29 14:58:10 +00:00
</t>
2012-05-10 10:35:13 +00:00
<form t-name= "FormView.set_default" >
2012-02-08 12:21:53 +00:00
<t t-set= "args" t-value= "widget.dialog_options.args" />
<table style= "width: 100%" >
<tr >
<td >
<label for= "formview_default_fields"
class="oe_label oe_align_right">
Default:
</label>
</td>
2012-03-26 12:29:50 +00:00
<td class= "oe_form_required" >
2012-02-08 12:21:53 +00:00
<select id= "formview_default_fields" >
<option value= "" />
<option t-foreach= "args.fields" t-as= "field"
t-att-value="field.name">
2012-02-09 15:14:10 +00:00
<t t-esc= "field.string" /> = <t t-esc= "field.displayed" />
2012-02-08 12:21:53 +00:00
</option>
</select>
</td>
</tr>
<tr t-if= "args.conditions.length" >
<td >
<label for= "formview_default_conditions"
class="oe_label oe_align_right">
Condition:
</label>
</td>
<td >
<select id= "formview_default_conditions" >
<option value= "" />
<option t-foreach= "args.conditions" t-as= "cond"
t-att-value="cond.name + '=' + cond.value">
2012-02-09 15:14:10 +00:00
<t t-esc= "cond.string" /> =<t t-esc= "cond.displayed" />
2012-02-08 12:21:53 +00:00
</option>
</select>
</td>
</tr>
<tr >
<td colspan= "2" >
<input type= "radio" id= "formview_default_self"
value="self" name="scope" checked="checked"/>
<label for= "formview_default_self" class= "oe_label"
style="display: inline;">
Only you
</label>
<br />
<input type= "radio" id= "formview_default_all"
value="all" name="scope"/>
<label for= "formview_default_all" class= "oe_label"
style="display: inline;">
All users
</label>
</td>
</tr>
</table>
</form>
2012-03-14 17:09:49 +00:00
2012-03-21 15:57:22 +00:00
<t t-name= "FormRenderingForm" >
2012-05-31 09:08:30 +00:00
<div t-attf-class= "#{classnames}" >
</div>
</t>
<t t-name= "FormRenderingSheet" >
2012-03-28 14:37:20 +00:00
<div class= "oe_form_sheetbg" >
2012-04-10 10:29:51 +00:00
<div t-attf-class= "oe_form_sheet oe_form_sheet_width #{classnames}" >
2012-03-28 14:37:20 +00:00
</div>
2012-03-21 10:53:36 +00:00
</div>
</t>
2012-03-14 17:09:49 +00:00
<t t-name= "FormRenderingGroup" >
2012-05-29 15:14:46 +00:00
<t t-if= "string" t-call= "FormRenderingSeparator" />
2012-06-13 16:54:14 +00:00
<table border= "0" cellpadding= "0" cellspacing= "0" t-attf-class= "oe_form_group #{classnames}" />
2012-03-14 17:09:49 +00:00
</t>
<t t-name= "FormRenderingNotebook" >
2012-07-16 21:44:15 +00:00
<div class= "oe_clear" >
2012-06-19 08:45:26 +00:00
<ul t-attf-class= "oe_notebook #{classnames}" >
2012-04-17 08:30:16 +00:00
<li t-foreach= "pages" t-as= "page" t-att-modifiers= "page.modifiers" >
2012-03-15 10:53:24 +00:00
<a t-attf-href= "##{page.id}" >
<t t-esc= "page.string" />
2012-03-14 17:09:49 +00:00
</a>
</li>
</ul>
</div>
</t>
<t t-name= "FormRenderingNotebookPage" >
2012-06-19 08:45:26 +00:00
<div t-attf-class= "oe_notebook_page #{classnames}" t-att-id= "id" >
2012-03-21 10:53:36 +00:00
</div>
2012-03-14 17:09:49 +00:00
</t>
2012-03-15 14:16:22 +00:00
<t t-name= "FormRenderingSeparator" >
2012-07-17 06:52:40 +00:00
<div t-attf-class= "oe_horizontal_separator oe_clear #{classnames}" >
2012-03-15 14:16:22 +00:00
<t t-esc= "string" />
</div>
</t>
2012-03-14 17:09:49 +00:00
<t t-name= "FormRenderingLabel" >
2012-03-27 12:47:04 +00:00
<label t-att-for= "_for"
2012-03-14 17:09:49 +00:00
t-att-title="help"
2012-04-10 10:29:51 +00:00
t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
2012-03-14 17:09:49 +00:00
<t t-esc= "string" />
</label>
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "Widget" >
2011-03-16 14:00:45 +00:00
Unhandled widget
2011-11-16 16:46:39 +00:00
<t t-js= "dict" > console.warn('Unhandled widget', dict.widget);</t>
2011-03-16 14:00:45 +00:00
</t>
2011-11-14 20:59:16 +00:00
<t t-name= "WidgetLabel.tooltip" >
<div class= "oe_tooltip_string" t-if= "widget.string" >
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.string" /> <t t-if= "debug and widget.nolabel" > (nolabel)</t>
2011-11-14 20:59:16 +00:00
</div>
2012-04-23 15:01:31 +00:00
<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>
2011-11-14 20:59:16 +00:00
<ul t-if= "debug" class= "oe_tooltip_technical" >
<li data-item= "field" t-if= "widget.name" >
<span class= "oe_tooltip_technical_title" > Field:</span>
<t t-esc= "widget.name" />
</li>
<li data-item= "object" t-if= "widget.view and widget.view.fields_view" >
<span class= "oe_tooltip_technical_title" > Object:</span>
<t t-esc= "widget.view.fields_view.model" />
</li>
<li data-item= "type" t-if= "widget.field" >
<span class= "oe_tooltip_technical_title" > Type:</span>
<t t-esc= "widget.field.type" />
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.widget" data-item= "widget" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > Widget:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.widget" />
2011-11-14 20:59:16 +00:00
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.size || (widget.field and widget.field.size)" data-item= "size" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > Size:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.size || widget.field.size" />
2011-11-14 20:59:16 +00:00
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.context" data-item= "context" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > Context:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.context_string" />
2011-11-14 20:59:16 +00:00
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.domain" data-item= "domain" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > Domain:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.domain_string" />
2011-11-14 20:59:16 +00:00
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item= "modifiers" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > Modifiers:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.modifiers" />
2011-11-14 20:59:16 +00:00
</li>
2012-02-09 12:07:47 +00:00
<li t-if= "widget.field and widget.field.change_default" data-item= "change_default" >
2012-02-09 12:01:39 +00:00
<span class= "oe_tooltip_technical_title" > Change default:</span>
Yes
</li>
2012-03-14 17:09:49 +00:00
<li t-if= "widget.node.attrs.on_change" data-item= "on_change" >
2011-11-14 20:59:16 +00:00
<span class= "oe_tooltip_technical_title" > On change:</span>
2012-03-14 17:09:49 +00:00
<t t-esc= "widget.node.attrs.on_change" />
2011-11-14 20:59:16 +00:00
</li>
<li t-if= "widget.field and widget.field.relation" data-item= "relation" >
<span class= "oe_tooltip_technical_title" > Relation:</span>
<t t-esc= "widget.field.relation" />
</li>
<li t-if= "widget.field and widget.field.selection" data-item= "selection" >
<span class= "oe_tooltip_technical_title" > Selection:</span>
<ul >
2011-11-24 13:46:27 +00:00
<li t-foreach= "widget.field.selection" t-as= "option" >
2011-11-14 20:59:16 +00:00
[<t t-esc= "option[0]" /> ]
<t t-if= "option[1]" > - </t>
<t t-esc= "option[1]" />
</li>
</ul>
</li>
</ul>
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldChar" >
2012-07-10 09:44:31 +00:00
<span t-att-class= "'oe_form_field '+widget.widget_class" t-att-style= "widget.node.attrs.style" >
2012-05-30 21:26:51 +00:00
<t t-if= "!widget.get('effective_readonly')" >
2012-03-19 10:29:04 +00:00
<input t-att-type= "widget.password ? 'password' : 'text'"
2012-03-20 14:10:58 +00:00
t-att-id="widget.id_for_label"
2012-03-27 13:55:49 +00:00
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-05-09 08:14:21 +00:00
t-att-placeholder="widget.node.attrs.placeholder"
2012-03-16 11:22:23 +00:00
/><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" />
2012-05-30 21:26:51 +00:00
</t>
</span>
2011-09-19 13:57:17 +00:00
</t>
2011-05-12 16:25:50 +00:00
<t t-name= "FieldEmail" >
2012-07-10 10:12:05 +00:00
<span class= "oe_form_field oe_form_field_email" t-att-style= "widget.node.attrs.style" >
2012-06-27 10:26:49 +00:00
<a t-if= "widget.get('effective_readonly')" href= "#" class= "oe_form_uri" target= "_blank" />
2012-05-30 21:26:51 +00:00
<t t-if= "!widget.get('effective_readonly')" >
<div >
2012-03-27 13:55:49 +00:00
<input type= "text"
t-att-id="widget.id_for_label"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-05-09 08:14:21 +00:00
t-att-placeholder="widget.node.attrs.placeholder"
2012-03-27 13:55:49 +00:00
/>
2012-05-30 21:26:51 +00:00
</div>
</t>
</span>
2011-05-12 16:25:50 +00:00
</t>
2012-05-30 21:26:51 +00:00
<t t-name= "FieldUrl" t-extend= "FieldEmail" >
<t t-jquery= "span:first" >
this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
2012-03-16 11:44:24 +00:00
</t>
2011-05-19 13:55:22 +00:00
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldText" >
2012-07-10 09:44:31 +00:00
<div class= "oe_form_field oe_form_field_text" t-att-style= "widget.node.attrs.style" >
2012-04-18 16:10:47 +00:00
<textarea rows= "6"
t-att-name="widget.name"
class="field_text"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-06-27 15:22:34 +00:00
t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
2012-08-08 09:47:43 +00:00
></textarea> <img class= "oe_field_translate oe_input_icon"
t-if="widget.field.translate and !widget.get('effective_readonly')"
t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
/>
2012-04-18 16:10:47 +00:00
</div>
2011-03-16 14:00:45 +00:00
</t>
2012-08-13 15:22:27 +00:00
<t t-name= "FieldTextHtml" >
2012-08-13 15:40:11 +00:00
<div t-att-class= "'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
t-att-style="widget.node.attrs.style">
<t t-if= "! widget.get('effective_readonly')" >
2012-08-13 15:22:27 +00:00
<textarea />
2012-08-13 15:40:11 +00:00
</t>
2012-08-13 15:22:27 +00:00
</div>
</t>
2012-06-01 15:32:11 +00:00
<t t-name= "web.datepicker" >
2012-06-04 09:32:39 +00:00
<span >
<t t-set= "placeholder" t-value= "widget.getParent().node and widget.getParent().node.attrs.placeholder" />
2012-06-01 15:32:11 +00:00
<input type= "text" class= "oe_datepicker_container" disabled= "disabled" style= "display: none;" />
<input type= "text"
t-att-name="widget.name"
t-att-placeholder="placeholder"
2012-06-04 09:32:39 +00:00
class="oe_datepicker_master"
2012-06-01 15:32:11 +00:00
/><img class= "oe_input_icon oe_datepicker_trigger" t-att-src= '_s + "/web/static/src/img/ui/field_calendar.png"'
title="Select date" width="16" height="16" border="0"/>
</span>
</t>
2012-06-04 09:32:39 +00:00
<t t-name= "FieldDate" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_datepicker_root oe_form_field_date" t-att-style= "widget.node.attrs.style" />
2012-06-04 09:32:39 +00:00
</t>
<t t-name= "FieldDatetime" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style= "widget.node.attrs.style" />
2011-03-16 14:00:45 +00:00
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldSelection" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_form_field_selection" t-att-style= "widget.node.attrs.style" >
2012-05-30 21:26:51 +00:00
<select t-if= "!widget.get('effective_readonly')"
t-att-name="widget.name"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
t-att-id="widget.id_for_label">
<t t-foreach= "widget.values" t-as= "option" >
<option > <t t-esc= "option[1]" /> </option>
</t>
</select>
</span>
2011-03-16 14:00:45 +00:00
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldMany2One" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style= "widget.node.attrs.style" >
2012-07-18 10:17:29 +00:00
<t t-if= "widget.get('effective_readonly')" >
2012-08-18 20:16:32 +00:00
<a t-if= "! widget.options.no_open" href= "#" class= "oe_form_uri" />
<span t-if= "widget.options.no_open" href= "#" class= "oe_form_uri" />
2012-07-18 10:17:29 +00:00
<span class= "oe_form_m2o_follow" />
</t>
2012-05-30 21:26:51 +00:00
<t t-if= "!widget.get('effective_readonly')" >
2012-08-18 20:16:32 +00:00
<a t-if= "! widget.options.no_open" href= "#" tabindex= "-1"
2012-08-08 19:38:42 +00:00
class="oe_m2o_cm_button oe_e">/</a>
2012-05-30 21:26:51 +00:00
<div >
2012-03-27 13:55:49 +00:00
<input type= "text"
t-att-id="widget.id_for_label"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-05-09 08:14:21 +00:00
t-att-placeholder="widget.node.attrs.placeholder"
2012-03-27 13:55:49 +00:00
/>
2012-06-27 14:12:49 +00:00
<span class= "oe_m2o_drop_down_button" >
2012-05-30 21:26:51 +00:00
<img t-att-src= '_s + "/web/static/src/img/down-arrow.png"' />
</span>
</div>
</t>
</span>
2012-03-13 15:14:35 +00:00
</t>
2012-05-07 12:54:34 +00:00
<t t-name= "FieldMany2ManyTags" >
2012-07-12 13:32:50 +00:00
<div class= "oe_form_field oe_tags" t-att-style= "widget.node.attrs.style" >
2012-05-07 15:15:48 +00:00
<t t-if= "! widget.get('effective_readonly')" >
2012-06-27 15:25:35 +00:00
<textarea rows= "1" style= "width: 100%"
t-att-placeholder="widget.node.attrs.placeholder"></textarea>
2012-05-07 15:15:48 +00:00
</t>
2012-05-04 11:06:15 +00:00
</div>
</t>
2012-07-12 12:56:37 +00:00
<t t-name= "FieldMany2ManyTag" >
2012-05-07 15:15:48 +00:00
<t t-set= "i" t-value= "0" />
<t t-foreach= "elements" t-as= "el" >
2012-07-12 13:32:50 +00:00
<span class= "oe_tag" t-att-data-index= "i" >
2012-05-07 15:15:48 +00:00
<t t-esc= "el[1]" />
</span>
<t t-set= "i" t-value= "i + 1" />
2012-03-20 10:26:50 +00:00
</t>
2012-03-13 15:14:35 +00:00
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldReference" >
2012-07-10 09:44:31 +00:00
<table class= "oe_form_field oe_form_field_reference" border= "0" cellpadding= "0" cellspacing= "0" t-att-style= "widget.node.attrs.style" >
2012-04-20 09:40:34 +00:00
<tr >
2012-06-01 17:10:53 +00:00
<td t-attf-class= "oe_form_frame_cell oe_form_selection" >
<span t-attf-class= "oe_form_view_reference_selection" />
2012-04-20 09:40:34 +00:00
</td>
2012-06-01 17:10:53 +00:00
<td t-attf-class= "oe_form_frame_cell oe_form_many2one" nowrap= "true" >
<span t-attf-class= "oe_form_view_reference_m2o" />
2012-04-20 09:40:34 +00:00
</td>
</tr>
</table>
2011-03-16 14:00:45 +00:00
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "FieldBoolean" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_form_field_boolean" t-att-style= "widget.node.attrs.style" >
2012-03-15 16:21:07 +00:00
<input type= "checkbox"
2012-03-22 20:46:34 +00:00
t-att-id="widget.id_for_label"
2012-03-15 16:21:07 +00:00
t-att-name="widget.name"
2012-03-27 13:55:49 +00:00
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-03-29 10:20:48 +00:00
class="field_boolean"/>
2012-03-27 13:55:49 +00:00
</span>
2011-03-16 14:00:45 +00:00
</t>
2011-04-12 09:26:31 +00:00
<t t-name= "FieldProgressBar" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_form_field_progressbar" t-att-style= "widget.node.attrs.style" >
2011-05-09 14:10:01 +00:00
<span > </span>
2012-05-30 21:26:51 +00:00
</span>
2011-04-12 09:26:31 +00:00
</t>
2012-07-02 08:41:19 +00:00
<t t-name= "FieldStatus" >
2012-08-27 14:03:10 +00:00
<ul t-att-class= "widget.options.clickable ? 'oe_form_steps_clickable' : 'oe_form_steps'" t-att-style= "widget.node.attrs.style" />
2012-07-02 08:41:19 +00:00
</t>
2012-03-28 13:17:35 +00:00
<t t-name= "FieldStatus.content" >
2012-08-18 22:10:35 +00:00
<t t-foreach= "widget.selection" t-as= "i" >
<li t-att-class= "i[0] === widget.selected_value ? 'oe_active' : ''" t-att-data-id= "i[0]" >
<span class= "label" > <t t-esc= "i[1]" /> </span>
<!-- are you mit ? -->
2012-08-13 18:29:46 +00:00
<span class= "arrow" > <span > </span> </span>
2012-07-02 08:41:19 +00:00
</li>
</t>
2012-03-28 13:17:35 +00:00
</t>
2011-05-19 12:58:45 +00:00
<t t-name= "FieldBinaryImage" >
2012-07-10 09:44:31 +00:00
<span class= "oe_form_field oe_form_field_image" t-att-style= "widget.node.attrs.style" >
2012-06-19 08:45:26 +00:00
<div class= "oe_form_field_image_controls oe_edit_only" >
2012-06-13 10:05:16 +00:00
<t t-call= "HiddenInputFile" >
<t t-set= "fileupload_id" t-value= "widget.fileupload_id" />
2012-08-03 15:37:58 +00:00
Edit
2012-06-13 10:05:16 +00:00
</t>
2012-06-27 14:12:49 +00:00
<div class= "oe_form_binary_progress" style= "display: none" >
2012-06-04 14:42:11 +00:00
<img t-att-src= '_s + "/web/static/src/img/throbber.gif"' width= "16" height= "16" />
<b > Uploading ...</b>
</div>
2012-05-28 17:21:14 +00:00
</div>
2012-05-30 21:26:51 +00:00
</span>
2011-04-12 09:26:31 +00:00
</t>
2012-03-23 15:04:48 +00:00
<t t-name= "FieldBinaryImage-img" >
2012-06-04 14:42:11 +00:00
<img t-att-src= 'url'
2012-03-23 15:04:48 +00:00
t-att-border="widget.readonly ? 0 : 1"
t-att-name="widget.name"
t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
/>
</t>
2011-05-19 12:58:45 +00:00
<t t-name= "FieldBinaryFile" >
2012-03-19 16:13:58 +00:00
<t t-if= "!widget.get('effective_readonly')" >
2012-07-10 09:44:31 +00:00
<table class= "oe_form_field oe_form_field_binary" cellpadding= "0" cellspacing= "0" border= "0" t-att-style= "widget.node.attrs.style" >
2012-03-19 16:13:58 +00:00
<tr >
<td >
<input type= "text" size= "1" readonly= "readonly"
t-att-name="widget.name"
2012-03-27 13:55:49 +00:00
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
2012-03-29 10:20:48 +00:00
class="field_binary"
2012-03-19 16:13:58 +00:00
/>
</td>
2012-06-27 14:12:49 +00:00
<td class= "oe_form_binary" nowrap= "true" >
2012-03-19 16:13:58 +00:00
<table cellspacing= "0" cellpadding= "0" border= "0" >
<tr >
<td >
2012-06-13 10:05:16 +00:00
<t t-call= "HiddenInputFile" >
<t t-set= "fileupload_id" t-value= "widget.fileupload_id" />
<t t-set= "fileupload_style" > width: 83px;</t>
<button class= "oe_button oe_field_button" type= "button" title= "Set Image" >
<img t-att-src= '_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"' />
<span > Select</span>
</button>
</t>
2012-03-19 16:13:58 +00:00
</td>
<td >
2012-06-27 14:12:49 +00:00
<a class= "oe_form_binary_file_save_data" >
<button class= "oe_button oe_form_binary_file_save" type= "button" title= "Save As" >
2012-06-14 15:00:10 +00:00
<img t-att-src= '_s + "/web/static/src/img/icons/gtk-save.png"' />
<span > Save As</span>
</button>
</a>
2012-03-19 16:13:58 +00:00
</td>
<td >
2012-06-27 14:12:49 +00:00
<button class= "oe_button oe_form_binary_file_clear" type= "button" title= "Clear" >
2012-03-19 16:13:58 +00:00
<img t-att-src= '_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"' />
<span > Clear</span>
</button>
</td>
</tr>
</table>
</td>
2012-06-27 14:12:49 +00:00
<td class= "oe_form_binary_progress" style= "display: none" nowrap= "true" >
2012-03-19 16:13:58 +00:00
<img t-att-src= '_s + "/web/static/src/img/throbber.gif"' width= "16" height= "16" />
<b > Uploading ...</b>
</td>
</tr>
</table>
</t>
<t t-if= "widget.get('effective_readonly')" >
2012-07-10 09:44:31 +00:00
<span t-att-style= "widget.node.attrs.style" >
2012-03-19 16:13:58 +00:00
<a href= "javascript:void(0)" class= "oe_form_uri" />
2012-04-25 08:38:42 +00:00
</span>
2012-03-19 16:13:58 +00:00
</t>
2011-04-12 09:26:31 +00:00
</t>
2012-06-13 10:05:16 +00:00
<t t-name= "HiddenInputFile" >
2012-06-13 14:10:16 +00:00
<div t-attf-class= "oe_hidden_input_file #{fileupload_class or ''}" t-att-style= "fileupload_style" >
2012-06-27 14:12:49 +00:00
<form class= "oe_form_binary_form" t-att-target= "fileupload_id"
2012-06-13 14:10:16 +00:00
method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
2012-06-13 10:05:16 +00:00
<input type= "hidden" name= "session_id" value= "" />
<input type= "hidden" name= "callback" t-att-value= "fileupload_id" />
<t t-raw= "__content__" />
2012-06-27 14:12:49 +00:00
<input type= "file" class= "oe_form_binary_file" name= "ufile" />
2012-06-13 10:05:16 +00:00
</form>
<iframe t-att-id= "fileupload_id" t-att-name= "fileupload_id" style= "display: none" />
</div>
</t>
2011-03-17 17:25:08 +00:00
<t t-name= "WidgetButton" >
2012-03-27 13:55:49 +00:00
<button type= "button" class= "oe_button oe_form_button"
2012-07-10 09:44:31 +00:00
t-att-style="widget.node.attrs.style"
2012-03-27 13:55:49 +00:00
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus">
2012-07-26 00:58:35 +00:00
<img t-if= "widget.node.attrs.icon" t-att-src= "_s + widget.node.attrs.icon" width= "16" height= "16" />
2012-03-20 08:39:28 +00:00
<span t-if= "widget.string" > <t t-esc= "widget.string" /> </span>
</button>
2011-03-16 14:00:45 +00:00
</t>
2011-11-14 20:59:16 +00:00
<t t-name= "WidgetButton.tooltip" t-extend= "WidgetLabel.tooltip" >
<t t-jquery= "div.oe_tooltip_string" t-operation= "replace" >
<div class= "oe_tooltip_string" t-if= "debug || widget.string" >
<t t-if= "debug" >
Button
<t t-if= "widget.string" > : </t>
<t t-if= "!widget.string" > (no string)</t>
</t>
<t t-esc= "widget.string" />
</div>
</t>
<t t-jquery= "ul.oe_tooltip_technical" t-operation= "append" >
<li t-if= "widget.node.attrs.special" data-item= "special" >
<span class= "oe_tooltip_technical_title" > Special:</span>
<t t-esc= "widget.node.attrs.special" />
</li>
<t t-set= "button_type" t-value= "widget.node.attrs.type" />
<li t-if= "button_type" data-item= "button_type" >
<span class= "oe_tooltip_technical_title" > Button Type:</span>
<t t-esc= "button_type" />
</li>
<li t-if= "button_type === 'object'" data-item= "button_method" >
<span class= "oe_tooltip_technical_title" > Method:</span>
<t t-esc= "widget.node.attrs.name" />
</li>
<li t-if= "button_type === 'action'" data-item= "button_action" >
<span class= "oe_tooltip_technical_title" > Action ID:</span>
<t t-esc= "widget.node.attrs.name" />
</li>
</t>
</t>
2011-11-07 13:45:39 +00:00
2012-04-08 14:33:01 +00:00
<t t-name= "TranslateDialog" >
<table t-if= "widget.view.translatable_fields" class= "oe_form oe_translation_form" border= "0" cellpadding= "0" cellspacing= "0" width= "100%" >
<tr >
<td class= "oe_form_separator" width= "1%" nowrap= "nowrap" >
<div class= "oe_horizontal_separator" > Field</div>
</td>
<th t-foreach= "widget.languages" align= "left" >
<div class= "oe_horizontal_separator" > <t t-esc= "name" /> </div>
</th>
</tr>
<tr t-foreach= "widget.view.translatable_fields" t-as= "field" t-att-data-field= "field.name" >
<td class= "oe_form_group_cell" width= "1%" nowrap= "nowrap" >
2012-08-08 09:47:43 +00:00
<label class= "oe_label" > <t t-esc= "field.string" /> :</label>
2012-04-08 14:33:01 +00:00
</td>
<td t-foreach= "widget.languages" t-as= "lg" class= "oe_form_group_cell" >
2012-08-08 09:47:43 +00:00
<input t-if= "field.field.type == 'char'" type= "text" t-attf-name= "#{lg.code}-#{field.name}" value= "" data-value= "" class= "oe_trad_field" style= "width: 100%" />
<textarea t-if= "field.field.type == 'text'" t-attf-name= "#{lg.code}-#{field.name}" data-value= "" class= "oe_trad_field" style= "width: 100%" > </textarea>
2012-04-08 14:33:01 +00:00
</td>
</tr>
</table>
</t>
2012-07-26 09:17:34 +00:00
<t t-name= "AbstractFormPopup.render" >
<div >
<table style= "width:100%" >
<tr style= "width:100%" >
<td style= "width:100%" >
<div class= "oe_popup_search" style= "width:100%" > </div>
</td>
</tr>
<tr style= "width:100%" >
<td style= "width:100%" >
<div class= "oe_popup_list" style= "width:100%" > </div>
</td>
</tr>
</table>
<div class= "oe_popup_form" style= "width:100%" > </div>
</div>
</t>
<t t-name= "SelectCreatePopup.search.buttons" >
<t t-if= "! widget.options.disable_multiple_selection" >
<button type= "button" class= "oe_button oe_selectcreatepopup-search-select" disabled= "disabled" > Select</button>
or
</t>
<a class= "oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href= "javascript:void(0)" > Cancel</a>
</t>
<t t-name= "AbstractFormPopup.buttons" >
2012-08-10 14:50:48 +00:00
<t t-if= "! readonly" >
<t t-if= "! multi_select" >
<button type= "button" class= "oe_button oe_abstractformpopup-form-save oe_highlight" > Save</button>
</t>
<t t-if= "multi_select" >
<button type= "button" class= "oe_button oe_abstractformpopup-form-save-new oe_highlight" > Save & New</button>
<button type= "button" class= "oe_button oe_abstractformpopup-form-save oe_highlight" > Save & Close</button>
</t>
or
2012-07-26 09:17:34 +00:00
</t>
2012-08-10 14:50:48 +00:00
<a class= "oe_button oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href= "javascript:void(0)" >
<t t-if= "! readonly" >
Discard
</t>
<t t-if= "readonly" >
Close
</t>
</a>
2012-07-26 09:17:34 +00:00
</t>
2012-04-08 14:33:01 +00:00
<t t-name= "One2Many.viewmanager" t-extend= "ViewManager" >
<t t-jquery= ".oe-view-manager-header" >
this.attr('t-if', 'views.length != 1');
</t>
</t>
<t t-name= "One2Many.formview" t-extend= "FormView" >
<t t-jquery= ".oe_form_buttons" t-operation= "inner" >
<button type= "button" class= "oe_button oe_form_button_create" > Add</button>
</t>
</t>
2012-04-09 19:35:09 +00:00
<t t-name= "One2Many.listview" t-extend= "ListView" >
<t t-jquery= "thead.ui-widget-header > tr:first" >
this.removeAttr('t-if');
</t>
<t t-jquery= "tfoot > tr:last-child" t-operation= "replace" />
<t t-jquery= "td.oe-actions" >
this.removeAttr('t-if');
</t>
<t t-jquery= "td.oe-actions" t-operation= "prepend" >
<h3 class= "oe_view_title" > <t t-esc= "fields_view.arch.attrs.string" /> </h3>
</t>
</t>
2012-04-08 14:33:01 +00:00
<div t-name= "SearchView" class= "oe_searchview" >
2012-04-24 10:59:41 +00:00
<div class= "oe_searchview_facets" />
2012-04-30 14:39:07 +00:00
<div class= "oe_searchview_clear" />
2012-06-28 13:06:20 +00:00
<div class= "oe_searchview_unfold_drawer" title= "Advanced Search..." />
2012-04-27 15:04:36 +00:00
<div class= "oe_searchview_drawer" />
2012-07-24 12:46:07 +00:00
<button type= "button" class= "oe_searchview_search"
title="Search Again">Search</button>
2012-04-08 14:33:01 +00:00
</div>
2012-04-24 10:59:41 +00:00
<div t-name= "SearchView.InputView"
class="oe_searchview_input"
contenteditable="true"/>
2012-05-14 14:24:49 +00:00
<!-- tabindex: makes div focusable -->
<div t-name= "SearchView.FacetView"
2012-07-26 16:11:06 +00:00
class="oe_tag oe_tag_dark oe_searchview_facet"
2012-05-14 14:24:49 +00:00
tabindex="0"
2012-05-24 18:16:48 +00:00
><span class= "oe_facet_remove" > x< /span
2012-05-14 14:24:49 +00:00
><span class= "oe_facet_category oe_i" t-if= "widget.model.has('icon')" >
2012-05-04 09:57:17 +00:00
<t t-esc= "widget.model.get('icon')" />
< /span
><span class= "oe_facet_category" t-if= "!widget.model.has('icon')" >
2012-04-30 14:39:07 +00:00
<t t-esc= "widget.model.get('category')" />
2012-05-14 14:24:49 +00:00
</span > <span class= "oe_facet_values"
/></div>
<span t-name= "SearchView.FacetView.Value" class= "oe_facet_value" >
2012-04-24 10:59:41 +00:00
<t t-esc= "widget.model.get('label')" />
</span>
2011-07-22 15:05:37 +00:00
<t t-name= "SearchView.managed-filters" >
2012-06-27 14:12:49 +00:00
<option class= "oe_search_filters_title" value= "" > Filters</option>
2011-11-24 10:21:30 +00:00
<optgroup label= "-- Filters --" >
<t t-foreach= "filters" t-as= "filter" >
2012-02-09 16:15:42 +00:00
<option t-attf-value= "get:#{filter_index}"
2012-02-09 16:30:50 +00:00
t-att-disabled="filter.disabled and 'disabled'"
2012-02-14 14:29:54 +00:00
t-att-title="filter.disabled and disabled_filter_message">
2012-02-09 16:15:42 +00:00
<t t-esc= "filter.name" />
</option>
2011-11-24 10:21:30 +00:00
</t>
</optgroup>
<optgroup label= "-- Actions --" >
2012-01-04 16:59:37 +00:00
<option value= "advanced_filter" > Add Advanced Filter</option>
2011-11-24 10:21:30 +00:00
<option value= "save_filter" > Save Filter</option>
<option value= "manage_filters" > Manage Filters</option>
</optgroup>
2011-07-22 15:05:37 +00:00
</t>
2011-07-25 11:37:40 +00:00
<t t-name= "SearchView.managed-filters.add" >
<div >
<p > Filter Name:</p>
<input type= "text" />
<p > (Any existing filter with the same name will be replaced)</p>
</div>
</t>
2011-03-24 12:46:53 +00:00
<t t-name= "SearchView.render_lines" >
2012-06-27 14:12:49 +00:00
<table class= "oe_search_render_line" border= "0" cellspacing= "0" cellpadding= "0"
2011-03-24 12:46:53 +00:00
t-foreach="lines" t-as="line">
<tr >
2011-12-12 11:36:24 +00:00
<td t-foreach= "line" t-as= "widget" class= "oe_searchview_field" >
2011-03-24 12:46:53 +00:00
<t t-raw= "widget.render(defaults)" />
</td>
</tr>
2011-03-02 21:09:42 +00:00
</table>
2011-03-07 16:20:47 +00:00
</t>
2011-03-24 12:46:53 +00:00
<button t-name= "SearchView.filter" type= "button"
2011-03-24 16:18:42 +00:00
t-att-id="element_id"
2011-03-24 12:46:53 +00:00
t-att-title="attrs.help"
2011-04-06 13:58:37 +00:00
t-att-class="classes.join(' ')"
2011-12-16 15:11:08 +00:00
t-att-style="style"
2011-04-06 13:58:37 +00:00
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
2011-12-14 13:45:12 +00:00
<img t-att-src= "_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width= "16" height= "16" />
2011-11-16 13:48:05 +00:00
<br t-if= "attrs.string" />
2011-03-24 12:46:53 +00:00
<t t-esc= "attrs.string" />
</button>
2012-03-26 14:50:17 +00:00
<ul t-name= "SearchView.filters" >
2012-05-21 09:05:47 +00:00
<li t-foreach= "widget.filters" t-as= "filter"
2012-05-21 10:07:31 +00:00
t-att-title="filter.attrs.string ? filter.attrs.help : undefined">
2012-05-11 09:58:22 +00:00
<t t-esc= "filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'" />
2012-03-26 14:50:17 +00:00
</li>
</ul>
2012-03-27 15:08:11 +00:00
<t t-name= "SearchView.filters.facet" >
<div class= "category oe_filter_category" > <t t-esc= "facet.get('category')" /> </div>
2012-04-06 11:46:33 +00:00
<t t-set= "val" t-value= "facet.get('json')" />
<div t-if= "!(val instanceof Array)" class= "search_facet_input_container" >
<t t-esc= "facet.get('value')" />
2012-03-27 15:08:11 +00:00
</div>
2012-04-06 11:46:33 +00:00
<t t-if= "val instanceof Array" >
<div class= "search_facet_input_container"
t-foreach="facet.get('json')" t-as="filter">
<t t-esc= "filter.attrs.string || filter.attrs.name" />
</div>
</t>
2012-03-27 15:08:11 +00:00
<div class= "search_facet_remove VS-icon VS-icon-cancel" />
</t>
2011-03-24 12:46:53 +00:00
<t t-name= "SearchView.field" >
2011-09-02 09:19:22 +00:00
<label t-att-class= "'oe_label' + (attrs.help ? '_help' : '')"
t-att-title="attrs.help"
2011-12-16 15:11:08 +00:00
t-att-for="element_id"
t-att-style="style">
2011-03-24 12:46:53 +00:00
<t t-esc= "attrs.string || attrs.name" />
2011-09-02 09:19:22 +00:00
<span t-if= "attrs.help" > ?</span>
2011-03-24 12:46:53 +00:00
</label>
2011-12-16 15:11:08 +00:00
<div t-att-style= "style" >
2011-05-12 11:37:24 +00:00
<input type= "text" size= "15" t-att-name= "attrs.name"
2011-04-06 13:58:37 +00:00
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
2011-03-25 10:34:25 +00:00
t-att-id="element_id"
t-att-value="defaults[attrs.name] || ''"/>
2011-03-24 14:23:30 +00:00
<t t-if= "filters.length" t-raw= "filters.render(defaults)" />
2011-03-02 21:09:42 +00:00
</div>
</t>
2011-09-21 11:50:54 +00:00
<t t-name= "SearchView.date" >
<label t-att-class= "'oe_label' + (attrs.help ? '_help' : '')"
t-att-title="attrs.help"
2011-12-16 15:11:08 +00:00
t-att-for="element_id"
t-att-style="style">
2011-09-21 11:50:54 +00:00
<t t-esc= "attrs.string || attrs.name" />
<span t-if= "attrs.help" > ?</span>
</label>
2011-12-16 15:11:08 +00:00
<div t-att-style= "style" >
2012-02-13 09:40:15 +00:00
<span t-att-id= "element_id" />
2011-09-21 11:50:54 +00:00
<t t-if= "filters.length" t-raw= "filters.render(defaults)" />
</div>
</t>
2011-03-24 18:47:13 +00:00
<t t-name= "SearchView.field.selection" >
2011-09-02 09:35:17 +00:00
<label t-att-title= "attrs.help"
t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
2011-12-16 15:11:08 +00:00
t-att-for="element_id"
t-att-style="style">
2011-03-24 18:47:13 +00:00
<t t-esc= "attrs.string || attrs.name" />
2011-09-02 09:35:17 +00:00
<span t-if= "attrs.help" > ?</span>
2011-03-24 18:47:13 +00:00
</label>
2011-12-16 15:11:08 +00:00
<div t-att-style= "style" >
2011-04-06 13:58:37 +00:00
<select t-att-name= "attrs.name" t-att-id= "element_id"
t-att-autofocus="attrs.default_focus === '1' || undefined">
[FIX] m2o fields with selection widget in search view
Plan was originally to just ignore this because "it should just work"
but turns out m2o and m2o[@widget=selection] fields have very
different behaviors when it comes to default values, especially
custom domains and contexts:
* An m2o field uses its string value always (behaves like a char
field), for UI and clarity purposes we added an [[name, '=', id]]
case when the user specifically selects an autocompletion value,
but that's not "cannon", when it comes to dealing with custom
domains (filter_domain) and contexts the field always uses its
string value.
* An m2o[@widget=selection] field on the other hand uses its ids
always (behaves like a selection field).
That's not entirely true, really, because it has the converse to
what we implemented on the m2o field in the web client (in the GTK
client): if there is no @filter_domain *and* the user has entered a
value which is not in the dropdown (it's a combobox in the GTK
client), then it falls back on using 'ilike'. This string value is
*not* used in custom domains and custom filters, which simply are
not submitted.
This second section has *not* been implemented so far in the web
client, we'll come round to it if people actually need it.
bzr revid: xmo@openerp.com-20111006063949-fl5rbg3wwubcaay8
2011-10-06 06:39:49 +00:00
<option t-if= "prepend_empty" />
2011-03-24 18:47:13 +00:00
<t t-foreach= "attrs.selection" t-as= "option" >
2011-03-25 10:34:25 +00:00
<t t-set= "selected" t-value= "defaults[attrs.name] === option[0]" />
<option t-if= "selected"
2012-01-31 13:38:07 +00:00
t-attf-selected="selected"
t-att-value="option_index">
2011-03-25 10:34:25 +00:00
<t t-esc= "option[1]" />
</option>
2011-10-06 09:53:01 +00:00
<option t-if= "!selected" t-att-value= "option_index" >
2011-03-24 18:47:13 +00:00
<t t-esc= "option[1]" />
</option>
</t>
</select>
<t t-if= "filters.length" t-raw= "filters.render(defaults)" />
</div>
2011-03-07 16:20:47 +00:00
</t>
2011-03-28 07:37:22 +00:00
<t t-name= "SearchView.util.expand" >
2012-03-30 15:42:27 +00:00
<div t-att-class= "'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')" >
2011-03-28 07:37:22 +00:00
<a t-if= "label" class= "searchview_group_string" href= "#" >
<t t-esc= "label" />
2011-03-24 18:22:22 +00:00
</a>
2011-03-24 12:46:53 +00:00
<div class= "searchview_group_content" >
2011-03-28 07:37:22 +00:00
<t t-raw= "content" />
2011-03-24 12:46:53 +00:00
</div>
</div>
2011-03-02 21:09:42 +00:00
</t>
2011-03-28 07:37:22 +00:00
<t t-name= "SearchView.group" >
2011-03-30 15:04:21 +00:00
<t t-call= "SearchView.util.expand" >
<t t-set= "expand" t-value= "attrs.expand" />
<t t-set= "label" t-value= "attrs.string" />
<t t-set= "content" >
<t t-call= "SearchView.render_lines" />
</t>
</t>
2011-03-28 07:37:22 +00:00
</t>
2012-06-11 08:50:19 +00:00
<div t-name= "SearchView.Filters" class= "oe_searchview_filters oe_searchview_section" >
2012-04-27 15:04:36 +00:00
2012-05-08 16:21:37 +00:00
</div>
2012-06-11 08:50:19 +00:00
<div t-name= "SearchView.CustomFilters" class= "oe_searchview_custom oe_searchview_section" >
2012-05-25 17:00:53 +00:00
<div >
<h3 > <span class= "oe_i" > M</span> Custom Filters</h3>
<ul class= "oe_searchview_custom_list" />
2012-05-31 11:16:12 +00:00
<div class= "oe_searchview_custom" >
<h4 > Save current filter</h4>
<form >
<p > <input id= "oe_searchview_custom_input" placeholder= "Filter name" /> </p>
<p > <input id= "oe_searchview_custom_public" type= "checkbox" />
<label for= "oe_searchview_custom_public" > Share with all users</label> </p>
<button > Save</button>
</form>
</div>
2012-05-25 17:00:53 +00:00
</div>
<div >
</div>
2012-04-27 15:04:36 +00:00
</div>
2012-08-09 15:20:43 +00:00
2012-03-30 15:42:27 +00:00
<div t-name= "SearchView.advanced" class= "oe_searchview_advanced" >
2012-05-15 06:22:54 +00:00
<h4 > Advanced Search</h4>
2012-04-03 09:56:15 +00:00
<form >
2012-03-30 15:42:27 +00:00
<ul >
</ul>
2012-05-24 18:16:48 +00:00
<button class= "oe_add_condition button" type= "button" > Add a condition</button> <br />
2012-04-03 09:56:15 +00:00
<button class= "oe_apply" type= "submit" > Apply</button>
</form>
2012-03-30 15:42:27 +00:00
</div>
2011-03-28 12:42:47 +00:00
<t t-name= "SearchView.extended_search.proposition" >
2012-03-30 15:42:27 +00:00
<li >
2011-03-30 15:04:21 +00:00
<select class= "searchview_extended_prop_field" >
2012-01-24 14:33:18 +00:00
<t t-foreach= "widget.attrs.fields" t-as= "field" >
2012-06-08 10:38:42 +00:00
<option t-att= "{'selected': field === widget.attrs.selected ? 'selected' : null}"
2011-03-30 15:04:21 +00:00
t-att-value="field.name">
2011-03-31 12:00:10 +00:00
<t t-esc= "field.string" />
2011-03-30 15:04:21 +00:00
</option>
</t>
</select>
2011-03-31 12:00:10 +00:00
<select class= "searchview_extended_prop_op" />
<span class= "searchview_extended_prop_value" />
2012-05-25 17:00:53 +00:00
<a class= "searchview_extended_delete_prop button" > x</a>
2012-03-30 15:42:27 +00:00
</li>
2011-03-28 16:49:45 +00:00
</t>
<t t-name= "SearchView.extended_search.proposition.char" >
2012-05-16 12:25:51 +00:00
<input class= "field_char" />
2011-03-28 12:42:47 +00:00
</t>
2011-09-21 12:03:47 +00:00
<t t-name= "SearchView.extended_search.proposition.empty" >
2012-05-16 12:25:51 +00:00
<span />
2011-05-19 15:12:49 +00:00
</t>
2011-05-19 16:18:35 +00:00
<t t-name= "SearchView.extended_search.proposition.integer" >
2012-05-16 12:25:51 +00:00
<input type= "number" class= "field_integer" step= "1" />
2011-05-19 16:18:35 +00:00
</t>
<t t-name= "SearchView.extended_search.proposition.float" >
2012-05-16 12:25:51 +00:00
<input type= "number" class= "field_float" step= "0.01" />
2011-05-19 16:18:35 +00:00
</t>
2011-05-19 17:00:41 +00:00
<t t-name= "SearchView.extended_search.proposition.selection" >
2012-05-16 12:25:51 +00:00
<select >
2012-01-24 14:58:10 +00:00
<t t-foreach= "widget.field.selection" t-as= "element" >
2011-05-19 17:00:41 +00:00
<option t-att-value= "element[0]" > <t t-esc= "element[1]" /> </option>
</t>
</select>
</t>
2012-04-08 14:33:01 +00:00
2011-07-22 12:52:14 +00:00
<t t-name= "ExportView" >
<a id= "exportview" href= "javascript: void(0)" style= "text-decoration: none;color: #3D3D3D;" > Export</a>
</t>
2012-06-27 14:12:49 +00:00
<table t-name= "ExportTreeView" class= "oe_export"
2011-08-26 15:04:42 +00:00
style="background-color: #F3F3F3;">
<tr >
<td colspan= "3" >
This wizard will export all data that matches the current search criteria to a CSV file.
You can export all data or only the fields that can be reimported after modification.
</td>
</tr>
<tr >
<td colspan= "3" >
<label for= "import_compat" > Export Type:</label>
<select id= "import_compat" name= "import_compat" >
2011-08-31 11:28:54 +00:00
<option value= "yes" > Import Compatible Export</option>
<option value= "" > Export all Data</option>
2011-08-26 15:04:42 +00:00
</select>
2011-07-22 12:52:14 +00:00
2011-08-30 13:23:26 +00:00
<label for= "export_format" > Export Formats</label>
<select id= "export_format" name= "export_format" > </select>
2011-08-26 15:04:42 +00:00
</td>
</tr>
2011-07-22 12:52:14 +00:00
2011-08-26 15:04:42 +00:00
<tr >
<th > Available fields</th>
<th />
<th >
Fields to export
<a style= "color: blue; text-decoration: none;" href= "#" id= "export_new_list" > Save fields list</a>
<div id= "savenewlist" > </div>
<div id= "ExistsExportList" > </div>
</th>
</tr>
<tr style= "height: 400px;" >
<td class= "oe_export_fields_selector_left" >
<div id= "left_field_panel" >
</div>
</td>
<td class= "oe_export_fields_selector_center" >
2011-12-20 11:55:00 +00:00
<!-- TODO: replace ids by 'oe_*' classes -->
<button class= "oe_button" id= "add_field" > Add</button>
<button class= "oe_button" id= "remove_field" > Remove</button>
<button class= "oe_button" id= "remove_all_field" > Remove All</button>
2011-08-26 15:04:42 +00:00
</td>
<td class= "oe_export_fields_selector_right" >
<select name= "fields_list" id= "fields_list"
multiple="multiple"></select>
</td>
</tr>
</table>
<table t-name= "ExportTreeView-Secondary"
id="field-tree-structure" class="oe_export_fields_selector_export"
cellspacing="0" cellpadding="0">
<tr > <th class= "oe_export_tree_header" > Name </th> </tr>
<t t-call= "ExportTreeView-Secondary.children" />
</table>
<tr t-name= "ExportTreeView-Secondary.children"
t-foreach="fields" t-as="field"
t-att-id="'treerow-' + field.id" class="oe_export_row">
<td >
<table class= "tree_grid" border= "0" >
<tr class= "oe_export_row" >
<t t-foreach= "(field.id).split('/')" t-as= "level" >
<t t-if= "(field.id).split('/')[0] != level" >
2012-02-07 18:22:55 +00:00
<td width= "18" t-translation= "off" > & nbsp;</td>
2011-08-26 15:04:42 +00:00
</t>
</t>
<td valign= "top" align= "left" style= "cursor: pointer;" width= "18" >
2011-08-31 14:03:05 +00:00
<t t-if= "field.children" >
2011-08-26 15:04:42 +00:00
<t t-if= "(field.id).split('/').length != 3" >
2011-12-14 13:45:12 +00:00
<img t-att-id= "'parentimg-' + field.id" t-att-src= '_s + "/web/static/src/img/expand.gif"' width= "16" height= "16" border= "0" />
2011-07-22 12:52:14 +00:00
</t>
2011-08-26 15:04:42 +00:00
</t>
</td>
<td id= "tree-column" valign= "middle" align= "left" style= "cursor: pointer;" >
<a t-att-id= "'export-' + field.id" t-att-string= "field.string" href= "javascript: void(0);" style= "text-decoration: none;" >
<t t-esc= "field.string" />
</a>
</td>
</tr>
</table>
</td>
</tr>
2011-07-22 12:52:14 +00:00
<t t-name= "ExportNewList" >
<tr >
<th > <label > Save as:</label> </th>
<td > <input size= "10" type= "text" id= "savelist_name" /> </td>
2011-12-20 11:55:00 +00:00
<td > <button class= "oe_button oe_export_button_export" id= "add_export_list" > Ok</button> </td>
2011-07-22 12:52:14 +00:00
</tr>
</t>
<t t-name= "Exists.ExportList" >
2011-09-05 15:32:36 +00:00
<label for= "saved_export_list" > Saved exports:</label>
<select id= "saved_export_list" >
<option > </option>
<t t-foreach= "existing_exports" t-as= "export" >
<option t-att-value= "export.id" > <t t-esc= "export.name" /> </option>
</t>
</select>
2011-12-20 11:55:00 +00:00
<button class= "oe_button oe_export_button_export" id= "delete_export_list" type= "button" > Delete</button>
2011-07-22 12:52:14 +00:00
</t>
2011-09-02 05:56:32 +00:00
2011-07-27 06:43:25 +00:00
<t t-name= "ImportView" >
<a id= "importview" href= "javascript: void(0)" style= "text-decoration: none;color: #3D3D3D;" > Import</a>
</t>
<t t-name= "ImportDataView" >
2011-10-24 14:17:37 +00:00
<form name= "import_data" id= "import_data" action= "" method= "post" enctype= "multipart/form-data"
2012-06-27 14:12:49 +00:00
class="oe_import oe_import_no_result">
2012-01-12 10:02:06 +00:00
<input type= "hidden" name= "session_id" t-att-value= "widget.session.session_id" />
2011-09-22 15:57:51 +00:00
<h2 class= "separator horizontal" > 1. Import a .CSV file</h2>
<p > Select a .CSV file to import. If you need a sample of file to import,
you should use the export tool with the "Import Compatible" option.
</p>
<p >
<label for= "csvfile" > CSV File:</label>
<input type= "file" id= "csvfile" size= "50" name= "csvfile" />
</p>
2012-06-27 14:12:49 +00:00
<h2 class= "separator horizontal oe_import_result" > 2. Check your file format</h2>
<div id= "result" class= "oe_import_result" > </div>
<fieldset class= "oe_closed oe_import_result" >
2011-10-24 14:17:37 +00:00
<legend > Import Options</legend>
<table >
2011-09-22 15:57:51 +00:00
<tr >
<td colspan= "4" >
<label for= "file_has_headers" > Does your file have titles?</label>
<input type= "checkbox" checked= "checked"
2011-09-23 09:45:00 +00:00
id="file_has_headers"/>
2011-09-22 15:57:51 +00:00
</td>
</tr>
<tr >
<td > <label for= "csv_separator" > Separator:</label> </td>
<td > <input type= "text" name= "csvsep" id= "csv_separator" value= "," /> </td>
<td > <label for= "csv_delimiter" > Delimiter:</label> </td>
<td > <input type= "text" name= "csvdel" id= "csv_delimiter" value= '"' /> </td>
</tr>
<tr >
<td > <label for= "csv_encoding" > Encoding:</label> </td>
<td >
<select name= "csvcode" id= "csv_encoding" >
<option value= "utf-8" > UTF-8</option>
<option value= "latin1" > Latin 1</option>
</select>
</td>
<td > <label for= "csv_skip" title= "For use if CSV files have titles on multiple lines, skips more than a single line during import" >
Lines to skip<sup > ?</sup> :</label> </td>
2011-09-23 09:56:09 +00:00
<td > <input type= "number" id= "csv_skip" value= "0" min= "0" /> </td>
2011-09-22 15:57:51 +00:00
</tr>
</table>
</fieldset>
2011-10-24 14:27:44 +00:00
</form>
</t>
<t t-name= "ImportView.result" >
<table class= "oe_import_grid" width= "100%" style= "margin: 5px 0;" >
<tr t-if= "headers" class= "oe_import_grid-header" >
<td t-foreach= "headers" t-as= "header" class= "oe_import_grid-cell" >
<t t-esc= "header" /> </td>
</tr>
<tr >
<td t-foreach= "records[0]" t-as= "column" >
2012-06-27 14:12:49 +00:00
<input class= "sel_fields" placeholder= "--- Don't Import ---" /> <span class= "oe_m2o_drop_down_button" >
2011-12-14 13:45:12 +00:00
<img t-att-src= '_s + "/web/static/src/img/down-arrow.png"' /> </span>
2011-10-24 14:27:44 +00:00
</td>
</tr>
<tr t-foreach= "records" t-as= "record" class= "oe_import_grid-row" >
<td t-foreach= "record" t-as= "cell" class= "oe_import_grid-cell" >
<t t-esc= "cell" /> </td>
</tr>
</table>
2011-07-27 06:43:25 +00:00
</t>
2011-09-23 09:23:46 +00:00
<t t-name= "ImportView.error" >
2011-12-01 11:00:07 +00:00
<p style= "white-space:pre;" > The import failed due to:<t t-esc= "error.message" /> </p>
2011-09-23 09:23:46 +00:00
<t t-if= "error.preview" >
<p > Here is a preview of the file we could not import:</p>
<pre > <t t-esc= "error.preview" /> </pre>
2011-08-08 06:27:03 +00:00
</t>
</t>
2012-05-25 12:09:47 +00:00
<div t-name= "Many2ManyKanban.quick_create" class= "oe_kanban_quick_create" >
2012-05-25 12:52:39 +00:00
<input t-att-placeholder= "_t('Type name to search')" />
2012-05-25 12:09:47 +00:00
</div>
2012-08-16 16:11:19 +00:00
<t t-name= "Throbber" >
<div >
<div class= "oe_blockui_spin" style= "height: 50px" >
</div>
<br />
2012-08-21 09:30:00 +00:00
<div class= "oe_throbber_message" style= "color:white" > </div>
2012-08-16 16:11:19 +00:00
</div>
</t>
2011-11-23 21:53:56 +00:00
</templates>