1954 lines
89 KiB
XML
1954 lines
89 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<templates id="template" xml:space="preserve">
|
||
<t t-name="EmptyComponent">
|
||
<div></div>
|
||
</t>
|
||
<t t-name="Loading">
|
||
<div class="oe_loading">
|
||
Loading...
|
||
</div>
|
||
</t>
|
||
<t t-name="Notification">
|
||
<div class="oe_notification" t-translation="off">
|
||
<div id="oe_notification_default">
|
||
<a class="ui-notify-cross ui-notify-close" href="#">x</a>
|
||
<h1>#{title}</h1>
|
||
<p>#{text}</p>
|
||
</div>
|
||
<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>
|
||
</div>
|
||
</t>
|
||
<t t-name="Dialog">
|
||
<div class="modal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true">
|
||
<div class="modal-dialog modal-lg">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3 class="modal-title"><t t-raw="title"/><span class="text-muted"><t t-esc="subtitle"/></span></h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
<t t-name="CrashManager.warning">
|
||
<table cellspacing="0" cellpadding="0" border="0" class="oe_dialog_warning">
|
||
<tr>
|
||
<td>
|
||
<p>
|
||
<t t-js="d">
|
||
var message = d.message ? d.message : d.error.data.message;
|
||
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">
|
||
<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="DatabaseManager">
|
||
<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-control-panel" style="padding: 8px;">
|
||
<div class="oe_header_row">
|
||
<h2 class="oe_view_title">
|
||
<span class="oe_view_title_text oe_breadcrumb_title">Create a New Database</span>
|
||
</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<p class="oe_grey" style="margin: 10px">
|
||
Fill in this form to create an Odoo database. You can
|
||
create databases for different companies or for different
|
||
goals (testing, production). Once the database is created,
|
||
you will be able to install your first application.
|
||
</p>
|
||
<p class="oe_grey" style="margin: 10px">
|
||
By default, the master password is 'admin'. This password
|
||
is required to create, delete, dump or restore databases.
|
||
</p>
|
||
<table class="db_option_table" style="margin: 10px">
|
||
<tr>
|
||
<td><label for="super_admin_pwd">Master password:</label></td>
|
||
<td>
|
||
<input type="password" name="super_admin_pwd" class="required" value="admin"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="db_name">Select a database name:</label></td>
|
||
<td>
|
||
<input type="text" name="db_name" class="required" matches="^[a-zA-Z0-9][a-zA-Z0-9_-]+$" autofocus="true" placeholder="e.g. mycompany"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="demo_data">Load demonstration data:</label></td>
|
||
<td class="oe_form_group_cell">
|
||
<span class="oe_form_field oe_form_field_boolean oe_grey" >
|
||
<input type="checkbox" name="demo_data" />
|
||
Check this box to evaluate Odoo.
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="db_lang">Default language:</label></td>
|
||
<td class="oe_form_field oe_form_field_selection">
|
||
<select name="db_lang" t-if="widget.lang_list" class="oe_inline">
|
||
<t t-foreach="widget.lang_list" t-as="lang">
|
||
<option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
|
||
<t t-esc="lang[1]" />
|
||
</option>
|
||
</t>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="create_admin_pwd">Choose a password:</label></td>
|
||
<td><input type="password" name="create_admin_pwd" class="required" /></td>
|
||
</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>
|
||
<tr>
|
||
<td></td>
|
||
<td><button type="submit" class="oe_button oe_highlight db_create">Create Database</button></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<form id="db_duplicate" name="duplicate_db_form" style="display: none;">
|
||
<div class="oe_view_manager oe_view_manager_current">
|
||
<div class="oe-control-panel" style="padding: 8px;">
|
||
<div class="oe_header_row">
|
||
<h2 class="oe_view_title">
|
||
<span class="oe_view_title_text oe_breadcrumb_title">Duplicate Database</span>
|
||
</h2>
|
||
<button type="submit" class="oe_button oe_highlight db_duplicate">Duplicate</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<table align="center" class="db_option_table">
|
||
<tr>
|
||
<td><label for="super_admin_pwd">Master password:</label></td>
|
||
<td><input type="password" name="super_admin_pwd" class="required" value="admin" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="db_original_name">Original database name:</label></td>
|
||
<td><input type="text" name="db_original_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" autofocus="true"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="db_name">New database name:</label></td>
|
||
<td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<form id="db_drop" name="drop_db_form" style="display: none; ">
|
||
<div class="oe_view_manager oe_view_manager_current">
|
||
<div class="oe-control-panel" 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>
|
||
</div>
|
||
</div>
|
||
<table align="center" class="db_option_table">
|
||
<tr>
|
||
<td><label for="drop_db">Database:</label></td>
|
||
<td class="oe_form_field oe_form_field_selection">
|
||
<select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
|
||
<t t-foreach="widget.db_list" t-as="db">
|
||
<option t-att-value="db">
|
||
<t t-esc="db" />
|
||
</option>
|
||
</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>
|
||
<td><input type="password" name="drop_pwd" class="required" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<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-control-panel" 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>
|
||
</div>
|
||
</div>
|
||
<input type="hidden" name="token" />
|
||
<table align="center" class="db_option_table">
|
||
<tr>
|
||
<td><label for="backup_db">Database:</label></td>
|
||
<td class="oe_form_field oe_form_field_selection ">
|
||
<select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
|
||
<t t-foreach="widget.db_list" t-as="db">
|
||
<option t-att-value="db">
|
||
<t t-esc="db" />
|
||
</option>
|
||
</t>
|
||
</select>
|
||
<input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="backup_format">Backup format:</label></td>
|
||
<td class="oe_form_field oe_form_field_selection">
|
||
<select name="backup_format">
|
||
<option value="zip">zip (includes filestore)</option>
|
||
<option value="dump">pg_dump custom format (without filestore)</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><input type="password" name="backup_pwd" class="required" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<form id="db_restore" name="restore_db_form" style="display: none; ">
|
||
<div class="oe_view_manager oe_view_manager_current">
|
||
<div class="oe-control-panel" 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>
|
||
</div>
|
||
</div>
|
||
<table align="center" class="db_option_table">
|
||
<tr>
|
||
<td><label for="restore_pwd">Master Password:</label></td>
|
||
<td><input type="password" name="restore_pwd" class="required" autofocus="autofocus"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td><label for="restore_db">File:</label></td>
|
||
<td><input type="file" name="db_file" 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>
|
||
<tr>
|
||
<td><label for="mode">Mode:</label></td>
|
||
<td><select name="mode" class="required">
|
||
<option value="restore">Backup Restore</option>
|
||
<option value="copy">Copy of an existing database</option>
|
||
</select></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
<form id="db_change_password" name="change_pwd_form" style="display: none;">
|
||
<div class="oe_view_manager oe_view_manager_current">
|
||
<div class="oe-control-panel" 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>
|
||
</div>
|
||
</div>
|
||
<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>
|
||
<td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
<t t-name="DatabaseManager.user_menu">
|
||
<li>
|
||
<a id="back-to-login" href="#">Back to Login</a>
|
||
</li>
|
||
</t>
|
||
<t t-name="DatabaseManager.menu">
|
||
<div class="oe_secondary_menu_section">Database Management</div>
|
||
<ul class="oe_secondary_submenu nav nav-pills nav-stacked">
|
||
<li><a href="#db_create">Create</a></li>
|
||
<li><a href="#db_duplicate">Duplicate</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>
|
||
|
||
<t t-name="ChangePassword">
|
||
<form name="change_password_form" method="POST">
|
||
<div class="oe_form">
|
||
<table align="center">
|
||
<tr>
|
||
<td class="oe_form_group_cell oe_form_group_cell_label"><label for="old_pwd" class="oe_form_label">Old Password:</label></td>
|
||
<td class="oe_form_group_cell"><input type="password" name="old_pwd"
|
||
minlength="1" autofocus="autofocus"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="oe_form_group_cell oe_form_group_cell_label"><label for="new_password" class="oe_form_label">New Password:</label></td>
|
||
<td class="oe_form_group_cell"><input type="password" name="new_password"
|
||
minlength="1"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="oe_form_group_cell oe_form_group_cell_label"><label for="confirm_pwd" class="oe_form_label">Confirm New Password:</label></td>
|
||
<td class="oe_form_group_cell"><input type="password" name="confirm_pwd"
|
||
minlength="1"/></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="right">
|
||
<button class='oe_button oe_form_button'>Change Password</button>
|
||
<span class="oe_fade oe_form_button"> or </span>
|
||
<button type="button" class="oe_button oe_form_button_cancel oe_form_button oe_link" href="javascript:void(0)"><span>Cancel</span></button>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</form>
|
||
</t>
|
||
|
||
<t t-name="Menu.needaction_counter">
|
||
<div id="menu_counter" class="badge pull-right">
|
||
<t t-if="widget.needaction_counter > 99"> 99+ </t>
|
||
<t t-if="widget.needaction_counter <= 99"> <t t-esc="widget.needaction_counter"/> </t>
|
||
</div>
|
||
</t>
|
||
|
||
<t t-name="UserMenu">
|
||
<li class="dropdown">
|
||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||
<img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
|
||
<span class="oe_topbar_name"/> <b class="caret"></b>
|
||
</a>
|
||
<ul class="dropdown-menu">
|
||
<li><a href="#" data-menu="settings">Preferences</a></li>
|
||
<li><a href="#" data-menu="account">My Odoo.com account</a></li>
|
||
<li><a href="#" data-menu="about">About Odoo</a></li>
|
||
<li><a href="#" data-menu="help">Help</a></li>
|
||
<li><a href="#" data-menu="logout">Log out</a></li>
|
||
</ul>
|
||
</li>
|
||
</t>
|
||
<t t-name="UserMenu.about">
|
||
|
||
<div class="oe_about">
|
||
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<a class="oe_activate_debug_mode oe_right label label-primary" href="?debug" >Activate the developer mode</a>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-sm-offset-2 col-md-offset-2 col-sm-8 col-md-8 user-details">
|
||
<div class="user-image">
|
||
<img src="/web/static/src/img/logo2.png" alt="Odoo (Formerly OpenERP)" title="Odoo (Formerly OpenERP)" class="img-circle"/>
|
||
</div>
|
||
<div class="user-info-block">
|
||
<div class="user-heading">
|
||
<br/><span class="help-block">(Formerly OpenERP)</span>
|
||
<h3>Version <t t-esc="version_info.server_version"/></h3>
|
||
</div>
|
||
|
||
<ul class="list-inline text-center navigation">
|
||
<li class="active">
|
||
<a data-toggle="tab" href="#settings">
|
||
<span class="glyphicon glyphicon-cog"></span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a data-toggle="tab" href="#email">
|
||
<span class="glyphicon glyphicon-envelope"></span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a data-toggle="tab" href="#events">
|
||
<span class="glyphicon glyphicon-calendar"></span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a data-toggle="tab" href="#social">
|
||
<span class="glyphicon glyphicon-share"></span>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
<div class="user-body">
|
||
<div class="tab-content">
|
||
<div id="settings" class="tab-pane active">
|
||
<h4>Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.</h4>
|
||
<p>Odoo is a trademark of the <a target="_blank" href="https://www.odoo.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="https://www.odoo.com" style="text-decoration: underline;">Odoo.com</a></p>
|
||
</div>
|
||
<div id="email" class="tab-pane">
|
||
<h4>OpenERP S.A.</h4>
|
||
<p>
|
||
Chaussée de Namur 40<br/>
|
||
1367 Grand-Rosière <br/>
|
||
Belgium
|
||
</p>
|
||
<!-- TODO - ALIAS contactus -->
|
||
<a class='btn btn-link' href='https://www.odoo.com/web/about/contactus'>Our website</a>
|
||
</div>
|
||
<div id="events" class="tab-pane">
|
||
<h4>Discover Events of Odoo around the world...</h4>
|
||
<a class='btn btn-link' href='https://www.odoo.com/web/about/event'> Our next Events</a>
|
||
</div>
|
||
<div id="social" class="tab-pane">
|
||
<h4>Follow Us...</h4>
|
||
<a href="https://www.odoo.com/web/about/facebook"><i class="fa fa-facebook-square fa-3x social-fb"></i></a>
|
||
<a href="https://www.odoo.com/web/about/twitter"><i class="fa fa-twitter-square fa-3x social-tw"></i></a>
|
||
<a href="https://www.odoo.com/web/about/googleplus"><i class="fa fa-google-plus-square fa-3x social-gp"></i></a>
|
||
<a href="https://www.odoo.com/web/about/linkedin"><i class="fa fa-linkedin-square fa-3x social-lk"></i></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
|
||
<t t-name="WebClient.timezone_warning">
|
||
<i class="fa fa-exclamation-triangle oe_tz_warning"></i>
|
||
</t>
|
||
|
||
<t t-name="EmbedClient">
|
||
<div class="openerp">
|
||
<div class="oe_application"></div>
|
||
</div>
|
||
</t>
|
||
|
||
<div t-name="ActionManager" class="oe_application" />
|
||
|
||
<t t-name="ControlPanel">
|
||
<div class="oe-control-panel">
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<div class="col-md-6 oe-cp-title">
|
||
<ol class="oe-view-title breadcrumb">
|
||
</ol>
|
||
</div>
|
||
<div class="oe-cp-search-view col-md-6" />
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6 oe-button-column">
|
||
<div class="oe-cp-buttons"></div>
|
||
<div class="oe-cp-sidebar"></div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="oe-search-options btn-group"/>
|
||
<div class="oe-right-toolbar">
|
||
<div class="oe-cp-pager"></div>
|
||
<div class="oe-cp-switch-buttons btn-group btn-group-sm"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
|
||
<t t-name="One2ManyControlPanel">
|
||
<div class="oe-o2m-control-panel container-fluid">
|
||
<div class="oe-cp-buttons pull-left"/>
|
||
<div class="oe-cp-pager pull-right"/>
|
||
</div>
|
||
</t>
|
||
|
||
<div t-name="ViewManager" class="oe-view-manager">
|
||
<div class="oe-view-manager-content">
|
||
<t t-foreach="widget.views" t-as="view">
|
||
<div t-attf-class="oe-view-manager-view-#{view} fade"/>
|
||
</t>
|
||
</div>
|
||
</div>
|
||
<t t-name="ViewManager.switch-buttons">
|
||
<t t-foreach="views" t-as="view">
|
||
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-#{view.type}" t-att-data-view-type="view.type" t-att-title="view.label"/>
|
||
</t>
|
||
</t>
|
||
|
||
<t t-name="WebClient.DebugManager">
|
||
<li class="oe_debug_manager">
|
||
<a href="#" t-att-title='_t("Open Debug Menu")' class="dropdown-toggle oe_debug_button" data-toggle="dropdown">
|
||
<span class="fa fa-bug"/>
|
||
<b class="caret"/>
|
||
</a>
|
||
<ul class="dropdown-menu js_debug_dropdown" role="menu"/>
|
||
</li>
|
||
</t>
|
||
<t t-name="WebClient.DebugDropdown">
|
||
<t t-if="active_view.type === 'form'">
|
||
<li class="oe_metadata"><a href="#" data-action="get_metadata">View Metadata</a></li>
|
||
<li class="oe_layout"><a href="#" data-action="toggle_layout_outline">Toggle Form Layout Outline</a></li>
|
||
<li class="oe_defaults"><a href="#" data-action="set_defaults">Set Defaults</a></li>
|
||
</t>
|
||
<li class="oe_defaults"><a href="#" data-action="perform_js_tests">JS Tests</a></li>
|
||
<li class="oe_fields"><a href="#" data-action="get_view_fields">View Fields</a></li>
|
||
<li class="oe_fvg"><a href="#" data-action="fvg">Fields View Get</a></li>
|
||
<li class="oe_filters"><a href="#" data-action="manage_filters">Manage Filters</a></li>
|
||
<t t-if="is_admin">
|
||
<li class="oe_translate"><a href="#" data-action="translate">Technical Translation</a></li>
|
||
<li class="oe_edit_view"><a href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="active_view.controller.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/> View</a></li>
|
||
<li class="oe_edit_searchview" t-if="searchview"><a href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="searchview.view_id">Edit SearchView</a></li>
|
||
<li class="oe_edit_action" t-if="action"><a href="#" data-action="edit" t-att-data-model="action.type" t-att-data-id="action.id">Edit Action</a></li>
|
||
<li class="oe_edit_workflow"><a href="#" data-action="edit_workflow">Edit Workflow</a></li>
|
||
<li class="oe_print_workflow"><a href="#" data-action="print_workflow">Print Workflow</a></li>
|
||
<li class="divider"/>
|
||
<li class="oe_leave"><a href="#" data-action="leave_debug">Leave Debug Mode</a></li>
|
||
</t>
|
||
</t>
|
||
<t t-name="WebClient.DebugViewLog">
|
||
<div class="oe_debug_menu_log">
|
||
<table class="table table-condensed table-striped">
|
||
<tr>
|
||
<th>ID:</th>
|
||
<td><t t-esc="perm.id"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>XML ID:</th>
|
||
<td><t t-esc="perm.xmlid or '/'"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>No Update:</th>
|
||
<td><t t-esc="perm.noupdate"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>Creation User:</th>
|
||
<td><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>Creation Date:</th>
|
||
<td><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>Latest Modification by:</th>
|
||
<td><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></td>
|
||
</tr>
|
||
<tr>
|
||
<th>Latest Modification Date:</th>
|
||
<td><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</t>
|
||
<span t-name="ViewPager">
|
||
<div class="oe_pager_value" style="display: inline-block">
|
||
<t t-raw="0"/>
|
||
</div>
|
||
<div class="btn-group btn-group-sm oe-pager-buttons" style="display: inline-block">
|
||
<a class="fa fa-chevron-left btn btn-default oe-pager-button" accesskey="O" type="button" data-pager-action="previous"></a>
|
||
<a class="fa fa-chevron-right btn btn-default oe-pager-button" accesskey="P" type="button" data-pager-action="next"></a>
|
||
</div>
|
||
</span>
|
||
|
||
<div t-name="Sidebar" class="oe_sidebar btn-group">
|
||
<t t-foreach="widget.sections" t-as="section">
|
||
<div class="oe_form_dropdown_section btn-group btn-group-sm">
|
||
<button type="button" class="btn btn-default dropdown-toggle"
|
||
t-if="section.name != 'buttons'"
|
||
data-toggle="dropdown">
|
||
<t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
|
||
<t t-esc="section.label"/>
|
||
<span class="caret"></span>
|
||
</button>
|
||
<t t-if="section.name == 'buttons'" t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
|
||
<button type="button" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url"
|
||
target="_blank" class="oe_sidebar_button oe_highlight">
|
||
<t t-raw="item.label"/>
|
||
</button>
|
||
</t>
|
||
<ul class="dropdown-menu" role="menu">
|
||
<li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
|
||
<t t-if="section.name == 'files'">
|
||
<t t-set="item.title">
|
||
<b>Attachment : </b><br/>
|
||
<t t-raw="item.name"/>
|
||
</t>
|
||
<t t-if="item.create_uid and item.create_uid[0]" t-set="item.title">
|
||
<t t-raw="item.title"/><br/>
|
||
<b>Created by : </b><br/>
|
||
<t t-raw="item.create_uid[1] + ' ' + item.create_date"/>
|
||
</t>
|
||
<t t-if="item.create_uid and item.write_uid and item.create_uid[0] != item.write_uid[0]" t-set="item.title">
|
||
<t t-raw="item.title"/><br/>
|
||
<b>Modified by : </b><br/>
|
||
<t t-raw="item.write_uid[1] + ' ' + item.write_date"/>
|
||
</t>
|
||
</t>
|
||
<a class="oe_file_attachment" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url">
|
||
<t t-raw="item.label"/>
|
||
<span t-if="widget.view.is_action_enabled('edit') && section.name == 'files' and !item.callback" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">
|
||
<i class="fa fa-trash-o"/>
|
||
</span>
|
||
</a>
|
||
</li>
|
||
<li t-if="widget.view.is_action_enabled('edit') && 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" t-translation="off">/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" t-if="widget.session.override_session"/>
|
||
<span>Add...</span>
|
||
</t>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</t>
|
||
</div>
|
||
|
||
<t t-name="TreeView">
|
||
<select t-if="toolbar" style="width: 30%">
|
||
</select>
|
||
<table class="oe_tree_table oe-treeview-table">
|
||
<thead>
|
||
<tr>
|
||
<th t-foreach="fields_view" t-as="field"
|
||
t-if="!field.attrs.modifiers.tree_invisible"
|
||
class="treeview-header">
|
||
<t t-esc="field_value.attrs.string || fields[field.attrs.name].string" />
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
</tbody>
|
||
</table>
|
||
</t>
|
||
<tr t-name="TreeView.rows"
|
||
t-foreach="records" t-as="record"
|
||
t-att-id="'treerow_' + record.id"
|
||
t-att-data-id="record.id" t-att-data-level="level + 1"
|
||
t-att-data-row-parent-id="row_parent_id">
|
||
<t t-set="children" t-value="record[children_field]"/>
|
||
<t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
|
||
<t t-set="rank" t-value="'oe-treeview-first'"/>
|
||
<t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>
|
||
|
||
<td t-foreach="fields_view" t-as="field"
|
||
t-if="!field.attrs.modifiers.tree_invisible"
|
||
t-att-data-id="record.id"
|
||
t-att-style="color_for(record) + style "
|
||
t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') or (fields[field.attrs.name].type === 'monetary')? 'oe_number' : ''}">
|
||
|
||
<span t-if="!field.attrs.modifiers.invisible" >
|
||
<t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
|
||
</span>
|
||
|
||
<t t-set="class" t-value="'treeview-td'"/>
|
||
<t t-set="rank" t-value="''"/>
|
||
<t t-set="style" t-value="''"/>
|
||
</td>
|
||
</tr>
|
||
|
||
<table t-name="ListView" class="oe_list_content">
|
||
<t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
|
||
<thead>
|
||
<tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
|
||
<th t-att-colspan="columns_count">
|
||
<div class="oe_list_buttons"/>
|
||
<div class="oe_list_sidebar"/>
|
||
<div class="oe_list_pager"/>
|
||
</th>
|
||
</tr>
|
||
<tr t-if="options.header" class="oe_list_header_columns">
|
||
<t t-foreach="columns" t-as="column">
|
||
<th t-if="column.meta">
|
||
<t t-esc="column.string"/>
|
||
</th>
|
||
</t>
|
||
<th t-if="options.selectable" width="1" >
|
||
<input type="checkbox" class="oe_list_record_selector"/>
|
||
</th>
|
||
<t t-foreach="columns" t-as="column">
|
||
<th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
|
||
t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}"><div>
|
||
<t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
|
||
</div></th>
|
||
</t>
|
||
<th t-if="options.deletable" class="oe_list_record_delete" width="13px"/>
|
||
</tr>
|
||
</thead>
|
||
<tfoot>
|
||
<tr>
|
||
<td t-if="options.selectable"/>
|
||
<td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
|
||
t-att-data-field="column.id" t-att-title="column.label">
|
||
</td>
|
||
<td t-if="options.deletable" class="oe_list_record_delete"/>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
<t t-name="ListView.buttons">
|
||
<t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
|
||
<div class="oe_list_buttons">
|
||
<button type="button" class="oe_list_add btn btn-primary btn-sm">
|
||
<t t-esc="widget.options.addable"/>
|
||
</button>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
<t t-name="ListView.pager" t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
|
||
<span class="oe_list_pager_state"></span>
|
||
</t>
|
||
<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>
|
||
</t>
|
||
<tr t-name="ListView.row"
|
||
t-att-data-id="record.get('id')"
|
||
t-attf-style="#{(view.fonts || view.colors) ? view.style_for(record) : ''}"
|
||
t-attf-class="#{view.compute_decoration_classnames(record)}">
|
||
<t t-set="asData" t-value="record.toForm().data"/>
|
||
<t t-foreach="columns" t-as="column">
|
||
<td t-if="column.meta"> </td>
|
||
</t>
|
||
<th t-if="options.selectable" class="oe_list_record_selector" width="1">
|
||
<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"/>
|
||
</th>
|
||
<t t-foreach="columns" t-as="column">
|
||
<t t-set="number" t-value="column.type === 'integer' or column.type == 'float' or column.type == 'monetary'"/>
|
||
<t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
|
||
<td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
|
||
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' : ''}"
|
||
t-att-data-field="column.id"
|
||
><t t-raw="render_cell(record, column)"/></td>
|
||
</t>
|
||
<td t-if="options.deletable" class='oe_list_record_delete' width="13px">
|
||
<button type="button" name="delete" class="oe_i">d</button>
|
||
</td>
|
||
</tr>
|
||
<t t-extend="ListView.buttons">
|
||
<t t-jquery="button.oe_list_add" t-operation="after">
|
||
<button class="oe_button oe_list_save oe_highlight"
|
||
type="button">Save</button>
|
||
<span class="oe_alternative">
|
||
<span class="oe_fade">or</span>
|
||
<a href="#" class="oe_bold oe_list_discard">Discard</a>
|
||
</span>
|
||
</t>
|
||
</t>
|
||
<button t-name="ListView.row.text_button" type="button"
|
||
t-att-title="widget.string" t-att-disabled="disabled || undefined"
|
||
t-att-class="disabled ? 'oe_list_button_disabled btn_txt oe_link' : 'btn_txt oe_link'"
|
||
><t t-esc="widget.string"/></button>
|
||
<button t-name="ListView.row.button" type="button"
|
||
t-att-title="widget.string" t-att-disabled="disabled || undefined"
|
||
t-att-class="disabled ? 'oe_list_button_disabled' : ''"
|
||
><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
|
||
t-att-alt="widget.string"/></button>
|
||
<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>
|
||
|
||
<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>
|
||
<div t-name="FormView.buttons" class="oe_form_buttons">
|
||
<t t-if="widget.options.action_buttons !== false">
|
||
<div class="oe_form_buttons_view">
|
||
<button t-if="widget.is_action_enabled('edit')"
|
||
type="button"
|
||
class="oe_form_button_edit btn btn-default btn-sm" accesskey="E">
|
||
Edit
|
||
</button>
|
||
<button t-if="widget.is_action_enabled('create')"
|
||
type="button" class="oe_form_button_create btn btn-default btn-sm"
|
||
accesskey="C">
|
||
Create
|
||
</button>
|
||
</div>
|
||
<span class="oe_form_buttons_edit">
|
||
<button type="button" class="oe_form_button_save btn btn-primary btn-sm" accesskey="S">Save</button>
|
||
<span class="oe_fade">or</span>
|
||
<a href="#" class="oe_bold oe_form_button_cancel" accesskey="D">Discard</a>
|
||
</span>
|
||
</t>
|
||
</div>
|
||
<t t-name="FormView.pager" t-if="widget.options.pager !== false" t-call="ViewPager">
|
||
<span class="oe_form_pager_state"></span>
|
||
</t>
|
||
<form t-name="FormView.set_default">
|
||
<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>
|
||
<td class="oe_form_required">
|
||
<select id="formview_default_fields">
|
||
<option value=""/>
|
||
<option t-foreach="args.fields" t-as="field"
|
||
t-att-value="field.name">
|
||
<t t-esc="field.string"/> = <t t-esc="field.displayed"/>
|
||
</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">
|
||
<t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
|
||
</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>
|
||
|
||
<t t-name="FormRenderingForm">
|
||
<div t-attf-class="#{classnames}">
|
||
</div>
|
||
</t>
|
||
<t t-name="FormRenderingSheet">
|
||
<div class="oe_form_sheetbg">
|
||
<div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
|
||
</div>
|
||
</div>
|
||
</t>
|
||
<t t-name="FormRenderingGroup">
|
||
<t t-if="string" t-call="FormRenderingSeparator"/>
|
||
<table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
|
||
</t>
|
||
<t t-name="FormRenderingNotebook">
|
||
<div class="oe_clear">
|
||
<ul t-attf-class="nav nav-tabs #{classnames}" role="tablist">
|
||
<li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
|
||
<a role="tab" t-attf-href="##{page.id}" t-att-accesskey="page.accesskey" data-toggle="tab">
|
||
<t t-esc="page.string"/>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<div role="tabpanel" t-foreach="pages" t-as="page" t-attf-class="tab-pane #{classnames}" t-att-id="id">
|
||
<t t-raw="page.contents"/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
<t t-name="FormRenderingSeparator">
|
||
<div t-attf-class="oe_horizontal_separator oe_clear #{classnames}">
|
||
<t t-esc="string"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="FormRenderingLabel">
|
||
<label t-att-for="_for"
|
||
t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
|
||
<t t-esc="string"/>
|
||
</label>
|
||
</t>
|
||
|
||
<t t-name="GraphView.buttons">
|
||
<div class="btn-group btn-group-sm">
|
||
<button class="btn btn-default fa fa-bar-chart-o oe-bar-mode" title="Bar Chart"></button>
|
||
<button class="btn btn-default fa fa-line-chart oe-line-mode" title="Line Chart"></button>
|
||
<button class="btn btn-default fa fa-pie-chart oe-pie-mode" title="Pie Chart"></button>
|
||
</div>
|
||
<div class="btn-group btn-group-sm">
|
||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||
Measure <span class="caret"/>
|
||
</button>
|
||
<ul class="oe-measure-list dropdown-menu">
|
||
<li t-foreach="measures" t-as="measure" t-att-data-field="measure[0]">
|
||
<a><t t-esc="measure[1].string"/></a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li data-field="__count__"><a>Quantity</a></li>
|
||
</ul>
|
||
</div>
|
||
</t>
|
||
|
||
<div t-name="GraphView.error" class="oe_view_nocontent" >
|
||
<div class="oe_empty_custom_dashboard">
|
||
<p><b><t t-esc="title"/></b></p>
|
||
<p><t t-esc="description"/></p>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div t-name="PivotView" class="oe_pivot">
|
||
<div class="o-field-selection"/>
|
||
<div class="o-pivot-table"/>
|
||
</div>
|
||
|
||
<t t-name="PivotView.buttons">
|
||
<div class="btn-group btn-group-sm">
|
||
<button class="btn btn-default fa fa-expand oe-pivot-flip" title="Flip axis"></button>
|
||
<button class="btn btn-default fa fa-arrows-alt oe-pivot-expand-all" title="Expand all"></button>
|
||
</div>
|
||
<div class="btn-group btn-group-sm">
|
||
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||
Measures <span class="caret"/>
|
||
</button>
|
||
<ul class="oe-measure-list dropdown-menu">
|
||
<li t-foreach="measures" t-as="measure" t-att-data-field="measure[0]">
|
||
<a><t t-esc="measure[1].string"/></a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li data-field="__count__"><a>Quantity</a></li>
|
||
</ul>
|
||
</div>
|
||
</t>
|
||
|
||
<t t-name="PivotView.FieldSelection">
|
||
<ul class="dropdown-menu multi-level o-field-menu" role="menu">
|
||
<t t-foreach="fields" t-as="field">
|
||
<t t-if="(field[1].type === 'date') || (field[1].type === 'datetime')">
|
||
<li class="pivot-dropdown-submenu" t-att-data-field="field[0]">
|
||
<a class="field-selection">
|
||
<t t-esc="field[1].string"/>
|
||
</a>
|
||
<ul class="dropdown-menu">
|
||
<li t-att-data-field="field[0]"><a t-att-data-interval="'day'">Day</a></li>
|
||
<li t-att-data-field="field[0]"><a t-att-data-interval="'week'">Week</a></li>
|
||
<li t-att-data-field="field[0]"><a t-att-data-interval="'month'">Month</a></li>
|
||
<li t-att-data-field="field[0]"><a t-att-data-interval="'quarter'">Quarter</a></li>
|
||
<li t-att-data-field="field[0]"><a t-att-data-interval="'year'">Year</a></li>
|
||
</ul>
|
||
</li>
|
||
</t>
|
||
<t t-if="(field[1].type !== 'date') && (field[1].type !== 'datetime')">
|
||
<li t-att-data-field="field[0]"><a><t t-esc="field[1].string"/></a></li>
|
||
</t>
|
||
</t>
|
||
</ul>
|
||
</t>
|
||
|
||
<div t-name="PivotView.nodata" class="oe_view_nocontent" >
|
||
<div class="oe_empty_custom_dashboard">
|
||
<p><b>No data to display.</b></p>
|
||
<p>
|
||
No data available for this pivot table. Try to add some records, or make sure
|
||
that there is at least one measure and no active filter in the search bar.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<t t-name="Widget">
|
||
Unhandled widget
|
||
<t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
|
||
</t>
|
||
<t t-name="WidgetLabel.tooltip">
|
||
<div class="oe_tooltip_string" t-if="widget.string">
|
||
<t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
|
||
</div>
|
||
<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>
|
||
<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>
|
||
<li t-if="widget.node.attrs.widget" data-item="widget">
|
||
<span class="oe_tooltip_technical_title">Widget:</span>
|
||
<t t-esc="widget.node.attrs.widget"/>
|
||
</li>
|
||
<li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
|
||
<span class="oe_tooltip_technical_title">Size:</span>
|
||
<t t-esc="widget.node.attrs.size || widget.field.size"/>
|
||
</li>
|
||
<li t-if="widget.node.attrs.context" data-item="context">
|
||
<span class="oe_tooltip_technical_title">Context:</span>
|
||
<t t-esc="widget.node.attrs.context"/>
|
||
</li>
|
||
<li t-if="widget.node.attrs.domain" data-item="domain">
|
||
<span class="oe_tooltip_technical_title">Domain:</span>
|
||
<t t-esc="widget.node.attrs.domain"/>
|
||
</li>
|
||
<li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
|
||
<span class="oe_tooltip_technical_title">Modifiers:</span>
|
||
<t t-esc="widget.node.attrs.modifiers"/>
|
||
</li>
|
||
<li t-if="widget.field and widget.field.change_default" data-item="change_default">
|
||
<span class="oe_tooltip_technical_title">Change default:</span>
|
||
Yes
|
||
</li>
|
||
<li t-if="widget.node.attrs.on_change" data-item="on_change">
|
||
<span class="oe_tooltip_technical_title">On change:</span>
|
||
<t t-esc="widget.node.attrs.on_change"/>
|
||
</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 class="oe_tooltip_technical">
|
||
<li t-foreach="widget.field.selection" t-as="option">
|
||
[<t t-esc="option[0]"/>]
|
||
<t t-if="option[1]"> - </t>
|
||
<t t-esc="option[1]"/>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</t>
|
||
<t t-name="FieldChar">
|
||
<span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<input t-att-type="widget.password ? 'password' : 'text'"
|
||
t-att-id="widget.id_for_label"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
t-att-placeholder="widget.node.attrs.placeholder"
|
||
t-att-maxlength="widget.field.size"
|
||
/><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"/>
|
||
</t>
|
||
<t t-if="widget.get('effective_readonly')">
|
||
<span class="oe_form_char_content"></span>
|
||
</t>
|
||
</span>
|
||
</t>
|
||
<t t-name="KanbanSelection">
|
||
<div class="btn-group kanban_state">
|
||
<t t-foreach="widget.states" t-as="rec">
|
||
<a t-if="widget.get('value') === rec.name">
|
||
<a class="dropdown-toggle" data-toggle="dropdown">
|
||
<span t-att-class="rec.state_class" t-if="widget.get('value') === rec.name" t-att-title="rec.tooltip"/>
|
||
<span class="sr-only">Toggle Dropdown</span>
|
||
</a>
|
||
</a>
|
||
</t>
|
||
<ul class="dropdown-menu state" role="menu">
|
||
<t t-foreach="widget.states" t-as="rec">
|
||
<t t-if="widget.get('value') !== rec.name">
|
||
<li t-att-data-value="rec.name" ><a href="#">
|
||
<span t-att-class="rec.state_class" t-att-title="rec.tooltip"/>
|
||
<t t-raw="rec.state_name" /></a>
|
||
</li>
|
||
</t>
|
||
</t>
|
||
</ul>
|
||
</div>
|
||
</t>
|
||
<t t-name="Priority">
|
||
<ul style="list-style: none; padding-left: 2px; display: inline-block;">
|
||
<t t-foreach="widget.priorities" t-as="rec" >
|
||
<li t-att-data-value="rec.click_value" style="display: inline-block;">
|
||
<a t-if="!widget.get('readonly')" href="#" t-att-title="rec.name">
|
||
<i t-att-class="widget.get('value') gte rec.value and 'fa fa-star oe_star_on' or 'fa fa-star oe_star_off'"/>
|
||
</a>
|
||
<span t-if="widget.get('readonly')" t-att-title="rec.name" t-att-class="widget.get('value') gte rec.value and 'oe_e oe_star_on' or 'oe_e oe_star_off'">7</span>
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
</t>
|
||
<t t-name="FieldEmail">
|
||
<span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
|
||
<a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<div>
|
||
<input type="text"
|
||
t-att-id="widget.id_for_label"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
t-att-placeholder="widget.node.attrs.placeholder"
|
||
t-att-maxlength="widget.field.size"
|
||
/>
|
||
</div>
|
||
</t>
|
||
</span>
|
||
</t>
|
||
<t t-name="FieldUrl" t-extend="FieldEmail">
|
||
<t t-jquery="span:first">
|
||
this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
|
||
</t>
|
||
</t>
|
||
<t t-name="FieldText">
|
||
<div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<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"
|
||
t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
|
||
t-att-maxlength="widget.field.size"
|
||
></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"
|
||
/>
|
||
</t>
|
||
<t t-if="widget.get('effective_readonly')">
|
||
<span class="oe_form_text_content"></span>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldTextHtml">
|
||
<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')">
|
||
<textarea/>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldCharDomain">
|
||
<div class="oe_form_field">
|
||
<span class="oe_domain_count"/>
|
||
<button class="oe_button oe_link select_records" type="button"
|
||
t-att-style="widget.node.attrs.style"
|
||
t-att-accesskey="widget.node.attrs.accesskey">
|
||
<span class="fa fa-arrow-right"/>
|
||
</button>
|
||
</div>
|
||
</t>
|
||
<t t-name="web.datepicker">
|
||
<span>
|
||
<t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
|
||
<div class="oe_datepicker_main input-group">
|
||
<input type="text"
|
||
t-att-name="widget.name"
|
||
t-att-placeholder="placeholder"
|
||
class="oe_datepicker_master"
|
||
/><span class="fa fa-calendar datepickerbutton"/>
|
||
</div>
|
||
</span>
|
||
</t>
|
||
<t t-name="FieldDate">
|
||
<span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
|
||
</t>
|
||
<t t-name="FieldDatetime">
|
||
<span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
|
||
</t>
|
||
<t t-name="FieldSelection">
|
||
<span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
|
||
</span>
|
||
</t>
|
||
<t t-name="FieldSelectionSelect">
|
||
<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="values" t-as="option">
|
||
<option t-att-value="JSON.stringify(option[0])">
|
||
<t t-esc="option[1]"/>
|
||
</option>
|
||
</t>
|
||
</select>
|
||
</t>
|
||
<t t-name="FieldRadio">
|
||
<span t-attf-class="oe_form_field oe_form_field_radio #{widget.options.horizontal ? 'oe_horizontal' : 'oe_vertical'}" t-att-style="widget.node.attrs.style">
|
||
<span t-if="!widget.get('effective_readonly')">
|
||
<t t-if="widget.options.horizontal">
|
||
<t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/>
|
||
<t t-if="!widget.options.no_radiolabel">
|
||
<t t-foreach="widget.selection" t-as="selection">
|
||
<label t-att-for="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></label>
|
||
</t>
|
||
<br/>
|
||
</t>
|
||
<t t-foreach="widget.selection" t-as="selection">
|
||
<div t-att-style="'width: ' + width + '%;'">
|
||
<span class="oe_radio_input"><input type="radio" t-att-name="widget.uniqueId" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-value="selection[0]"/></span>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
<t t-if="!widget.options.horizontal">
|
||
<t t-foreach="widget.selection" t-as="selection">
|
||
<div>
|
||
<span class="oe_radio_input"><input type="radio" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-name="widget.uniqueId" t-att-value="selection[0]"/></span><label t-if="!widget.options.no_radiolabel" t-att-for="widget.uniqueId + '_' + selection[0]"><t t-esc="selection[1]"/></label>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
</span>
|
||
<span t-if="widget.get('effective_readonly')" class="oe_radio_readonly"><t t-esc="widget.get('value')[1]"/></span>
|
||
</span>
|
||
</t>
|
||
<t t-name="FieldMany2One">
|
||
<span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
|
||
<t t-if="widget.get('effective_readonly')">
|
||
<a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
|
||
<span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
|
||
<span class="oe_form_m2o_follow"/>
|
||
</t>
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<i t-if="! widget.options.no_open" href="#" tabindex="-1"
|
||
class="oe_m2o_cm_button fa fa-external-link" draggable="false"/>
|
||
<div>
|
||
<input type="text"
|
||
t-att-id="widget.id_for_label"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
t-att-placeholder="widget.node.attrs.placeholder"
|
||
/>
|
||
<span class="oe_m2o_drop_down_button">
|
||
<img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/>
|
||
</span>
|
||
</div>
|
||
</t>
|
||
</span>
|
||
</t>
|
||
<t t-name="Many2OneButton.cell"
|
||
><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png" t-att-alt="widget.string" width="16" height="16"/>
|
||
</t>
|
||
<t t-name="FieldMany2ManyTags">
|
||
<div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
|
||
<t t-if="! widget.get('effective_readonly')">
|
||
<textarea rows="1" style="width: 100%"
|
||
t-att-placeholder="widget.node.attrs.placeholder"></textarea>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldMany2ManyTag">
|
||
<t t-set="i" t-value="0"/>
|
||
<t t-foreach="elements" t-as="el">
|
||
<span class="oe_tag" t-att-data-index="i">
|
||
<t t-esc="el[1]"/>
|
||
</span>
|
||
<t t-set="i" t-value="i + 1"/>
|
||
</t>
|
||
</t>
|
||
<t t-name="FieldReference">
|
||
<table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
|
||
<tr>
|
||
<td t-attf-class="oe_form_frame_cell oe_form_selection">
|
||
<span t-attf-class="oe_form_view_reference_selection"/>
|
||
</td>
|
||
<td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
|
||
<span t-attf-class="oe_form_view_reference_m2o"/>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</t>
|
||
<t t-name="FieldBoolean">
|
||
<span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
|
||
<input type="checkbox"
|
||
t-att-id="widget.id_for_label"
|
||
t-att-name="widget.name"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
class="field_boolean"/>
|
||
</span>
|
||
</t>
|
||
<t t-name="ProgressBar">
|
||
<div class="o_progressbar">
|
||
<div t-if="widget.title" class="o_progressbar_title"><t t-esc="widget.title"/></div><div class="o_progress">
|
||
<div class="o_progressbar_complete"/>
|
||
</div><div t-if="widget.readonly" class="o_progressbar_value"/><input t-if="!widget.readonly" class="o_progressbar_value"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldPercentPie">
|
||
<div class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style">
|
||
<svg></svg>
|
||
<span t-if="widget.string"><t t-esc="widget.string"/></span>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldBarChart">
|
||
<div class="oe_form_field oe_form_field_bar_chart" t-att-style="widget.node.attrs.style">
|
||
<svg></svg>
|
||
<span t-if="widget.string"><t t-esc="widget.string"/></span>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldStatus">
|
||
<ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/>
|
||
</t>
|
||
<t t-name="FieldStatus.content">
|
||
<t t-foreach="widget.selection.unfolded" t-as="i">
|
||
<li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
|
||
<span class="label"><t t-esc="i[1]"/></span>
|
||
<!-- are you mit ? -->
|
||
<span class="arrow"><span></span></span>
|
||
</li>
|
||
</t>
|
||
<t t-if="widget.selection.folded.length">
|
||
<li>
|
||
<span class="label oe_dropdown_toggle oe_dropdown_arrow">More</span>
|
||
<ul class="oe_dropdown_menu">
|
||
<t t-foreach="widget.selection.folded" t-as="i">
|
||
<li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
|
||
<span class="label"><t t-esc="i[1]"/></span>
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
</li>
|
||
</t>
|
||
</t>
|
||
<t t-name="FieldBinaryImage">
|
||
<span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<div class="oe_form_field_image_controls oe_edit_only">
|
||
<i class="fa fa-pencil fa-1g pull-left col-md-offset-1 oe_form_binary_file_edit" title="Edit"/>
|
||
<i class="fa fa-trash-o fa-1g col-md-offset-5 oe_form_binary_file_clear" title="Clear"/>
|
||
<div class="oe_form_binary_progress" style="display: none">
|
||
<img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
|
||
<b>Uploading ...</b>
|
||
</div>
|
||
<t t-call="HiddenInputFile">
|
||
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
</span>
|
||
</t>
|
||
<t t-name="FieldBinaryImage-img">
|
||
<img t-att-src='url'
|
||
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>
|
||
<t t-name="FieldBinaryFile">
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
|
||
<tr>
|
||
<td>
|
||
<input type="text" size="1" readonly="readonly"
|
||
t-att-name="widget.name"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
class="field_binary"
|
||
/>
|
||
</td>
|
||
<td class="oe_form_binary" nowrap="true">
|
||
<table cellspacing="0" cellpadding="0" border="0">
|
||
<tr>
|
||
<td>
|
||
<t t-call="HiddenInputFile">
|
||
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
|
||
<t t-set="fileupload_style" t-translation="off">overflow-x: hidden</t>
|
||
<button class="oe_button oe_field_button" type="button">
|
||
<img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
|
||
<span>Select</span>
|
||
</button>
|
||
</t>
|
||
</td>
|
||
<td>
|
||
<a class="oe_form_binary_file_save_data">
|
||
<button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
|
||
<img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
|
||
<span>Save As</span>
|
||
</button>
|
||
</a>
|
||
</td>
|
||
<td>
|
||
<button class="oe_button oe_form_binary_file_clear" type="button" title="Clear">
|
||
<img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
|
||
<span>Clear</span>
|
||
</button>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td class="oe_form_binary_progress" style="display: none" nowrap="true">
|
||
<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')">
|
||
<span t-att-style="widget.node.attrs.style">
|
||
<a href="javascript:void(0)" class="oe_form_uri"/>
|
||
</span>
|
||
</t>
|
||
</t>
|
||
<t t-name="HiddenInputFile">
|
||
<div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
|
||
<form class="oe_form_binary_form" t-att-target="fileupload_id"
|
||
method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
|
||
<input type="hidden" name="session_id" value="" t-if="widget.session.override_session"/>
|
||
<input type="hidden" name="callback" t-att-value="fileupload_id"/>
|
||
<t t-raw="0"/>
|
||
<input type="file" class="oe_form_binary_file" name="ufile" t-if="widget.widget!='image'"/>
|
||
<input type="file" class="oe_form_binary_file" name="ufile" accept="image/*" t-if="widget.widget=='image'"/>
|
||
</form>
|
||
<iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldBinaryFileUploader.files">
|
||
<div class="oe_attachments">
|
||
<t t-if="!widget.get('effective_readonly')">
|
||
<t t-foreach="values" t-as="id">
|
||
<t t-set="file" t-value="widget.data[id]"/>
|
||
<div class="oe_attachment">
|
||
<span t-if="(file.upload or file.percent_loaded<100)" t-attf-title="#{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}" t-attf-name="#{file.name || file.filename}">
|
||
<span class="oe_fileuploader_in_process">...Upload in progress...</span>
|
||
<t t-raw="file.name || file.filename"/>
|
||
</span>
|
||
<a t-if="(!file.upload or file.percent_loaded>=100)" t-att-href="file.url" t-attf-title="#{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
|
||
<t t-raw="file.name || file.filename"/>
|
||
</a>
|
||
<t t-if="(!file.upload or file.percent_loaded>=100)">
|
||
<i class="oe_right oe_delete fa fa-times-circle" title="Delete this file" t-attf-data-id="#{file.id}"/>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
<t t-if="widget.get('effective_readonly')">
|
||
<t t-foreach="widget.get('value')" t-as="id">
|
||
<t t-set="file" t-value="widget.data[id]"/>
|
||
<div>
|
||
<a t-att-href="file.url" t-attf-title="#{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
|
||
<t t-raw="file.name || file.filename"/>
|
||
</a>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
</div>
|
||
</t>
|
||
<t t-name="FieldBinaryFileUploader">
|
||
<div t-att-style="widget.node.attrs.style" t-attf-class="oe_fileupload #{widget.node.attrs.class ? widget.node.attrs.class :''}">
|
||
<div class="oe_placeholder_files"/>
|
||
<div class="oe_add" t-if="!widget.get('effective_readonly')">
|
||
<!-- uploader of file -->
|
||
<button class="oe_attach"><i class="fa fa-paperclip"/></button>
|
||
<span class='oe_attach_label'><t t-esc="widget.string"/></span>
|
||
<t t-call="HiddenInputFile">
|
||
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
|
||
<t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
|
||
<input type="hidden" name="model" t-att-value="widget.view.model"/>
|
||
<input type="hidden" name="id" value="0"/>
|
||
<input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
|
||
</t>
|
||
</div>
|
||
</div>
|
||
</t>
|
||
<t t-name="WidgetButton">
|
||
<span t-if="widget.pre_text"> <t t-esc="widget.pre_text"/> </span>
|
||
<button type="button" t-att-class="widget.is_stat_button ? 'oe_stat_button btn btn-default' : 'oe_button oe_form_button ' + (widget.node.attrs.class ? widget.node.attrs.class : '')"
|
||
t-att-style="widget.node.attrs.style"
|
||
t-att-tabindex="widget.node.attrs.tabindex"
|
||
t-att-autofocus="widget.node.attrs.autofocus"
|
||
t-att-accesskey="widget.node.attrs.accesskey">
|
||
<img t-if="!widget.is_stat_button and widget.node.attrs.icon " t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
|
||
<div t-if="widget.is_stat_button and widget.icon_class" t-att-class="widget.icon_class"></div>
|
||
<span t-if="widget.string and !widget.is_stat_button"><t t-esc="widget.string"/></span>
|
||
<div t-if="widget.string and widget.is_stat_button"><t t-esc="widget.string"/></div>
|
||
</button>
|
||
<span t-if="widget.post_text"> <t t-esc="widget.post_text"/> </span>
|
||
</t>
|
||
<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>
|
||
|
||
<t t-name="AbstractFormPopup.render">
|
||
<div>
|
||
<div class="o-modal-header">
|
||
<div class="o-popup-search"/>
|
||
<div class="o-search-options oe-search-options"/>
|
||
<div class="oe_popup_list_pager"/>
|
||
</div>
|
||
<div class="oe_popup_list"/>
|
||
<div class="oe_popup_form"/>
|
||
</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 oe_highlight" disabled="disabled">Select</button>
|
||
</t>
|
||
<t t-if="!widget.options.no_create">
|
||
<button type="button" class="oe_button oe_selectcreatepopup-search-create">Create</button>
|
||
or </t><a class="oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
|
||
</t>
|
||
<t t-name="AbstractFormPopup.buttons">
|
||
<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 oe_highlight">Save & Close</button>
|
||
<button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save & New</button>
|
||
</t>
|
||
or
|
||
</t>
|
||
<a class="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>
|
||
</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>
|
||
<t t-name="One2Many.listview" t-extend="ListView">
|
||
<t t-jquery="thead > tr:first">
|
||
this.removeAttr('t-if');
|
||
</t>
|
||
|
||
<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>
|
||
|
||
<div t-name="SearchView" class="oe_searchview form-control input-sm">
|
||
<div class="oe_searchview_search fa fa-lg fa-search" title="Search Again"/>
|
||
<div class="oe_searchview_facets"/>
|
||
<div class="oe_searchview_unfold_drawer fa fa-lg fa-fw fa-chevron-right" title="Advanced Search..."/>
|
||
</div>
|
||
|
||
<div t-name="SearchView.InputView"
|
||
class="oe_searchview_input"
|
||
contenteditable="true"
|
||
tabindex="0"/>
|
||
<!-- tabindex: makes div focusable -->
|
||
<div t-name="SearchView.FacetView"
|
||
class="oe_tag oe_searchview_facet"
|
||
tabindex="0">
|
||
<span class="oe_facet_remove">x</span>
|
||
<span t-if="widget.model.has('icon')"
|
||
t-att-class="'label label-default fa ' + widget.model.get('icon')">
|
||
</span>
|
||
<span class="label label-default" t-if="!widget.model.has('icon')">
|
||
<t t-esc="widget.model.get('category')"/>
|
||
</span >
|
||
<span class="oe_facet_values"/>
|
||
</div>
|
||
<span t-name="SearchView.FacetView.Value" class="oe_facet_value">
|
||
<t t-esc="widget.model.get('label')"/>
|
||
</span>
|
||
<t t-name="SearchView.filters">
|
||
<li t-foreach="widget.filters" t-as="filter" t-if="!filter.visible || filter.visible()"
|
||
t-att-title="filter.attrs.string ? filter.attrs.help : undefined"
|
||
t-att-data-index="filter_index">
|
||
<a>
|
||
<t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
|
||
</a>
|
||
</li>
|
||
</t>
|
||
<t t-name="SearchView.field">
|
||
<label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
|
||
t-att-title="attrs.help"
|
||
t-att-for="element_id"
|
||
t-att-style="style">
|
||
<t t-esc="attrs.string || attrs.name"/>
|
||
<span t-if="attrs.help">?</span>
|
||
</label>
|
||
<div t-att-style="style">
|
||
<input type="text" size="15" t-att-name="attrs.name"
|
||
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
|
||
t-att-id="element_id"
|
||
t-att-value="defaults[attrs.name] || ''"/>
|
||
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="SearchView.date">
|
||
<label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
|
||
t-att-title="attrs.help"
|
||
t-att-for="element_id"
|
||
t-att-style="style">
|
||
<t t-esc="attrs.string || attrs.name"/>
|
||
<span t-if="attrs.help">?</span>
|
||
</label>
|
||
<div t-att-style="style">
|
||
<span t-att-id="element_id"/>
|
||
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="SearchView.field.selection">
|
||
<label t-att-title="attrs.help"
|
||
t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
|
||
t-att-for="element_id"
|
||
t-att-style="style">
|
||
<t t-esc="attrs.string || attrs.name"/>
|
||
<span t-if="attrs.help">?</span>
|
||
</label>
|
||
<div t-att-style="style">
|
||
<select t-att-name="attrs.name" t-att-id="element_id"
|
||
t-att-autofocus="attrs.default_focus === '1' || undefined">
|
||
<option t-if="prepend_empty"/>
|
||
<t t-foreach="attrs.selection" t-as="option">
|
||
<t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
|
||
<option t-if="selected"
|
||
t-attf-selected="selected"
|
||
t-att-value="option_index">
|
||
<t t-esc="option[1]"/>
|
||
</option>
|
||
<option t-if="!selected" t-att-value="option_index">
|
||
<t t-esc="option[1]"/>
|
||
</option>
|
||
</t>
|
||
</select>
|
||
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
|
||
</div>
|
||
</t>
|
||
<div t-name="SearchView.FilterMenu" class="btn-group btn-group-sm">
|
||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||
<span class="fa fa-filter"/> Filters <span class="caret"/>
|
||
</button>
|
||
<ul class="dropdown-menu filters-menu" role="menu">
|
||
<li class="oe-add-filter closed-menu"><a>Add Custom Filter</a></li>
|
||
<li class="oe-add-filter-menu"><button type="button" class="btn btn-default oe-apply-filter">Apply</button><a class="oe-add-condition"><span class="fa fa-plus-circle"/> Add a condition</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div t-name="SearchView.GroupByMenu" class="btn-group btn-group-sm oe-groupby-menu">
|
||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||
<span class="fa fa-bars"/> Group By <span class="caret"/>
|
||
</button>
|
||
<ul class="dropdown-menu group-by-menu" role="menu">
|
||
<li class="divider"/>
|
||
<li class="add-custom-group closed-menu"><a>Add custom group</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<t t-name="GroupByMenuSelector">
|
||
<li><select class="form-control oe-add-group oe-group-selector">
|
||
<t t-foreach="groupable_fields" t-as="field">
|
||
<option t-att-data-name="field"><t t-esc="groupable_fields[field].string"/></option>
|
||
</t>
|
||
</select></li>
|
||
<li><button type="button" class="btn btn-default oe-add-group oe-select-group">Apply</button></li>
|
||
</t>
|
||
<div t-name="SearchView.FavoriteMenu" class="btn-group btn-group-sm">
|
||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||
<span class="fa fa-star"/> Favorites <span class="caret"/>
|
||
</button>
|
||
<ul class="dropdown-menu favorites-menu" role="menu">
|
||
<li class="divider"/>
|
||
<li class="oe-save-search closed-menu"><a>Save current search</a></li>
|
||
<li class="oe-save-name"><input type="text" class="form-control"></input></li>
|
||
<li class="oe-save-name">
|
||
<span><input type="checkbox"/>Use by default</span>
|
||
</li>
|
||
<li class="oe-save-name">
|
||
<span class="oe-share-filter"><input type="checkbox"/>Share with all users</span>
|
||
</li>
|
||
<li class="oe-save-name"><button type="button" class="btn btn-default">Save</button></li>
|
||
</ul>
|
||
</div>
|
||
<t t-name="SearchView.extended_search.proposition">
|
||
<li class="oe-filter-condition">
|
||
<span class="o-or-filter">or</span>
|
||
<span>
|
||
<select class="searchview_extended_prop_field form-control">
|
||
<t t-foreach="widget.attrs.fields" t-as="field">
|
||
<option t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
|
||
t-att-value="field.name">
|
||
<t t-esc="field.string"/>
|
||
</option>
|
||
</t>
|
||
</select>
|
||
<span class="searchview_extended_delete_prop fa fa-trash-o"/>
|
||
</span>
|
||
<select class="searchview_extended_prop_op form-control"/>
|
||
<span class="searchview_extended_prop_value"/>
|
||
</li>
|
||
</t>
|
||
<t t-name="SearchView.extended_search.proposition.char">
|
||
<input class="field_char form-control"/>
|
||
</t>
|
||
<t t-name="SearchView.extended_search.proposition.empty">
|
||
<span/>
|
||
</t>
|
||
<t t-name="SearchView.extended_search.proposition.integer">
|
||
<input type="number" class="field_integer form-control" value = "0" step="1"/>
|
||
</t>
|
||
<t t-name="SearchView.extended_search.proposition.float">
|
||
<input class="field_float form-control"
|
||
t-att-type="widget.decimal_point === '.' ? 'number' : 'text'"
|
||
t-attf-title="Number using #{widget.decimal_point || '.' } as decimal separator."
|
||
t-attf-pattern="[0-9]+([\\#{widget.decimal_point || '.' }][0-9]+)?"
|
||
t-attf-value="0#{widget.decimal_point || '.' }0" step="0.01"/>
|
||
</t>
|
||
<t t-name="SearchView.extended_search.proposition.selection">
|
||
<select class="form-control">
|
||
<t t-foreach="widget.field.selection" t-as="element">
|
||
<option t-att-value="element[0]"><t t-esc="element[1]"/></option>
|
||
</t>
|
||
</select>
|
||
</t>
|
||
|
||
<div t-name="SearchView.autocomplete" class="oe-autocomplete">
|
||
<ul>
|
||
</ul>
|
||
</div>
|
||
<t t-name="ExportView">
|
||
<a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
|
||
</t>
|
||
<table t-name="ExportTreeView" class="oe_export"
|
||
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">
|
||
<option value="yes">Import-Compatible Export</option>
|
||
<option value="">Export all Data</option>
|
||
</select>
|
||
|
||
<label for="export_format">Export Formats</label>
|
||
<select id="export_format" name="export_format"></select>
|
||
</td>
|
||
</tr>
|
||
|
||
<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">
|
||
<!-- 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>
|
||
<button class="oe_button" id="move_up">Move Up</button>
|
||
<button class="oe_button" id="move_down">Move Down</button>
|
||
</td>
|
||
<td class="oe_export_fields_selector_right">
|
||
<select name="fields_list" id="fields_list"
|
||
multiple="multiple"></select>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<t t-name="ExportTreeView-Domain">
|
||
<t t-if="! record.ids_to_export">
|
||
<p><strong>Please pay attention that all records matching your search filter will be exported. Not only the selected ids.</strong></p>
|
||
</t>
|
||
<t t-if="record.ids_to_export">
|
||
<p><strong>Please note that only the selected ids will be exported.</strong></p>
|
||
</t>
|
||
</t>
|
||
<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">
|
||
<td width="18" t-translation="off">&nbsp;</td>
|
||
</t>
|
||
</t>
|
||
<td valign="top" align="left" style="cursor: pointer;" width="18">
|
||
<t t-if="field.children">
|
||
<t t-if="(field.id).split('/').length != 3">
|
||
<img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
|
||
</t>
|
||
</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>
|
||
<t t-name="ExportNewList">
|
||
<tr>
|
||
<th><label>Save as:</label></th>
|
||
<td><input size="10" type="text" id="savelist_name"/></td>
|
||
<td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
|
||
</tr>
|
||
</t>
|
||
<t t-name="Exists.ExportList">
|
||
<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>
|
||
<button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
|
||
</t>
|
||
|
||
<div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
|
||
<input t-att-placeholder="_t('Type name to search')"/>
|
||
</div>
|
||
<t t-name="Throbber">
|
||
<div>
|
||
<div class="oe_blockui_spin" style="height: 50px">
|
||
</div>
|
||
<br />
|
||
<div class="oe_throbber_message" style="color:white"></div>
|
||
</div>
|
||
</t>
|
||
<t t-name="M2ODialog">
|
||
<div>
|
||
<p class="oe_grey"/>
|
||
Name: <input class="oe_form_m2o_input_name" type="text"/>
|
||
</div>
|
||
</t>
|
||
<t t-name="M2ODialog.buttons">
|
||
<button class="oe_form_m2o_qc_button oe_button oe_highlight">Create</button>
|
||
<button class="oe_form_m2o_sc_button oe_button">Create and edit</button> or
|
||
<button class="oe_form_m2o_cancel_button oe_button oe_link"><span>Cancel</span></button>
|
||
</t>
|
||
<t t-name="FieldMonetary" t-extend="FieldChar">
|
||
<t t-jquery="t:first" t-operation="before">
|
||
<t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'before'">
|
||
<t t-esc="widget.get('currency_info').symbol"/>
|
||
</t>
|
||
</t>
|
||
<t t-jquery="t:last" t-operation="after">
|
||
<t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'after'">
|
||
<t t-esc="widget.get('currency_info').symbol"/>
|
||
</t>
|
||
</t>
|
||
</t>
|
||
<t t-name="FieldMany2ManyCheckBoxes">
|
||
<t t-foreach="widget.get('records')" t-as="record">
|
||
<div>
|
||
<t t-if="widget.get('value').indexOf(record[0]) !== -1">
|
||
<input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/>
|
||
</t>
|
||
<t t-if="widget.get('value').indexOf(record[0]) === -1">
|
||
<input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"/>
|
||
</t>
|
||
<t t-esc="record[1]"/>
|
||
</div>
|
||
</t>
|
||
</t>
|
||
<t t-name="X2ManyCounter">
|
||
<a href="javascript:void(0)"><t t-esc="text"/></a>
|
||
</t>
|
||
<t t-name="StatInfo">
|
||
<strong><t t-esc="value"/></strong><br/><t t-esc="text"/>
|
||
</t>
|
||
<button t-name="toggle_button" type="button"
|
||
t-att-title="widget.string"
|
||
style="box-shadow: none; white-space:nowrap;">
|
||
<img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
|
||
t-att-alt="widget.string"/>
|
||
</button>
|
||
<button t-name="FieldToggleBoolean" type="button"
|
||
t-att-title="widget.string" class="oe_toggle_button">
|
||
<img t-attf-src="#{_s}/web/static/src/img/icons/#{widget.icon}" t-att-alt="widget.string"/>
|
||
</button>
|
||
|
||
</templates>
|