1 <?xml version="1.0" encoding="UTF-8"?>
4 <templates id="template" xml:space="preserve">
6 <div id="oe_loading" class="loading"></div>
7 <div id="oe_notification" class="oe_notification">
8 <div id="oe_notification_default">
9 <a class="ui-notify-cross ui-notify-close" href="#">x</a>
13 <div id="oe_notification_alert" class="ui-state-error">
14 <a class="ui-notify-cross ui-notify-close" href="#">x</a>
15 <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
20 <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
22 <td colspan="2" valign="top">
23 <div id="oe_header" class="header"></div>
24 <div id="oe_menu" class="menu"></div>
28 <td valign="top" class="login-container" colspan="2">
29 <div id="oe_login" class="login"></div>
32 <tr class="db_options_row">
33 <td valign="top" class="db_container">
34 <div id="oe_database" class="database"></div>
37 <div id="oe_db_options"></div>
41 <td valign="top" id="oe_secondary_menu" class="secondary_menu">
44 <div id="oe_app" class="oe-application">
50 <div id="oe_footer" class="oe_footer">
51 <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">openerp.com</a>.</p>
61 <ul class="db_options" style="padding: 0px; display: inline;">
62 <li id="db-create">Create</li>
63 <li id="db-drop">Drop</li>
64 <li id="db-backup">Backup</li>
65 <li id="db-restore">Restore</li>
66 <li id="db-change-password">Password</li>
67 <li id="back-to-login">Back to Login</li>
70 <t t-name="Database.CreateDB">
71 <form name="create_db_form" class="oe_forms" method="POST">
74 <td class="option_string">
79 <table align="center" class="db_option_table">
81 <td><label for="super_admin_pwd">Master password:</label></td>
82 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
85 <td><label for="db_name">New database name:</label></td>
86 <td><input type="text" name="db_name" class="required"/></td>
89 <td><label for="demo_data">Load Demonstration data:</label></td>
90 <td><input type="checkbox" name="demo_data"/></td>
93 <td><label for="db_lang">Default language:</label></td>
95 <select name="db_lang" t-if="lang_list">
96 <t t-foreach="lang_list" t-as="lang">
97 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
103 <td><label for="create_admin_pwd">Admin password:</label></td>
104 <td><input type="password" name="create_admin_pwd" class="required"/></td>
107 <td><label for="create_confirm_pwd">Confirm password:</label></td>
108 <td><input type="password" name="create_confirm_pwd" class="required"
109 equalTo="input[name=create_admin_pwd]"/></td>
112 <td colspan="2" align="right"><input type="submit" value="Create"/></td>
118 <form name="drop_db_form" class="oe_forms" method="POST">
121 <td class="option_string">
126 <table align="center" class="db_option_table">
128 <td><label for="drop_db">Database:</label></td>
130 <select t-if="db_list" name="drop_db" autofocus="autofocus">
131 <t t-foreach="db_list" t-as="db">
132 <option t-att-value="db"><t t-esc="db"/></option>
138 <td><label for="drop_password">Master Password:</label></td>
139 <td><input type="password" name="drop_pwd" class="required"/></td>
142 <td colspan="2" align="right"><input type="submit" value="Drop"/></td>
147 <t t-name="BackupDB">
148 <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
149 action="/base/database/backup">
150 <input type="hidden" name="token"/>
153 <td class="option_string">
158 <table align="center" class="db_option_table">
160 <td><label for="backup_db">Database:</label></td>
162 <select t-if="db_list" name="backup_db" autofocus="autofocus">
163 <t t-foreach="db_list" t-as="db">
164 <option t-att-value="db"><t t-esc="db"/></option>
170 <td><label for="backup_pwd">Master Password:</label></td>
171 <td><input type="password" name="backup_pwd" class="required"/></td>
174 <td colspan="2" align="right"><input type="submit" value="Backup"/></td>
179 <t t-name="RestoreDB">
180 <form name="restore_db_form" class="oe_forms" method="POST">
183 <td class="option_string">
188 <table align="center" class="db_option_table">
190 <td><label for="restore_db">File:</label></td>
191 <td><input type="file" name="db_file" class="required"
192 autofocus="autofocus"/></td>
195 <td><label for="restore_pwd">Master Password:</label></td>
196 <td><input type="password" name="restore_pwd" class="required"/></td>
199 <td><label for="new_db">New database name:</label></td>
200 <td><input type="text" name="new_db" class="required"/></td>
203 <td colspan="2" align="right"><input type="submit" value="Restore"/></td>
208 <t t-name="Change_DB_Pwd">
209 <form name="change_pwd_form" class="oe_forms" method="POST">
212 <td class="option_string">
213 CHANGE MASTER PASSWORD
217 <table align="center" class="db_option_table">
219 <td><label for="old_pwd">Master password:</label></td>
220 <td><input type="password" name="old_pwd" class="required"
221 minlength="1" autofocus="autofocus"/></td>
224 <td><label for="new_pwd">New master password:</label></td>
225 <td><input type="password" name="new_pwd" class="required"
229 <td><label for="confirm_pwd">Confirm new master password:</label></td>
230 <td><input type="password" name="confirm_pwd" class="required"
231 equalTo="input[name=new_pwd]" minlength="1"/></td>
234 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
240 <form class="oe_forms">
243 <img src="/base/static/src/img/stock_person.png" alt="" />
245 <div class="oe_box2">
246 <table align="center" cellspacing="2px" cellpadding="0">
248 <td><label for="db">Database:</label></td>
251 <input type="text" name="db" t-att-value="selected_db || ''" autofocus="true"/>
255 <t t-foreach="db_list" t-as="db">
256 <t t-if="selected_db === db">
257 <option t-att-value="db" selected="true">
258 <t t-esc="db"/></option>
260 <t t-if="selected_db !== db">
261 <option t-att-value="db"><t t-esc="db"/></option>
269 <td><label for="login">User:</label></td>
270 <td><input type="text" name="login"
271 t-att-value="selected_login || ''" autofocus="true"/></td>
274 <td><label for="password">Password:</label></td>
275 <td><input type="password" name="password"
276 t-att-value="selected_password || ''"/></td>
281 <button type="button" id="oe-db-config">Database</button>
282 <button type="submit" name="submit">Login</button>
288 <div class="login_error_message">Bad username or password</div>
290 <div class="oe_login_right_pane">
291 <p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
292 <h3>OpenERP's vision to be:</h3>
294 <table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
298 <img src="/base/static/src/img/product.png"/>
301 <strong>Full featured</strong><br />
302 Today's enterprise challenges are multiple. We provide one module for each need.
307 <img src="/base/static/src/img/accessories-archiver.png"/>
310 <strong>Open Source</strong><br />
311 To Build a great product, we rely on the knowledge of thousands of contributors.
316 <img src="/base/static/src/img/partner.png" />
319 <strong>User Friendly</strong><br />
320 In order to be productive, people need clean and easy to use interface.
329 <a href="/" class="company_logo_link">
330 <div class="company_logo" />
332 <h1 class="header_title" t-if="session.session_is_valid()">
333 <span class="database"><t t-esc="session.db"/></span> - <t t-esc="session.login"/> <br/>
334 <small class="username">rpc_session_id: <t t-esc="session.session_id"/></small>
336 <div class="header_corner">
337 <ul class="block" t-if="session.session_is_valid()">
339 <a href="#home" title="Home" class="home"><img src="/base/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
342 <a href="#requests" title="Requests" class="requests"><img src="/base/static/src/img/header-requests.png" width="16" height="16" border="0"/><small>1</small></a>
344 <li class="preferences">
345 <a href="#preferences" title="Preferences" class="preferences"><img src="/base/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
348 <a href="#about" title="About" class="about"><img src="/base/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
351 <a href="http://doc.openerp.com/v6.0/book?version=$version" title="Help" target="_blank" class="help"><img src="/base/static/src/img/header-help.png" width="16" height="16" border="0"/></a>
355 <a href="#logout" class="logout">LOGOUT</a>
359 <div class="oe-shortcuts"> </div>
361 <ul t-name="Shortcuts">
362 <li t-foreach="shortcuts" t-as="shortcut"
363 t-att-data-id="shortcut.res_id"
364 t-att-data-shortcut-id="shortcut.id"
365 ><t t-esc="shortcut.name"/></li>
368 <table align="center">
370 <t t-foreach="data.children" t-as="menu">
372 <a href="#" t-att-data-menu="menu.id">
373 <t t-esc="menu.name"/>
380 <t t-name="Menu.secondary">
381 <div style="display: none" class="menu_accordion" t-att-data-menu-parent="menu.id">
382 <t t-foreach="menu.children" t-as="menu">
383 <t t-set="header">h3</t>
384 <t t-call="Menu.secondary.children"/>
388 <t t-name="Menu.secondary.children">
389 <<t t-esc="header"/>>
390 <a href="#" t-attf-id="menu_#{menu.id}">
391 <span><t t-esc="menu.name"/></span>
393 </<t t-esc="header"/>>
394 <div class="menu_content">
395 <t t-foreach="menu.children" t-as="menu">
396 <t t-if="!menu.children.length">
397 <a href="#" class="leaf" t-att-data-menu="menu.id">
398 <span><t t-esc="menu.name"/></span>
401 <t t-if="menu.children.length">
402 <div class="submenu_accordion">
403 <t t-call="Menu.secondary.children">
404 <t t-set="header">h4</t>
411 <t t-name="ViewManager">
412 <table class="view-manager-main-table">
414 <td class="view-manager-main-content">
415 <a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
416 href="javascript: void(0)"> </a>
417 <div class="oe_vm_switch">
418 <t t-if="views.length != 1" t-foreach="views" t-as="view">
419 <button type="button" t-att-data-view-type="view.view_type">
420 <t t-esc="view.view_type"/>
424 <div t-attf-id="#{prefix}_search" t-opentag="true"/>
425 <t t-foreach="views" t-as="view">
426 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
429 <td class="view-manager-main-sidebar" height="100%">
430 <t t-foreach="views" t-as="view">
431 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
438 <a class="toggle-sidebar"></a>
439 <div class="sidebar-content">
440 <div class="sidebar-actions">
444 <t t-name="Sidebar.section">
445 <h2><t t-esc="name"/></h2>
446 <div t-att-id="section_id" t-att-class="classname">
448 <li t-foreach="items" t-as="item" t-att-class="item.classname">
449 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
450 <t t-esc="item.label"/>
456 <t t-name="TreeView">
457 <h2 class="oe_view_title"><t t-esc="title"/></h2>
458 <select t-if="toolbar" style="width: 30%">
460 <table class="oe-treeview-table">
463 <th t-foreach="fields_view" t-as="field"
464 t-if="!field.attrs.modifiers.tree_invisible"
465 class="treeview-header">
466 <t t-esc="fields[field.attrs.name].string" />
474 <tr t-name="TreeView.rows"
475 t-foreach="records" t-as="record"
476 t-att-id="'treerow_' + record.id"
477 t-att-data-id="record.id" t-att-data-level="level + 1">
478 <t t-set="children" t-value="record[children_field]"/>
479 <t t-set="has_children" t-value="children and children.length"/>
481 <td t-foreach="fields_view" t-as="field"
482 t-if="!field.attrs.modifiers.tree_invisible"
483 t-att-data-id="record.id"
484 t-att-style="!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px' : undefined"
485 t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
486 <span t-if="!field.attrs.modifiers.invisible">
487 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
491 <table t-name="ListView" class="oe-listview-content">
492 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
493 <thead class="ui-widget-header">
494 <tr t-if="options.action_buttons !== false or options.pager !== false">
495 <th t-att-colspan="columns_count">
498 <td t-if="options.action_buttons !== false" class="oe-actions">
499 <button type="button" class="oe-list-add"
500 t-if="options.addable">
501 <t t-esc="options.addable"/>
503 <button type="button" class="oe-list-delete"
504 t-if="options.selectable and options.deletable">
508 <th t-if="options.pager !== false" class="oe-list-pager">
509 <button type="button" disabled="disabled"
510 data-pager-action="first">First</button>
511 <button type="button" disabled="disabled"
512 data-pager-action="previous"
515 <span class="oe-pager-state">
518 <button type="button" disabled="disabled"
519 data-pager-action="next">></button>
520 <button type="button" disabled="disabled"
521 data-pager-action="last">Last</button>
527 <tr t-if="options.header">
528 <t t-foreach="columns" t-as="column">
529 <th t-if="column.meta">
530 <t t-esc="column.string"/>
533 <th t-if="options.selectable" width="1"/>
534 <t t-foreach="columns" t-as="column">
535 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
536 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
537 <t t-if="column.tag !== 'button'"
538 ><t t-esc="column.string"/></t>
541 <th t-if="options.deletable" width="1"/>
544 <tfoot class="ui-widget-header">
546 <td t-if="options.selectable"/>
547 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
548 t-att-data-field="column.id" t-att-title="column.label">
550 <td t-if="options.deletable"/>
554 <t t-name="ListView.rows" t-foreach="rows" t-as="row">
555 <t t-call="ListView.row"/>
557 <tr t-name="ListView.row" t-att-class="row_parity"
558 t-att-data-index="row_index">
559 <t t-foreach="columns" t-as="column">
560 <td t-if="column.meta">
564 <th t-if="options.selectable" class="oe-record-selector" width="1">
565 <input type="checkbox"/>
567 <t t-foreach="columns" t-as="column">
568 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
569 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
570 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
571 t-att-data-field="column.id">
572 <t t-raw="render_cell(row.data, column)"/>
575 <td t-if="options.deletable" class='oe-record-delete' width="1">
576 <button type="button" name="delete">â™»</button>
579 <t t-name="ListView.row.form">
580 <t t-raw="frame.render()"/>
582 <t t-name="FormView">
583 <div class="oe_form_header" t-att-id="view.element_id + '_header'">
584 <h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/> <button class="oe_get_xml_view">xml</button></h2>
585 <div class="oe_form_buttons" t-if="view.options.action_buttons !== false">
586 <!--<button type="button" class="oe_form_button_save">
587 <span class="oe_form_on_update">Save</span>
588 <span class="oe_form_on_create">Create</span>
590 <button type="button" class="oe_form_button_save_edit">
591 <span class="oe_form_on_update">Save & Edit</span>
592 <span class="oe_form_on_create">Create & Edit</span>
594 <!--<button type="button" class="oe_form_button_cancel">Cancel</button>-->
595 <button type="button" class="oe_form_button_new">New</button>
597 <div class="oe_form_pager" t-if="view.options.pager !== false">
598 <button type="button" data-pager-action="first">First</button>
599 <button type="button" data-pager-action="previous"><<</button>
601 <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
603 <button type="button" data-pager-action="next">>></button>
604 <button type="button" data-pager-action="last">Last</button>
607 <t t-raw="frame.render()"/>
609 <t t-name="FormView.sidebar.attachments">
610 <div class="oe-sidebar-attachments-toolbar">
611 <div class="oe-binary-file-set" style="float: right">
612 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
613 method="post" enctype="multipart/form-data" action="/base/binary/upload_attachment">
614 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
615 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
616 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
617 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
618 <button class="button" type="button">
619 <img src="/base/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
622 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
623 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
625 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
628 <br style="clear: both"/>
629 <ul class="oe-sidebar-attachments-items">
630 <li t-foreach="attachments" t-as="attachment">
631 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/base/binary/saveas?session_id='
632 + session.session_id + '&model=ir.attachment&id=' + attachment.id
633 + '&field=datas&fieldname=name&t=' + (new Date().getTime())"/>
634 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
635 <t t-esc="attachment.name"/>
637 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
638 <img src="/base/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
645 <t t-raw="console.log('Unhandled widget', widget)"/>
647 <t t-name="WidgetFrame">
648 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
649 <tr t-foreach="widget.table" t-as="row">
650 <t t-foreach="row" t-as="td">
651 <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
652 t-att-width="td.width ? td.width : undefined"
653 t-att-nowrap="td.is_field_label or td.is_field_m2o? 'true' : undefined"
654 t-att-valign="td.table ? 'top' : undefined"
655 t-att-id="td.element_id"
656 t-att-class="'oe_form_frame_cell oe_form_' + (td.is_field_label ? 'label' : (td.field ? 'field_' + td.type : td.type))"
658 <t t-raw="td.render()"/>
664 <t t-name="WidgetNotebook">
666 <li t-foreach="widget.pages" t-as="page" t-att-id="page.element_tab_id">
667 <a t-att-href="'#' + page.element_id">
668 <t t-esc="page.string"/>
672 <t t-foreach="widget.pages" t-as="page">
673 <t t-raw="page.render()"/>
676 <t t-name="WidgetNotebookPage">
677 <div t-att-id="widget.element_id">
678 <t t-call="WidgetFrame"/>
681 <t t-name="WidgetSeparator">
682 <div t-att-class="'separator ' + (widget.node.attrs.orientation || 'horizontal')">
683 <t t-esc="widget.string"/>
686 <t t-name="WidgetLabel">
687 <label t-att-for="widget.element_id + '_field'"
688 t-att-class="'oe_form_label' + (widget.help ? '_help' : '')"
689 t-att-title="widget.help">
690 <t t-esc="widget.string"/>
691 <span t-if="widget.help">?</span>
692 <t t-if="widget.string and widget.node.tag != 'label'">:</t>
695 <t t-name="WidgetParagraph">
696 <p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
698 <t t-name="FieldChar">
700 t-att-name="widget.name"
701 t-att-id="widget.element_id + '_field'"
702 t-att-class="'field_' + widget.type" style="width: 100%"
705 <t t-name="FieldEmail">
706 <table cellpadding="0" cellspacing="0" border="0" width="100%">
709 <t t-call="FieldChar"/>
712 <button type="button" class="button" title="Send an e-mail with your default e-mail client">
713 <img src="/base/static/src/img/icons/terp-mail-message-new.png"/>
719 <t t-name="FieldUrl">
720 <table cellpadding="0" cellspacing="0" border="0" width="100%">
723 <t t-call="FieldChar"/>
726 <button type="button" class="button" title="Open this resource">
727 <img src="/base/static/src/img/icons/gtk-ok.png"/>
733 <t t-name="FieldText">
734 <textarea rows="6" style="width: 100%;"
735 t-att-name="widget.name"
736 t-att-id="widget.element_id + '_field'"
737 t-att-class="'field_' + widget.type"
740 <t t-name="FieldDate">
741 <input type="text" style="width: 100%"
742 t-att-name="widget.name"
743 t-att-id="widget.element_id + '_field'"
744 t-att-class="'field_' + widget.type"
747 <t t-name="FieldSelection">
749 t-att-name="widget.name"
750 t-att-id="widget.element_id + '_field'"
751 t-att-class="'field_' + widget.type"
753 <t t-foreach="widget.field_index" t-as="options">
754 <option t-att-value="options.ikey">
755 <t t-esc="options.label"/>
760 <t t-name="FieldMany2One">
761 <div t-att-id="widget.element_id" class="oe-m2o">
762 <input t-att-id="widget.element_id + '_input'" type="text" style="width: 100%;"/>
763 <span class="oe-m2o-drop-down-button" t-att-id="widget.element_id + '_drop_down'">
764 <img src="/base/static/src/img/down-arrow.png" /></span>
765 <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
766 <img src="/base/static/src/img/icons/gtk-index.png"/></span>
767 <div t-att-id="widget.cm_id" class="contextMenu" style="display:none"><ul>
768 <li t-att-id="widget.cm_id + '_open'" style="color:grey">Open...</li>
769 <li t-att-id="widget.cm_id + '_create'">Create...</li>
770 <li t-att-id="widget.cm_id + '_search'">Search...</li>
774 <t t-name="FieldOne2Many">
775 <div t-att-id="widget.element_id">
779 <t t-name="FieldMany2Many">
780 <div t-att-id="widget.list_id"></div>
782 <t t-name="FieldReference">
783 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
785 <td t-att-id="widget.selection.element_id" class="oe_form_frame_cell oe_form_selection">
786 <t t-raw="widget.selection.render()"/>
788 <td t-att-id="widget.m2o.element_id" class="oe_form_frame_cell oe_form_many2one" nowrap="true">
789 <t t-raw="widget.m2o.render()"/>
794 <t t-name="FieldBoolean">
795 <input type="checkbox"
796 t-att-name="widget.name"
797 t-att-id="widget.element_id + '_field'"
798 t-att-class="'field_' + widget.type"/>
800 <t t-name="FieldProgressBar">
801 <div t-opentag="true" class="oe-progressbar">
805 <t t-name="FieldBinaryImage">
806 <table cellpadding="0" cellspacing="0" border="0">
809 <img src="/base/static/src/img/placeholder.png" class="oe-binary-image" border="1"
810 t-att-id="widget.element_id + '_field'"
811 t-att-name="widget.name"
812 t-att-class="'field_' + widget.type"
813 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
814 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
819 <td align="center" valign="bottom" height="25">
820 <div class="oe-binary">
821 <table cellspacing="0" cellpadding="0" border="0">
824 <div class="oe-binary-file-set" style="width: 40px; height:22px;">
825 <form class="oe-binary-form" t-att-target="widget.iframe"
826 method="post" enctype="multipart/form-data" action="/base/binary/upload">
827 <input type="hidden" name="session_id" value=""/>
828 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
829 <button class="button" type="button" title="Set Image">
830 <img src="/base/static/src/img/icons/STOCK_DIRECTORY.png"/>
832 <input type="file" class="oe-binary-file" name="ufile"/>
837 <button class="button oe-binary-file-clear" type="button" title="Clear">
838 <img src="/base/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
844 <div class="oe-binary-progress" style="display: none">
845 <img src="/base/static/src/img/throbber.gif" width="16" height="16"/>
848 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
853 <t t-name="FieldBinaryFile">
854 <table cellpadding="0" cellspacing="0" border="0" width="100%">
858 t-att-name="widget.name"
859 t-att-id="widget.element_id + '_field'"
860 t-att-class="'field_' + widget.type" style="width: 100%"
863 <td class="oe-binary" nowrap="true">
864 <table cellspacing="0" cellpadding="0" border="0">
867 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
868 <form class="oe-binary-form" t-att-target="widget.iframe"
869 method="post" enctype="multipart/form-data" action="/base/binary/upload">
870 <input type="hidden" name="session_id" value=""/>
871 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
872 <button class="button" type="button" title="Set Image">
873 <img src="/base/static/src/img/icons/STOCK_DIRECTORY.png"/>
876 <input type="file" class="oe-binary-file" name="ufile"/>
881 <button class="button oe-binary-file-save" type="button" title="Save As">
882 <img src="/base/static/src/img/icons/gtk-save.png"/>
887 <button class="button oe-binary-file-clear" type="button" title="Clear">
888 <img src="/base/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
895 <td class="oe-binary-progress" style="display: none" nowrap="true">
896 <img src="/base/static/src/img/throbber.gif" width="16" height="16"/>
898 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
903 <t t-name="WidgetButton">
904 <button type="button"
905 t-att-id="widget.element_id + '_button'"
906 t-att-title="widget.help"
907 style="width: 100%" class="button">
908 <img t-if="widget.node.attrs.icon" t-att-src="'/base/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
909 <span t-if="widget.string"><t t-esc="widget.string"/></span>
912 <t t-name="SearchView">
913 <h2 class="oe_view_title"><t t-esc="view.attrs['string']"/></h2>
914 <form class="oe_forms">
915 <t t-call="SearchView.render_lines"/>
916 <div class="oe_search-view-buttons" style="text-align: right;">
917 <input type="submit" value="Search"/>
918 <input type="reset" value="Clear"/>
919 <button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
920 <select class="oe_search-view-filters-management">
925 <t t-name="SearchView.managed-filters">
926 <option value="_filters">-- Filters --</option>
927 <t t-set="i" t-value="0"/>
928 <t t-foreach="filters" t-as="filter">
929 <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
930 <t t-set="i" t-value="i+1"/>
932 <option value="_actions">-- Actions --</option>
933 <option value="save_filter">Save Filter</option>
934 <option value="manage_filters">Manage Filters</option>
936 <t t-name="SearchView.managed-filters.add">
940 <p>(Any existing filter with the same name will be replaced)</p>
943 <t t-name="SearchView.render_lines">
944 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
945 t-foreach="lines" t-as="line">
947 <td t-foreach="line" t-as="widget">
948 <t t-raw="widget.render(defaults)"/>
953 <button t-name="SearchView.filter" type="button"
954 t-att-id="element_id"
955 t-att-title="attrs.help"
956 t-att-class="classes.join(' ')"
957 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
958 <img t-if="attrs.icon" t-att-src="'/base/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
959 <br t-if="attrs.icon and attrs.string"/>
960 <t t-esc="attrs.string"/>
962 <span t-name="SearchView.filters" class="filter_label_group"
963 ><t t-foreach="filters" t-as="filter"
964 ><t t-raw="filter.render(defaults)"/></t
966 <t t-name="SearchView.field">
967 <label style="display: block" t-att-title="attrs.help"
968 t-att-for="element_id">
969 <t t-esc="attrs.string || attrs.name"/>
970 <span t-if="attrs.help">(?)</span>
972 <div style="white-space: nowrap;">
973 <input type="text" size="15" t-att-name="attrs.name"
974 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
975 t-att-id="element_id"
976 t-att-value="defaults[attrs.name] || ''"/>
977 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
980 <t t-name="SearchView.field.selection">
981 <label style="display: block" t-att-title="attrs.help"
982 t-att-for="element_id">
983 <t t-esc="attrs.string || attrs.name"/>
984 <span t-if="attrs.help">(?)</span>
986 <div style="white-space: nowrap;">
987 <select t-att-name="attrs.name" t-att-id="element_id"
988 t-att-autofocus="attrs.default_focus === '1' || undefined">
990 <t t-foreach="attrs.selection" t-as="option">
991 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
992 <option t-if="selected"
993 t-att-value="option[0]" selected="selected">
994 <t t-esc="option[1]"/>
996 <option t-if="!selected" t-att-value="option[0]">
997 <t t-esc="option[1]"/>
1001 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1004 <t t-name="SearchView.util.expand">
1005 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1006 t-att-id="element_id">
1007 <a t-if="label" class="searchview_group_string" href="#">
1010 <div class="searchview_group_content">
1011 <t t-raw="content"/>
1015 <t t-name="SearchView.group">
1016 <t t-call="SearchView.util.expand">
1017 <t t-set="expand" t-value="attrs.expand"/>
1018 <t t-set="label" t-value="attrs.string"/>
1020 <t t-call="SearchView.render_lines"/>
1024 <t t-name="SearchView.extended_search">
1025 <t t-call="SearchView.util.expand">
1026 <t t-set="expand" t-value="false"/>
1027 <t t-set="label" t-value="'Advanced Filters'"/>
1029 <div class="searchview_extended_groups_list">
1034 <t t-name="SearchView.extended_search.group">
1035 <div t-att-id="element_id" class="searchview_extended_group">
1036 <select class="searchview_extended_group_choice">
1037 <option value="any">Any of the following conditions must match</option>
1038 <option value="all">All the following conditions must match</option>
1039 <option value="none">None of the following conditions must match</option>
1041 <a class="searchview_extended_delete_group"
1042 href="javascript:void(0)"><span></span></a>
1043 <div class="searchview_extended_propositions_list">
1045 <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1046 <span>Add condition</span></a>
1047 <div class="oe_adv_filters_and"><span>and</span></div>
1050 <t t-name="SearchView.extended_search.proposition">
1051 <div t-att-id="element_id">
1052 <select class="searchview_extended_prop_field">
1053 <t t-foreach="attrs.fields" t-as="field">
1054 <option t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1055 t-att-value="field.name">
1056 <t t-esc="field.string"/>
1060 <select class="searchview_extended_prop_op"/>
1061 <span class="searchview_extended_prop_value"/>
1062 <a class="searchview_extended_delete_prop"
1063 href="javascript:void(0)"><span>Â </span></a>
1066 <t t-name="SearchView.extended_search.proposition.char">
1067 <input t-att-id="element_id" class="field_char"/>
1069 <t t-name="SearchView.extended_search.proposition.datetime">
1070 <input t-att-id="element_id" class="field_datetime"/>
1072 <t t-name="SearchView.extended_search.proposition.date">
1073 <input t-att-id="element_id" class="field_date"/>
1075 <t t-name="SearchView.extended_search.proposition.integer">
1076 <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1078 <t t-name="SearchView.extended_search.proposition.float">
1079 <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1081 <t t-name="SearchView.extended_search.proposition.boolean">
1083 <t t-name="SearchView.extended_search.proposition.selection">
1084 <select t-att-id="element_id">
1085 <t t-foreach="field.selection" t-as="element">
1086 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1090 <t t-name="DialogWarning">
1091 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1093 <td><img src="/base/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1097 var message = d.message ? d.message : d.error.data.fault_code;
1098 d.html_error = context.engine.tools.html_escape(message)
1099 .replace(/\n/g, '<br/>');
1101 <t t-raw="html_error"/>
1107 <t t-name="DialogTraceback">
1108 <pre><t t-esc="error.message"/></pre>
1110 <pre><t t-esc="error.data.debug"/></pre>
1112 <t t-name="SelectCreatePopup">
1113 <div t-att-id="element_id">
1114 <table style="width:100%">
1115 <tr style="width:100%">
1116 <td style="width:100%">
1117 <div t-att-id="element_id + '_search'" style="width:100%"></div>
1120 <tr style="width:100%">
1121 <td style="width:100%">
1122 <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1126 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1129 <t t-name="SelectCreatePopup.search.buttons">
1130 <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1131 <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1133 <t t-name="SelectCreatePopup.form.buttons">
1134 <t t-if="widget.options.disable_multiple_selection">
1135 <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1137 <t t-if="! widget.options.disable_multiple_selection">
1138 <button type="button" class="oe_selectcreatepopup-form-save-new">Save & New</button>
1139 <button type="button" class="oe_selectcreatepopup-form-save">Save & Close</button>
1141 <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1143 <t t-name="FormOpenPopup">
1144 <div t-att-id="element_id">
1145 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1148 <t t-name="FormOpenPopup.form.buttons">
1149 <button type="button" class="oe_formopenpopup-form-save">Save</button>
1150 <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1152 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1154 $(document.createElement('t'))
1155 .append(this.contents())
1157 't-foreach': this.attr('t-foreach'),
1158 't-as': this.attr('t-as')
1161 .after($(document.createElement('td')).append(
1162 $(document.createElement('button')).attr({
1163 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
1164 .before($(document.createElement('td')).append(
1165 $(document.createElement('button')).attr({
1166 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
1171 <t t-name="ExportView">
1172 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1174 <t t-name="ExportTreeView">
1175 <table class="view" style="background-color: #F3F3F3;">
1178 This wizard will export all data that matches the current search criteria to a CSV file.
1179 You can export all data or only the fields that can be reimported after modification.
1186 <td class="label"><label>Export Type:</label></td>
1188 <select id="import_compat" name="import_compat">
1189 <option value="1">Import Compatible Export</option>
1190 <option value="0">Export all Data</option>
1193 <td class="label"><label>Export Format</label></td>
1195 <select id="export_format" name="export_format">
1196 <option value="csv">CSV</option>
1197 <option value="xls">Excel</option>
1208 <table class="oe_export_fields_selector_export">
1210 <th class="oe_view_title" valign="bottom">Available fields</th>
1211 <th class="oe_view_title"></th>
1212 <th class="oe_view_title">Fields to export
1213 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1214 <div id="savenewlist"></div>
1215 <div id="ExistsExportList"></div>
1219 <td class="oe_export_fields_selector_left">
1220 <div id="left_field_panel">
1224 <table class="oe_export_fields_selector_center">
1227 <button id="add_field" class="oe_export_button_export">Add</button>
1232 <button id="remove_field" class="oe_export_button_export">Remove</button>
1237 <button id="remove_all_field" class="oe_export_button_export">Remove All</button>
1242 <td class="oe_export_fields_selector_right">
1243 <select name="fields_list" id="fields_list" multiple="multiple"></select>
1252 <t t-name="ExportTreeView-Secondary">
1253 <table id="field-tree-structure" class="oe_export_fields_selector_export" cellspacing="0" cellpadding="0">
1254 <tr><th class="oe_export_tree_header"> Name </th></tr>
1255 <t t-call="ExportTreeView-Secondary.children"/>
1258 <t t-name="ExportTreeView-Secondary.children">
1259 <t t-foreach="fields" t-as="field" >
1260 <tr t-att-id="'treerow-' + field.id" class="oe_export_row">
1262 <table class="tree_grid" border="0">
1263 <tr class="oe_export_row">
1264 <t t-foreach="(field.id).split('/')" t-as="level" >
1265 <t t-if="(field.id).split('/')[0] != level">
1266 <td width="18">&nbsp;</td>
1269 <td valign="top" align="left" style="cursor: pointer;" width="18">
1270 <t t-if="(field.children).length >= 1">
1271 <t t-if="(field.id).split('/').length != 3">
1272 <img t-att-id="'parentimg-' + field.id" src="/base/static/src/img/expand.gif" width="16" height="16" border="0"/>
1276 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1277 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1278 <t t-esc="field.string"/>
1288 <t t-name="ExportNewList">
1290 <th><label>Save as:</label></th>
1291 <td><input size="10" type="text" id="savelist_name"/></td>
1292 <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1296 <t t-name="Exists.ExportList">
1297 <tr><th align="right"><label >Saved exports:</label></th></tr>
1300 <select id="saved_export_list" style="width: 100%;">
1302 <t t-foreach="existing_exports" t-as="export">
1303 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1307 <td><button class="oe_export_button_export" id="delete_export_list">Delete</button></td>
1310 <t t-name="Change_Pwd">
1311 <form name="change_password_form" class="oe_forms" method="POST">
1312 <table width="100%">
1314 <td class="option_string">
1319 <table align="center" class="db_option_table">
1321 <td><label for="old_pwd">Old Password:</label></td>
1322 <td><input type="password" name="old_pwd" class="required"
1323 minlength="1" autofocus="autofocus"/></td>
1326 <td><label for="new_pwd">New Password:</label></td>
1327 <td><input type="password" name="new_pwd" class="required"
1328 minlength="1"/></td>
1331 <td><label for="confirm_pwd">Confirm Password:</label></td>
1332 <td><input type="password" name="confirm_pwd" class="required"
1333 equalTo="input[name=new_pwd]" minlength="1"/></td>
1336 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>