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="/web/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="/web/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="/web/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="/web/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="/web/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.
330 <a t-att-href="'/' + widget.qs" class="company_logo_link">
331 <div class="company_logo" />
335 <t t-name="Header-content">
336 <h1 class="header_title">
337 <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
338 <small class="username"><t t-esc="user.name"/></small>
340 <div class="header_corner">
343 <a t-att-href="'/' + widget.qs" title="Home" class="home"><img src="/web/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
347 <a href="#requests" title="Requests" class="requests"><img src="/web/static/src/img/header-requests.png" width="16" height="16" border="0"/><small>1</small></a>
350 <li class="preferences">
351 <a href="#preferences" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
354 <a href="#about" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
358 <a href="http://doc.openerp.com/v6.0/book?version=$version" title="Help" target="_blank" class="help"><img src="/web/static/src/img/header-help.png" width="16" height="16" border="0"/></a>
363 <a href="#logout" class="logout">LOGOUT</a>
367 <div class="oe-shortcuts"> </div>
369 <ul t-name="Shortcuts">
370 <li t-foreach="shortcuts" t-as="shortcut"
371 t-att-data-id="shortcut.res_id"
372 t-att-data-shortcut-id="shortcut.id"
373 ><t t-esc="shortcut.name"/></li>
376 <table align="center">
378 <t t-foreach="data.children" t-as="menu">
380 <a href="#" t-att-data-menu="menu.id">
381 <t t-esc="menu.name"/>
388 <t t-name="Menu.secondary">
389 <div style="display: none" class="menu_accordion" t-att-data-menu-parent="menu.id">
390 <t t-foreach="menu.children" t-as="menu">
391 <t t-set="header">h3</t>
392 <t t-call="Menu.secondary.children"/>
396 <t t-name="Menu.secondary.children">
397 <<t t-esc="header"/>>
398 <a href="#" t-attf-id="menu_#{menu.id}">
399 <span><t t-esc="menu.name"/></span>
401 </<t t-esc="header"/>>
402 <div class="menu_content">
403 <t t-foreach="menu.children" t-as="menu">
404 <t t-if="!menu.children.length">
405 <a href="#" class="leaf" t-att-data-menu="menu.id">
406 <span><t t-esc="menu.name"/></span>
409 <t t-if="menu.children.length">
410 <div class="submenu_accordion">
411 <t t-call="Menu.secondary.children">
412 <t t-set="header">h4</t>
419 <t t-name="ViewManager">
420 <table class="view-manager-main-table">
422 <td class="view-manager-main-content">
423 <a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
424 href="javascript: void(0)"> </a>
425 <div class="oe_vm_switch">
426 <t t-if="views.length != 1" t-foreach="views" t-as="view">
427 <button type="button" t-att-data-view-type="view.view_type">
428 <t t-esc="view.view_type"/>
432 <div t-attf-id="#{prefix}_search" t-opentag="true"/>
433 <t t-foreach="views" t-as="view">
434 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
437 <td class="view-manager-main-sidebar" height="100%">
438 <t t-foreach="views" t-as="view">
439 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
446 <a class="toggle-sidebar"></a>
447 <div class="sidebar-content">
448 <div class="sidebar-actions">
452 <t t-name="Sidebar.section">
453 <h2><t t-esc="name"/></h2>
454 <div t-att-id="section_id" t-att-class="classname">
456 <li t-foreach="items" t-as="item" t-att-class="item.classname">
457 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
458 <t t-esc="item.label"/>
464 <t t-name="TranslateDialog">
465 <ul class="oe_translate_tabs">
466 <li><a t-attf-href="##{widget.element_id}_fields">Fields</a></li>
467 <li><a t-attf-href="##{widget.element_id}_view">View labels</a></li>
468 <li><a t-attf-href="##{widget.element_id}_sidebar">Sidebar Relates</a></li>
470 <div t-attf-id="#{widget.element_id}_fields">
471 <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
473 <td class="oe_form_separator" width="1%" nowrap="nowrap">
474 <div class="separator horizontal">Field</div>
476 <th t-foreach="widget.languages" align="left">
477 <div class="separator horizontal"><t t-esc="name"/></div>
480 <tr t-foreach="widget.view.translatable_fields" t-as="field">
481 <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
482 <label class="oe_label"><t t-esc="field.string"/>:</label>
484 <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
485 <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
486 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
491 <div t-attf-id="#{widget.element_id}_view">
494 <div t-attf-id="#{widget.element_id}_sidebar">
498 <t t-name="TreeView">
499 <h2 class="oe_view_title"><t t-esc="title"/></h2>
500 <select t-if="toolbar" style="width: 30%">
502 <table class="oe-treeview-table">
505 <th t-foreach="fields_view" t-as="field"
506 t-if="!field.attrs.modifiers.tree_invisible"
507 class="treeview-header">
508 <t t-esc="fields[field.attrs.name].string" />
516 <tr t-name="TreeView.rows"
517 t-foreach="records" t-as="record"
518 t-att-id="'treerow_' + record.id"
519 t-att-data-id="record.id" t-att-data-level="level + 1">
520 <t t-set="children" t-value="record[children_field]"/>
521 <t t-set="has_children" t-value="children and children.length"/>
523 <td t-foreach="fields_view" t-as="field"
524 t-if="!field.attrs.modifiers.tree_invisible"
525 t-att-data-id="record.id"
526 t-att-style="!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px' : undefined"
527 t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
528 <span t-if="!field.attrs.modifiers.invisible">
529 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
533 <table t-name="ListView" class="oe-listview-content">
534 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
535 <thead class="ui-widget-header">
536 <tr t-if="options.action_buttons !== false or options.pager !== false">
537 <th t-att-colspan="columns_count">
540 <td t-if="options.action_buttons !== false" class="oe-actions">
541 <button type="button" class="oe-list-add"
542 t-if="options.addable">
543 <t t-esc="options.addable"/>
545 <button type="button" class="oe-list-delete"
546 t-if="options.selectable and options.deletable">
550 <th t-if="options.pager !== false" class="oe-list-pager">
551 <button type="button" disabled="disabled"
552 data-pager-action="first">First</button>
553 <button type="button" disabled="disabled"
554 data-pager-action="previous"
557 <span class="oe-pager-state">
560 <button type="button" disabled="disabled"
561 data-pager-action="next">></button>
562 <button type="button" disabled="disabled"
563 data-pager-action="last">Last</button>
569 <tr t-if="options.header">
570 <t t-foreach="columns" t-as="column">
571 <th t-if="column.meta">
572 <t t-esc="column.string"/>
575 <th t-if="options.selectable" width="1"/>
576 <t t-foreach="columns" t-as="column">
577 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
578 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
579 <t t-if="column.tag !== 'button'"
580 ><t t-esc="column.string"/></t>
583 <th t-if="options.deletable" width="1"/>
586 <tfoot class="ui-widget-header">
588 <td t-if="options.selectable"/>
589 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
590 t-att-data-field="column.id" t-att-title="column.label">
592 <td t-if="options.deletable"/>
596 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
597 <t t-call="ListView.row">
598 <t t-set="record" t-value="records.at(index)"/>
599 <t t-set="row_parity" t-value="index_parity"/>
602 <tr t-name="ListView.row" t-att-class="row_parity"
603 t-att-data-id="record.get('id')">
604 <t t-foreach="columns" t-as="column">
605 <td t-if="column.meta">
609 <th t-if="options.selectable" class="oe-record-selector" width="1">
610 <input type="checkbox"/>
612 <t t-foreach="columns" t-as="column">
613 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
614 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
615 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
616 t-att-data-field="column.id">
617 <t t-raw="render_cell(record.toForm().data, column)"/>
620 <td t-if="options.deletable" class='oe-record-delete' width="1">
621 <button type="button" name="delete">♻</button>
624 <t t-name="ListView.row.form">
625 <t t-raw="frame.render()"/>
627 <t t-name="FormView">
628 <div class="oe_form_header" t-att-id="view.element_id + '_header'">
629 <h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/> <button t-if="view.session.debug" class="oe_get_xml_view">View#<t t-esc="view.fields_view.view_id"/></button></h2>
630 <div class="oe_form_buttons" t-if="view.options.action_buttons !== false">
631 <!--<button type="button" class="oe_form_button_save">
632 <span class="oe_form_on_update">Save</span>
633 <span class="oe_form_on_create">Create</span>
635 <button type="button" class="oe_form_button_save_edit">
636 <span class="oe_form_on_update">Save & Edit</span>
637 <span class="oe_form_on_create">Create & Edit</span>
639 <!--<button type="button" class="oe_form_button_cancel">Cancel</button>-->
640 <button type="button" class="oe_form_button_new">New</button>
642 <div class="oe_form_pager" t-if="view.options.pager !== false">
643 <button type="button" data-pager-action="first">First</button>
644 <button type="button" data-pager-action="previous"><<</button>
646 <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
648 <button type="button" data-pager-action="next">>></button>
649 <button type="button" data-pager-action="last">Last</button>
652 <t t-raw="frame.render()"/>
654 <t t-name="FormView.sidebar.attachments">
655 <div class="oe-sidebar-attachments-toolbar">
656 <div class="oe-binary-file-set" style="float: right">
657 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
658 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
659 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
660 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
661 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
662 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
663 <button class="button" type="button">
664 <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
667 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
668 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
670 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
673 <br style="clear: both"/>
674 <ul class="oe-sidebar-attachments-items">
675 <li t-foreach="attachments" t-as="attachment">
676 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
677 + session.session_id + '&model=ir.attachment&id=' + attachment.id
678 + '&field=datas&fieldname=name&t=' + (new Date().getTime())"/>
679 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
680 <t t-esc="attachment.name"/>
682 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
683 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
690 <t t-raw="console.log('Unhandled widget', widget)"/>
692 <t t-name="WidgetFrame">
693 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
694 <tr t-foreach="widget.table" t-as="row">
695 <t t-foreach="row" t-as="td">
696 <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
697 t-att-width="td.width"
698 t-att-nowrap="td.nowrap or td.is_field_m2o? 'true' : undefined"
699 t-att-valign="td.table ? 'top' : undefined"
700 t-att-id="td.element_id"
701 t-attf-class="oe_form_frame_cell #{td.classname}"
703 <t t-raw="td.render()"/>
709 <t t-name="WidgetNotebook">
711 <li t-foreach="widget.pages" t-as="page" t-att-id="page.element_tab_id">
712 <a t-att-href="'#' + page.element_id">
713 <t t-esc="page.string"/>
717 <t t-foreach="widget.pages" t-as="page">
718 <t t-raw="page.render()"/>
721 <t t-name="WidgetNotebookPage">
722 <div t-att-id="widget.element_id">
723 <t t-call="WidgetFrame"/>
726 <t t-name="WidgetSeparator">
727 <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
728 <t t-esc="widget.string"/>
731 <t t-name="WidgetLabel">
732 <label t-att-for="widget.element_id + '_field'"
733 t-att-class="'oe_label' + (widget.help ? '_help' : '')"
734 t-att-title="widget.help">
735 <t t-esc="widget.string"/>
736 <span t-if="widget.help">?</span>
737 <t t-if="widget.string and widget.node.tag != 'label'">:</t>
740 <t t-name="WidgetParagraph">
741 <p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
743 <t t-name="FieldChar">
744 <input type="text" size="1"
745 t-att-name="widget.name"
746 t-att-id="widget.element_id + '_field'"
747 t-att-class="'field_' + widget.type"
748 t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
750 <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
752 <t t-name="FieldEmail">
753 <table cellpadding="0" cellspacing="0" border="0" width="100%">
756 <t t-call="FieldChar"/>
759 <button type="button" class="button" title="Send an e-mail with your default e-mail client">
760 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
766 <t t-name="FieldUrl">
767 <table cellpadding="0" cellspacing="0" border="0" width="100%">
770 <t t-call="FieldChar"/>
773 <button type="button" class="button" title="Open this resource">
774 <img src="/web/static/src/img/icons/gtk-ok.png"/>
780 <t t-name="FieldText">
782 t-att-name="widget.name"
783 t-att-id="widget.element_id + '_field'"
784 t-att-class="'field_' + widget.type"
785 t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
787 <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
789 <t t-name="FieldDate">
790 <input type="text" size="1" style="width: 100%"
791 t-att-name="widget.name"
792 t-att-id="widget.element_id + '_field'"
793 t-att-class="'field_' + widget.type"
796 <t t-name="FieldSelection">
798 t-att-name="widget.name"
799 t-att-id="widget.element_id + '_field'"
800 t-att-class="'field_' + widget.type"
802 <t t-foreach="widget.values" t-as="option">
803 <option><t t-esc="option[1]"/></option>
807 <t t-name="FieldMany2One">
808 <div t-att-id="widget.element_id" class="oe-m2o">
809 <input t-att-id="widget.element_id + '_input'" type="text" size="1" style="width: 100%;"/>
810 <span class="oe-m2o-drop-down-button" t-att-id="widget.element_id + '_drop_down'">
811 <img src="/web/static/src/img/down-arrow.png" /></span>
812 <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
813 <img src="/web/static/src/img/icons/gtk-index.png"/></span>
814 <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
818 <t t-name="FieldMany2One.context_menu">
820 <li t-att-id="widget.cm_id + '_open'" style="color:grey">Open...</li>
821 <li t-att-id="widget.cm_id + '_create'">Create...</li>
822 <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_mandatory">Search...</li>
823 <t t-set="i" t-value="0"/>
824 <t t-foreach="widget.related_entries" t-as="entry">
825 <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
826 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
828 <t t-set="i" t-value="i+1"/>
832 <t t-name="FieldOne2Many">
833 <div t-att-id="widget.element_id">
836 <t t-name="FieldMany2Many">
837 <div t-att-id="widget.list_id"></div>
839 <t t-name="FieldReference">
840 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
842 <td t-att-id="widget.selection.element_id" class="oe_form_frame_cell oe_form_selection">
843 <t t-raw="widget.selection.render()"/>
845 <td t-att-id="widget.m2o.element_id" class="oe_form_frame_cell oe_form_many2one" nowrap="true">
846 <t t-raw="widget.m2o.render()"/>
851 <t t-name="FieldBoolean">
852 <input type="checkbox"
853 t-att-name="widget.name"
854 t-att-id="widget.element_id + '_field'"
855 t-att-class="'field_' + widget.type"/>
857 <t t-name="FieldProgressBar">
858 <div t-opentag="true" class="oe-progressbar">
862 <t t-name="FieldBinaryImage">
863 <table cellpadding="0" cellspacing="0" border="0">
866 <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
867 t-att-border="widget.readonly ? 0 : 1"
868 t-att-id="widget.element_id + '_field'"
869 t-att-name="widget.name"
870 t-att-class="'field_' + widget.type"
871 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
872 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
877 <td align="center" valign="bottom" height="25">
878 <div class="oe-binary">
879 <table cellspacing="0" cellpadding="0" border="0">
882 <div class="oe-binary-file-set" style="width: 40px; height:22px;">
883 <form class="oe-binary-form" t-att-target="widget.iframe"
884 method="post" enctype="multipart/form-data" action="/web/binary/upload">
885 <input type="hidden" name="session_id" value=""/>
886 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
887 <button class="button" type="button" title="Set Image">
888 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
890 <input type="file" class="oe-binary-file" name="ufile"/>
895 <button class="button oe-binary-file-clear" type="button" title="Clear">
896 <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
902 <div class="oe-binary-progress" style="display: none">
903 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
906 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
911 <t t-name="FieldBinaryFile">
912 <table cellpadding="0" cellspacing="0" border="0" width="100%">
915 <input type="text" size="1"
916 t-att-name="widget.name"
917 t-att-id="widget.element_id + '_field'"
918 t-att-class="'field_' + widget.type" style="width: 100%"
921 <td class="oe-binary" nowrap="true">
922 <table cellspacing="0" cellpadding="0" border="0">
925 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
926 <form class="oe-binary-form" t-att-target="widget.iframe"
927 method="post" enctype="multipart/form-data" action="/web/binary/upload">
928 <input type="hidden" name="session_id" value=""/>
929 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
930 <button class="button" type="button" title="Set Image">
931 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
934 <input type="file" class="oe-binary-file" name="ufile"/>
939 <button class="button oe-binary-file-save" type="button" title="Save As">
940 <img src="/web/static/src/img/icons/gtk-save.png"/>
945 <button class="button oe-binary-file-clear" type="button" title="Clear">
946 <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
953 <td class="oe-binary-progress" style="display: none" nowrap="true">
954 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
956 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
961 <t t-name="WidgetButton">
962 <button type="button"
963 t-att-id="widget.element_id + '_button'"
964 t-att-title="widget.help"
965 style="width: 100%" class="button">
966 <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
967 <span t-if="widget.string"><t t-esc="widget.string"/></span>
970 <t t-name="SearchView">
971 <h2 class="oe_view_title"><t t-esc="view.attrs['string']"/></h2>
972 <form class="oe_forms">
973 <t t-call="SearchView.render_lines"/>
974 <div class="oe_search-view-buttons" style="text-align: right;">
975 <input type="submit" value="Search"/>
976 <input type="reset" value="Clear"/>
977 <button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
978 <select class="oe_search-view-filters-management">
983 <t t-name="SearchView.managed-filters">
984 <option value="_filters">-- Filters --</option>
985 <t t-set="i" t-value="0"/>
986 <t t-foreach="filters" t-as="filter">
987 <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
988 <t t-set="i" t-value="i+1"/>
990 <option value="_actions">-- Actions --</option>
991 <option value="save_filter">Save Filter</option>
992 <option value="manage_filters">Manage Filters</option>
994 <t t-name="SearchView.managed-filters.add">
998 <p>(Any existing filter with the same name will be replaced)</p>
1001 <t t-name="SearchView.render_lines">
1002 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1003 t-foreach="lines" t-as="line">
1005 <td t-foreach="line" t-as="widget">
1006 <t t-raw="widget.render(defaults)"/>
1011 <button t-name="SearchView.filter" type="button"
1012 t-att-id="element_id"
1013 t-att-title="attrs.help"
1014 t-att-class="classes.join(' ')"
1015 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1016 <img t-if="attrs.icon" t-att-src="'/web/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
1017 <br t-if="attrs.icon and attrs.string"/>
1018 <t t-esc="attrs.string"/>
1020 <span t-name="SearchView.filters" class="filter_label_group"
1021 ><t t-foreach="filters" t-as="filter"
1022 ><t t-raw="filter.render(defaults)"/></t
1024 <t t-name="SearchView.field">
1025 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1026 t-att-title="attrs.help"
1027 t-att-for="element_id">
1028 <t t-esc="attrs.string || attrs.name"/>
1029 <span t-if="attrs.help">?</span>
1031 <div style="white-space: nowrap;">
1032 <input type="text" size="15" t-att-name="attrs.name"
1033 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1034 t-att-id="element_id"
1035 t-att-value="defaults[attrs.name] || ''"/>
1036 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1039 <t t-name="SearchView.field.selection">
1040 <label t-att-title="attrs.help"
1041 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1042 t-att-for="element_id">
1043 <t t-esc="attrs.string || attrs.name"/>
1044 <span t-if="attrs.help">?</span>
1046 <div style="white-space: nowrap;">
1047 <select t-att-name="attrs.name" t-att-id="element_id"
1048 t-att-autofocus="attrs.default_focus === '1' || undefined">
1050 <t t-foreach="attrs.selection" t-as="option">
1051 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1052 <option t-if="selected"
1053 t-att-value="option[0]" selected="selected">
1054 <t t-esc="option[1]"/>
1056 <option t-if="!selected" t-att-value="option[0]">
1057 <t t-esc="option[1]"/>
1061 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1064 <t t-name="SearchView.util.expand">
1065 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1066 t-att-id="element_id">
1067 <a t-if="label" class="searchview_group_string" href="#">
1070 <div class="searchview_group_content">
1071 <t t-raw="content"/>
1075 <t t-name="SearchView.group">
1076 <t t-call="SearchView.util.expand">
1077 <t t-set="expand" t-value="attrs.expand"/>
1078 <t t-set="label" t-value="attrs.string"/>
1080 <t t-call="SearchView.render_lines"/>
1084 <t t-name="SearchView.extended_search">
1085 <t t-call="SearchView.util.expand">
1086 <t t-set="expand" t-value="false"/>
1087 <t t-set="label" t-value="'Advanced Filters'"/>
1089 <div class="searchview_extended_groups_list">
1094 <t t-name="SearchView.extended_search.group">
1095 <div t-att-id="element_id" class="searchview_extended_group">
1096 <select class="searchview_extended_group_choice">
1097 <option value="any">Any of the following conditions must match</option>
1098 <option value="all">All the following conditions must match</option>
1099 <option value="none">None of the following conditions must match</option>
1101 <a class="searchview_extended_delete_group"
1102 href="javascript:void(0)"><span></span></a>
1103 <div class="searchview_extended_propositions_list">
1105 <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1106 <span>Add condition</span></a>
1107 <div class="oe_adv_filters_and"><span>and</span></div>
1110 <t t-name="SearchView.extended_search.proposition">
1111 <div t-att-id="element_id">
1112 <select class="searchview_extended_prop_field">
1113 <t t-foreach="attrs.fields" t-as="field">
1114 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1115 t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1116 t-att-value="field.name">
1117 <t t-esc="field.string"/>
1121 <select class="searchview_extended_prop_op"/>
1122 <span class="searchview_extended_prop_value"/>
1123 <a class="searchview_extended_delete_prop"
1124 href="javascript:void(0)"><span> </span></a>
1127 <t t-name="SearchView.extended_search.proposition.char">
1128 <input t-att-id="element_id" class="field_char"/>
1130 <t t-name="SearchView.extended_search.proposition.datetime">
1131 <input t-att-id="element_id" class="field_datetime"/>
1133 <t t-name="SearchView.extended_search.proposition.date">
1134 <input t-att-id="element_id" class="field_date"/>
1136 <t t-name="SearchView.extended_search.proposition.integer">
1137 <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1139 <t t-name="SearchView.extended_search.proposition.float">
1140 <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1142 <t t-name="SearchView.extended_search.proposition.boolean">
1144 <t t-name="SearchView.extended_search.proposition.selection">
1145 <select t-att-id="element_id">
1146 <t t-foreach="field.selection" t-as="element">
1147 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1151 <t t-name="DialogWarning">
1152 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1154 <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1158 var message = d.message ? d.message : d.error.data.fault_code;
1159 d.html_error = context.engine.tools.html_escape(message)
1160 .replace(/\n/g, '<br/>');
1162 <t t-raw="html_error"/>
1168 <t t-name="DialogTraceback">
1169 <pre><t t-esc="error.message"/></pre>
1171 <pre><t t-esc="error.data.debug"/></pre>
1173 <t t-name="SelectCreatePopup">
1174 <div t-att-id="element_id">
1175 <table style="width:100%">
1176 <tr style="width:100%">
1177 <td style="width:100%">
1178 <div t-att-id="element_id + '_search'" style="width:100%"></div>
1181 <tr style="width:100%">
1182 <td style="width:100%">
1183 <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1187 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1190 <t t-name="SelectCreatePopup.search.buttons">
1191 <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1192 <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1194 <t t-name="SelectCreatePopup.form.buttons">
1195 <t t-if="widget.options.disable_multiple_selection">
1196 <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1198 <t t-if="! widget.options.disable_multiple_selection">
1199 <button type="button" class="oe_selectcreatepopup-form-save-new">Save & New</button>
1200 <button type="button" class="oe_selectcreatepopup-form-save">Save & Close</button>
1202 <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1204 <t t-name="FormOpenPopup">
1205 <div t-att-id="element_id">
1206 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1209 <t t-name="FormOpenPopup.form.buttons">
1210 <button type="button" class="oe_formopenpopup-form-save">Save</button>
1211 <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1213 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1215 $(document.createElement('t'))
1216 .append(this.contents())
1218 't-foreach': this.attr('t-foreach'),
1219 't-as': this.attr('t-as')
1222 .after($(document.createElement('td')).append(
1223 $(document.createElement('button')).attr({
1224 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
1225 .before($(document.createElement('td')).append(
1226 $(document.createElement('button')).attr({
1227 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
1232 <t t-name="ExportView">
1233 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1235 <table t-name="ExportTreeView" class="oe-export"
1236 style="background-color: #F3F3F3;">
1239 This wizard will export all data that matches the current search criteria to a CSV file.
1240 You can export all data or only the fields that can be reimported after modification.
1245 <label for="import_compat">Export Type:</label>
1246 <select id="import_compat" name="import_compat">
1247 <option value="yes">Import Compatible Export</option>
1248 <option value="">Export all Data</option>
1251 <label for="export_format">Export Formats</label>
1252 <select id="export_format" name="export_format"></select>
1257 <th>Available fields</th>
1261 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1262 <div id="savenewlist"></div>
1263 <div id="ExistsExportList"></div>
1266 <tr style="height: 400px;">
1267 <td class="oe_export_fields_selector_left">
1268 <div id="left_field_panel">
1271 <td class="oe_export_fields_selector_center">
1272 <button id="add_field">Add</button>
1273 <button id="remove_field">Remove</button>
1274 <button id="remove_all_field">Remove All</button>
1276 <td class="oe_export_fields_selector_right">
1277 <select name="fields_list" id="fields_list"
1278 multiple="multiple"></select>
1283 <table t-name="ExportTreeView-Secondary"
1284 id="field-tree-structure" class="oe_export_fields_selector_export"
1285 cellspacing="0" cellpadding="0">
1286 <tr><th class="oe_export_tree_header"> Name </th></tr>
1287 <t t-call="ExportTreeView-Secondary.children"/>
1289 <tr t-name="ExportTreeView-Secondary.children"
1290 t-foreach="fields" t-as="field"
1291 t-att-id="'treerow-' + field.id" class="oe_export_row">
1293 <table class="tree_grid" border="0">
1294 <tr class="oe_export_row">
1295 <t t-foreach="(field.id).split('/')" t-as="level" >
1296 <t t-if="(field.id).split('/')[0] != level">
1297 <td width="18">&nbsp;</td>
1300 <td valign="top" align="left" style="cursor: pointer;" width="18">
1301 <t t-if="field.children">
1302 <t t-if="(field.id).split('/').length != 3">
1303 <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1307 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1308 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1309 <t t-esc="field.string"/>
1317 <t t-name="ExportNewList">
1319 <th><label>Save as:</label></th>
1320 <td><input size="10" type="text" id="savelist_name"/></td>
1321 <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1325 <t t-name="Exists.ExportList">
1326 <label for="saved_export_list">Saved exports:</label>
1328 <select id="saved_export_list">
1330 <t t-foreach="existing_exports" t-as="export">
1331 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1334 <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1336 <t t-name="Change_Pwd">
1337 <form name="change_password_form" class="oe_forms" method="POST">
1338 <table align="center">
1340 <td><label for="old_pwd">Old Password:</label></td>
1341 <td><input type="password" name="old_pwd"
1342 minlength="1" autofocus="autofocus"/></td>
1345 <td><label for="new_password">New Password:</label></td>
1346 <td><input type="password" name="new_password"
1347 minlength="1" autofocus="autofocus"/></td>
1350 <td><label for="confirm_pwd">Confirm Password:</label></td>
1351 <td><input type="password" name="confirm_pwd"
1352 minlength="1"/></td>
1355 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
1360 <t t-name="About-Page">
1362 <h1>OpenERP Web</h1>
1363 <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1365 Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1366 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1369 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>
1372 <h1>About OpenERP</h1>
1374 <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP</a> is a free enterprise-scale software system that is designed to boost
1375 productivity and profit through data integration. It connects, improves and
1376 manages business processes in areas such as sales, finance, supply chain,
1377 project management, production, services, CRM, etc...
1380 The system is platform-independent, and can be installed on Windows, Mac OS X,
1381 and various Linux and other Unix-based distributions. Its architecture enables
1382 new functionality to be rapidly created, modifications to be made to a
1383 production system and migration to a new version to be straightforward.
1386 Depending on your needs, OpenERP is available through a web or application client.