1 <?xml version="1.0" encoding="UTF-8"?>
4 <templates id="template" xml:space="preserve">
5 <t t-name="Notification">
6 <div class="oe_notification">
7 <div id="oe_notification_default">
8 <a class="ui-notify-cross ui-notify-close" href="#">x</a>
12 <div id="oe_notification_alert" class="ui-state-error">
13 <a class="ui-notify-cross ui-notify-close" href="#">x</a>
14 <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
20 <t t-name="Interface">
21 <div id="oe_loading"></div>
22 <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
24 <td colspan="2" valign="top">
25 <div id="oe_header" class="header"></div>
26 <div id="oe_menu" class="menu"></div>
30 <td valign="top" class="login-container" colspan="2">
31 <div id="oe_login" class="login"></div>
34 <tr class="db_options_row">
35 <td valign="top" class="db_container">
36 <div id="oe_database" class="database"></div>
39 <div id="oe_db_options"></div>
43 <td colspan="2" valign="top" height="100%">
44 <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
46 <td valign="top" id="oe_secondary_menu" class="secondary_menu">
48 <td valign="top" class="oe-application-container">
49 <div id="oe_app" class="oe-application">
58 <div id="oe_footer" class="oe_footer">
59 <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">openerp.com</a>.</p>
71 <ul class="db_options" style="padding: 0px; display: inline;">
72 <li id="db-create">Create</li>
73 <li id="db-drop">Drop</li>
74 <li id="db-backup">Backup</li>
75 <li id="db-restore">Restore</li>
76 <li id="db-change-password">Password</li>
77 <li id="back-to-login">Back to Login</li>
80 <t t-name="Database.CreateDB">
81 <form name="create_db_form" class="oe_forms" method="POST">
84 <td class="option_string">
89 <table align="center" class="db_option_table">
91 <td><label for="super_admin_pwd">Master password:</label></td>
92 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
95 <td><label for="db_name">New database name:</label></td>
96 <td><input type="text" name="db_name" class="required"/></td>
99 <td><label for="demo_data">Load Demonstration data:</label></td>
100 <td><input type="checkbox" name="demo_data"/></td>
103 <td><label for="db_lang">Default language:</label></td>
105 <select name="db_lang" t-if="lang_list">
106 <t t-foreach="lang_list" t-as="lang">
107 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
113 <td><label for="create_admin_pwd">Admin password:</label></td>
114 <td><input type="password" name="create_admin_pwd" class="required"/></td>
117 <td><label for="create_confirm_pwd">Confirm password:</label></td>
118 <td><input type="password" name="create_confirm_pwd" class="required"
119 equalTo="input[name=create_admin_pwd]"/></td>
122 <td colspan="2" align="right"><button>Create</button></td>
128 <form name="drop_db_form" class="oe_forms" method="POST">
131 <td class="option_string">
136 <table align="center" class="db_option_table">
138 <td><label for="drop_db">Database:</label></td>
140 <select t-if="db_list" name="drop_db" autofocus="autofocus">
141 <t t-foreach="db_list" t-as="db">
142 <option t-att-value="db"><t t-esc="db"/></option>
148 <td><label for="drop_password">Master Password:</label></td>
149 <td><input type="password" name="drop_pwd" class="required"/></td>
152 <td colspan="2" align="right"><button>Drop</button></td>
157 <t t-name="BackupDB">
158 <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
159 action="/web/database/backup">
160 <input type="hidden" name="token"/>
163 <td class="option_string">
168 <table align="center" class="db_option_table">
170 <td><label for="backup_db">Database:</label></td>
172 <select t-if="db_list" name="backup_db" autofocus="autofocus">
173 <t t-foreach="db_list" t-as="db">
174 <option t-att-value="db"><t t-esc="db"/></option>
180 <td><label for="backup_pwd">Master Password:</label></td>
181 <td><input type="password" name="backup_pwd" class="required"/></td>
184 <td colspan="2" align="right"><button>Backup</button></td>
189 <t t-name="RestoreDB">
190 <form name="restore_db_form" class="oe_forms" method="POST">
193 <td class="option_string">
198 <table align="center" class="db_option_table">
200 <td><label for="restore_db">File:</label></td>
201 <td><input type="file" name="db_file" class="required"
202 autofocus="autofocus"/></td>
205 <td><label for="restore_pwd">Master Password:</label></td>
206 <td><input type="password" name="restore_pwd" class="required"/></td>
209 <td><label for="new_db">New database name:</label></td>
210 <td><input type="text" name="new_db" class="required"/></td>
213 <td colspan="2" align="right"><button>Restore</button></td>
218 <t t-name="Change_DB_Pwd">
219 <form name="change_pwd_form" class="oe_forms" method="POST">
222 <td class="option_string">
223 CHANGE MASTER PASSWORD
227 <table align="center" class="db_option_table">
229 <td><label for="old_pwd">Master password:</label></td>
230 <td><input type="password" name="old_pwd" class="required"
231 minlength="1" autofocus="autofocus"/></td>
234 <td><label for="new_pwd">New master password:</label></td>
235 <td><input type="password" name="new_pwd" class="required"
239 <td><label for="confirm_pwd">Confirm new master password:</label></td>
240 <td><input type="password" name="confirm_pwd" class="required"
241 equalTo="input[name=new_pwd]" minlength="1"/></td>
244 <td colspan="2" align="right"><button>Change Password</button></td>
250 <t t-name="Login_dblist">
252 <t t-foreach="db_list" t-as="db">
253 <t t-if="selected_db === db">
254 <option t-att-value="db" selected="true">
255 <t t-esc="db"/></option>
257 <t t-if="selected_db !== db">
258 <option t-att-value="db"><t t-esc="db"/></option>
266 <form class="oe_forms">
269 <img src="/web/static/src/img/stock_person.png" alt="" />
271 <div class="oe_box2">
272 <table align="center" cellspacing="2px" cellpadding="0">
274 <td><label for="db">Database:</label></td>
276 <input type="text" name="db" t-att-value="widget.selected_db || ''" autofocus="true"/>
280 <td><label for="login">User:</label></td>
281 <td><input type="text" name="login"
282 t-att-value="widget.selected_login || ''" autofocus="true"/></td>
285 <td><label for="password">Password:</label></td>
286 <td><input type="password" name="password"
287 t-att-value="widget.selected_password || ''"/></td>
292 <button type="button" id="oe-db-config">Database</button>
293 <button name="submit">Login</button>
299 <div class="login_error_message">Bad username or password</div>
301 <div class="oe_login_right_pane">
302 <p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
303 <h3>OpenERP's vision to be:</h3>
305 <table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
309 <img src="/web/static/src/img/product.png"/>
312 <strong>Full featured</strong><br />
313 Today's enterprise challenges are multiple. We provide one module for each need.
318 <img src="/web/static/src/img/accessories-archiver.png"/>
321 <strong>Open Source</strong><br />
322 To Build a great product, we rely on the knowledge of thousands of contributors.
327 <img src="/web/static/src/img/partner.png" />
330 <strong>User Friendly</strong><br />
331 In order to be productive, people need clean and easy to use interface.
342 <a t-att-href="'/' + widget.qs" class="company_logo_link">
343 <div class="company_logo" />
347 <t t-name="Header-content">
348 <h1 class="header_title">
349 <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
350 <small class="username"><t t-esc="user.name"/></small>
352 <div class="header_corner">
355 <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>
357 <li class="preferences">
358 <a href="javascript:void(0)" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
361 <a href="javascript:void(0)" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
365 <a href="#logout" class="logout">LOGOUT</a>
369 <div class="oe-shortcuts"> </div>
371 <ul t-name="Shortcuts">
372 <li t-foreach="shortcuts" t-as="shortcut"
373 t-att-data-id="shortcut.res_id"
374 t-att-data-shortcut-id="shortcut.id"
375 ><t t-esc="shortcut.name"/></li>
378 <table align="center">
380 <td t-foreach="widget.data.data.children" t-as="menu">
381 <a href="#" t-att-data-menu="menu.id">
382 <t t-esc="menu.name"/>
388 <t t-name="Menu.secondary">
389 <div t-attf-class="oe_toggle_secondary_menu">
390 <span class="oe_menu_fold" title="Fold menu">&laquo;</span>
391 <span class="oe_menu_unfold" title="Unfold menu">&raquo;</span>
393 <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
394 <t t-foreach="menu.children" t-as="menu">
395 <t t-set="classname">oe_secondary_menu_item</t>
396 <t t-set="level" t-value="0"/>
397 <t t-call="Menu.secondary.children"/>
401 <t t-name="Menu.secondary.children">
402 <t t-set="level" t-value="level + 1"/>
403 <a href="#" t-att-id="menu.children.length ? 'menu_' + menu.id : undefined"
404 t-att-class="classname + (menu.children.length ? ' submenu' : ' leaf') + (menu_first and level == 1 ? ' opened' : '')"
405 t-att-data-menu="menu.children.length ? undefined : menu.id">
406 <span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
408 <div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
409 <t t-foreach="menu.children" t-as="menu">
410 <t t-set="classname">oe_secondary_submenu_item</t>
411 <t t-call="Menu.secondary.children"/>
415 <t t-name="ViewManager">
416 <table class="view-manager-main-table" cellpadding="0" cellspacing="0">
419 <td class="view-manager-main-content">
420 <div class="oe-view-manager-header">
421 <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
422 <span class="oe_view_title_text"><t t-esc="self.display_title()"/></span>
424 <div class="oe_vm_switch">
425 <t t-if="views.length != 1" t-foreach="views" t-as="view">
426 <button type="button" t-att-data-view-type="view.view_type">
427 <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"/>
447 <t t-extend="ViewManager" t-name="ViewManagerAction">
448 <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
450 <td class="oe_view_manager_menu_tips" colspan="2">
451 <blockquote t-if="self.action.help and !self.flags.low_profile
452 and !(self.action.id in self.session.hidden_menutips)">
453 <p><t t-esc="self.action.help"/></p>
455 <button type="button" name="hide">Hide this tip</button>
456 <button type="button" name="disable">Disable all tips</button>
462 <t t-jquery="h2.oe_view_title" t-operation="prepend">
463 <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
464 href="javascript: void(0)"> </a>
466 <t t-jquery="h2.oe_view_title" t-operation="after">
467 <select t-if="self.session.debug" class="oe_debug_view"/>
469 <t t-jquery=".oe-view-manager-header" t-operation="after">
470 <div class="oe-view-manager-logs oe-folded">
472 <a class="oe-more-logs" href="#">More…</a>
473 <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
477 <t t-name="ViewManagerDebug">
478 <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
479 <option value="fvg"> - Fields View Get</option>
480 <option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id"> - Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
481 <option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id"> - Edit SearchView</option>
482 <option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id"> - Edit Action</option>
484 <t t-extend="ViewManager" t-name="One2Many.viewmanager">
485 <t t-jquery="span.oe_view_title_text" t-operation="replace"/>
487 <t t-jquery=".oe-view-manager-header">
488 this.attr('t-if', 'views.length != 1');
493 <a class="toggle-sidebar"></a>
494 <div class="sidebar-content">
495 <div class="sidebar-actions">
499 <t t-name="Sidebar.section">
500 <div t-att-id="section_id" t-att-class="classname">
501 <h2><t t-esc="name"/></h2>
504 <t t-name="Sidebar.section.items">
505 <li t-foreach="items" t-as="item" t-att-class="item.classname">
506 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
507 <t t-esc="item.label"/>
512 <t t-name="TranslateDialog">
513 <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
515 <td class="oe_form_separator" width="1%" nowrap="nowrap">
516 <div class="separator horizontal">Field</div>
518 <th t-foreach="widget.languages" align="left">
519 <div class="separator horizontal"><t t-esc="name"/></div>
522 <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
523 <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
524 <label class="oe_label"><t t-esc="field.string"/>:</label>
526 <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
527 <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%"/>
528 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
533 <t t-name="TreeView">
534 <select t-if="toolbar" style="width: 30%">
536 <table class="oe-treeview-table">
539 <th t-foreach="fields_view" t-as="field"
540 t-if="!field.attrs.modifiers.tree_invisible"
541 class="treeview-header">
542 <t t-esc="fields[field.attrs.name].string" />
550 <tr t-name="TreeView.rows"
551 t-foreach="records" t-as="record"
552 t-att-id="'treerow_' + record.id"
553 t-att-data-id="record.id" t-att-data-level="level + 1">
554 <t t-set="children" t-value="record[children_field]"/>
555 <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
557 <td t-foreach="fields_view" t-as="field"
558 t-if="!field.attrs.modifiers.tree_invisible"
559 t-att-data-id="record.id"
560 t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')"
562 <span t-if="!field.attrs.modifiers.invisible">
563 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
565 <t t-set="class" t-value="'treeview-td'"/>
569 <table t-name="ListView" class="oe-listview-content">
570 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
571 <thead class="ui-widget-header">
572 <tr t-if="options.action_buttons !== false or options.pager !== false">
573 <th t-att-colspan="columns_count">
576 <td t-if="options.action_buttons !== false" class="oe-actions">
577 <button type="button" class="oe-list-add"
578 t-if="options.addable">
579 <t t-esc="options.addable"/>
581 <button type="button" class="oe-list-delete"
582 t-if="options.selectable and options.deletable">
586 <t t-call="Listview.navigation.button"/>
591 <tr t-if="options.header" class="oe-listview-header-columns">
592 <t t-foreach="columns" t-as="column">
593 <th t-if="column.meta">
594 <t t-esc="column.string"/>
597 <th t-if="options.selectable" width="1" >
598 <input type="checkbox" class="all-record-selector"/> </th>
599 <t t-foreach="columns" t-as="column">
600 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
601 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
602 <t t-if="column.tag !== 'button'"
603 ><t t-esc="column.string"/></t>
606 <th t-if="options.deletable" width="1"/>
609 <tfoot class="ui-widget-header">
611 <td t-if="options.selectable"/>
612 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
613 t-att-data-field="column.id" t-att-title="column.label">
615 <td t-if="options.deletable"/>
618 <t t-call="Listview.navigation.button"/>
622 <t t-extend="ListView" t-name="One2Many.listview">
623 <t t-jquery="thead.ui-widget-header > tr:first">
624 this.removeAttr('t-if');
627 <t t-jquery="tfoot > tr:last-child" t-operation="replace"/>
629 <t t-jquery="td.oe-actions">
630 this.removeAttr('t-if');
631 var $title = $(document.createElement('h3')).addClass('oe_view_title');
632 $title.append($(document.createElement('t')).attr(
633 't-esc', 'fields_view.arch.attrs.string'));
634 this.prepend($title);
637 <th t-name="Listview.navigation.button" t-if="options.pager !== false"
638 class="oe-list-pager" t-att-colspan="columns_count">
639 <button type="button" disabled="disabled"
640 data-pager-action="first">First</button>
641 <button type="button" disabled="disabled"
642 data-pager-action="previous"><</button>
644 <span class="oe-pager-state">
647 <button type="button" disabled="disabled"
648 data-pager-action="next">></button>
649 <button type="button" disabled="disabled"
650 data-pager-action="last">Last</button>
652 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
653 <t t-call="ListView.row">
654 <t t-set="record" t-value="records.at(index)"/>
655 <t t-set="row_parity" t-value="index_parity"/>
658 <tr t-name="ListView.row" t-att-class="row_parity"
659 t-att-data-id="record.get('id')"
660 t-att-style="view.color_for(record)">
661 <t t-foreach="columns" t-as="column">
662 <td t-if="column.meta">
666 <th t-if="options.selectable" class="oe-record-selector" width="1">
667 <input t-att-type="options.radio? 'radio': 'checkbox'" name ="radiogroup" t-att-checked="options.select_view_id == record.get('id')? true: null"/>
669 <t t-foreach="columns" t-as="column">
670 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
671 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
672 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
673 + (column.tag === 'button' ? ' oe-button' : '')"
674 t-att-data-field="column.id">
675 <t t-raw="render_cell(record, column)"/>
678 <td t-if="options.deletable" class='oe-record-delete' width="1">
679 <button type="button" name="delete"></button>
682 <t t-name="ListView.row.form">
683 <t t-raw="frame.render()"/>
686 <t t-name="FormView">
687 <div class="oe_form_header">
688 <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
689 <button type="button" class="oe_form_button_save">Save</button>
690 <button type="button" class="oe_form_button_cancel">Cancel</button>
692 <div class="oe_form_pager" t-if="widget.options.pager !== false">
693 <button type="button" data-pager-action="first">First</button>
694 <button type="button" data-pager-action="previous"><<</button>
696 <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
698 <button type="button" data-pager-action="next">>></button>
699 <button type="button" data-pager-action="last">Last</button>
702 <t t-raw="frame.render()"/>
704 <t t-name="PageView" t-extend="FormView">
705 <t t-jquery=".oe_form_buttons" t-operation="inner">
706 <button type="button" class="oe_form_button_edit">Edit</button>
707 <button type="button" class="oe_form_button_create">Create</button>
708 <button type="button" class="oe_form_button_duplicate">Duplicate</button>
709 <button type="button" class="oe_form_button_delete">Delete</button>
712 <t t-name="FormView.sidebar.attachments">
713 <div class="oe-sidebar-attachments-toolbar">
714 <div class="oe-binary-file-set" style="float: right">
715 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
716 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
717 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
718 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
719 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
720 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
721 <button class="button" type="button">
722 <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
725 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
726 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
728 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
731 <br style="clear: both"/>
732 <ul class="oe-sidebar-attachments-items">
733 <li t-foreach="attachments" t-as="attachment">
734 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
735 + session.session_id + '&model=ir.attachment&id=' + attachment.id
736 + '&field=datas&fieldname=name&t=' + (new Date().getTime())"/>
737 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
738 <t t-esc="attachment.name"/>
740 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
741 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
748 <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
750 <t t-name="WidgetFrame">
751 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
752 <tr t-foreach="widget.table" t-as="row">
753 <t t-foreach="row" t-as="td">
754 <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
755 t-att-width="td.width"
756 t-att-valign="td.table ? 'top' : undefined"
757 t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
759 <t t-raw="td.render()"/>
765 <t t-name="WidgetFrame.readonly" t-extend="WidgetFrame">
766 <t t-jquery=">table">
767 this.attr('class', this.attr('class')+' oe_form_readonly');
770 <t t-name="WidgetGroup">
771 <t t-if="widget.string">
772 <fieldset class="oe_group_box">
773 <legend><t t-esc="widget.string"/></legend>
774 <t t-call="WidgetFrame"/>
777 <t t-if="!widget.string">
778 <t t-call="WidgetFrame"/>
781 <t t-name="WidgetNotebook">
783 <li t-foreach="widget.pages" t-as="page">
785 <t t-esc="page.string"/>
789 <t t-foreach="widget.pages" t-as="page">
790 <t t-raw="page.render()"/>
793 <t t-name="WidgetNotebook.tooltip">
794 <t t-foreach="widget.pages" t-as="page">
795 <div class="oe_tooltip_string">
796 Notebook Page "<t t-esc="page.string"/>"
798 <ul class="oe_tooltip_technical">
799 <li data-item="modifiers">
800 <span class="oe_tooltip_technical_title">Modifiers:</span>
801 <t t-esc="page.node.attrs.modifiers"/>
806 <t t-name="WidgetNotebookPage">
808 <t t-call="WidgetFrame"/>
811 <t t-name="WidgetSeparator">
812 <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
813 <t t-esc="widget.string"/>
816 <t t-name="WidgetLabel">
817 <label t-att-for="widget.element_id"
818 t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}">
819 <t t-esc="widget.string"/>
820 <span t-if="widget.help">?</span>
821 <t t-if="widget.string and widget.node.tag != 'label'">:</t>
824 <t t-name="WidgetLabel.tooltip">
825 <div class="oe_tooltip_string" t-if="widget.string">
826 <t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
828 <p t-if="widget.help" class="oe_tooltip_help">
829 <t t-esc="widget.help"/>
831 <ul t-if="debug" class="oe_tooltip_technical">
832 <li data-item="field" t-if="widget.name">
833 <span class="oe_tooltip_technical_title">Field:</span>
834 <t t-esc="widget.name"/>
836 <li data-item="object" t-if="widget.view and widget.view.fields_view">
837 <span class="oe_tooltip_technical_title">Object:</span>
838 <t t-esc="widget.view.fields_view.model"/>
840 <li data-item="type" t-if="widget.field">
841 <span class="oe_tooltip_technical_title">Type:</span>
842 <t t-esc="widget.field.type"/>
844 <li t-if="widget.node.attrs.widget" data-item="widget">
845 <span class="oe_tooltip_technical_title">Widget:</span>
846 <t t-esc="widget.node.attrs.widget"/>
848 <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
849 <span class="oe_tooltip_technical_title">Size:</span>
850 <t t-esc="widget.node.attrs.size || widget.field.size"/>
852 <li t-if="widget.node.attrs.context" data-item="context">
853 <span class="oe_tooltip_technical_title">Context:</span>
854 <t t-esc="widget.node.attrs.context_string"/>
856 <li t-if="widget.node.attrs.domain" data-item="domain">
857 <span class="oe_tooltip_technical_title">Domain:</span>
858 <t t-esc="widget.node.attrs.domain_string"/>
860 <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
861 <span class="oe_tooltip_technical_title">Modifiers:</span>
862 <t t-esc="widget.node.attrs.modifiers"/>
864 <li t-if="widget.node.attrs.on_change" data-item="on_change">
865 <span class="oe_tooltip_technical_title">On change:</span>
866 <t t-esc="widget.node.attrs.on_change"/>
868 <li t-if="widget.field and widget.field.relation" data-item="relation">
869 <span class="oe_tooltip_technical_title">Relation:</span>
870 <t t-esc="widget.field.relation"/>
872 <li t-if="widget.field and widget.field.selection" data-item="selection">
873 <span class="oe_tooltip_technical_title">Selection:</span>
875 <li t-foreach="widget.field.selection" t-as="option">
876 [<t t-esc="option[0]"/>]
877 <t t-if="option[1]"> - </t>
878 <t t-esc="option[1]"/>
884 <t t-name="WidgetParagraph">
885 <p t-attf-class="oe_form_paragraph oe_align_#{widget.align}"><t t-esc="widget.string"/></p>
887 <t t-name="FieldChar">
888 <input t-att-type="widget.password ? 'password' : 'text'" size="1"
889 t-att-name="widget.name"
890 t-att-id="widget.element_id"
891 t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
893 /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
895 <t t-name="FieldChar.readonly">
897 t-att-id="widget.element_id"
898 t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
901 <t t-name="FieldURI.readonly">
904 <t t-name="FieldEmail">
905 <table cellpadding="0" cellspacing="0" border="0" width="100%">
907 <td width="100%" style="position: relative">
908 <t t-call="FieldChar"/>
911 <button type="button" class="button" title="Send an e-mail with your default e-mail client">
912 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
918 <t t-name="FieldUrl">
919 <table cellpadding="0" cellspacing="0" border="0" width="100%">
921 <td width="100%" style="position: relative">
922 <t t-call="FieldChar"/>
925 <button type="button" class="button" title="Open this resource">
926 <img src="/web/static/src/img/icons/gtk-ok.png"/>
932 <t t-name="FieldText">
934 t-att-name="widget.name"
935 t-att-id="widget.element_id"
936 t-attf-class="field_#{widget.type}"
938 ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
940 <t t-name="web.datetimepicker">
941 <div class="oe_datepicker_root">
942 <input type="text" size="1" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
943 <input type="text" size="1" style="width: 100%"
944 t-att-name="widget.name"
945 t-attf-class="oe_datepicker_master field_#{widget.type_of_date}"
946 /><img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
947 title="Select date" width="16" height="16" border="0"/>
950 <t t-name="FieldSelection">
952 t-att-name="widget.name"
953 t-att-id="widget.element_id"
954 t-attf-class="field_#{widget.type}"
956 <t t-foreach="widget.values" t-as="option">
957 <option><t t-esc="option[1]"/></option>
961 <t t-name="FieldMany2One">
963 <input type="text" size="1" style="width: 100%;"
964 t-att-id="widget.element_id"/>
965 <span class="oe-m2o-drop-down-button">
966 <img src="/web/static/src/img/down-arrow.png" /></span>
967 <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
968 <img src="/web/static/src/img/icons/gtk-index.png"/></span>
969 <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
973 <t t-name="FieldMany2One.context_menu">
975 <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
976 <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
977 <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
978 <t t-set="i" t-value="0"/>
979 <t t-foreach="widget.related_entries" t-as="entry">
980 <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
981 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
983 <t t-set="i" t-value="i+1"/>
987 <t t-name="FieldOne2Many">
989 <t t-name="FieldMany2Many">
990 <div t-att-id="widget.list_id"></div>
992 <t t-name="FieldReference">
993 <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
995 <td t-attf-class="oe_form_frame_cell oe_form_selection #{widget.selection.element_class}">
996 <t t-raw="widget.selection.render()"/>
998 <td t-attf-class="oe_form_frame_cell oe_form_many2one #{widget.m2o.element_class}" nowrap="true" style="display: none">
999 <t t-raw="widget.m2o.render()"/>
1004 <t t-name="FieldBoolean">
1005 <input type="checkbox"
1006 t-att-name="widget.name"
1007 t-att-id="widget.element_id"
1008 t-attf-class="field_#{widget.type}"/>
1010 <t t-name="FieldProgressBar">
1011 <div t-opentag="true" class="oe-progressbar">
1015 <t t-name="FieldBinaryImage">
1016 <table cellpadding="0" cellspacing="0" border="0">
1019 <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
1020 t-att-border="widget.readonly ? 0 : 1"
1021 t-att-id="widget.element_id + '_field'"
1022 t-att-name="widget.name"
1023 t-attf-class="field_#{widget.type}"
1024 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1025 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1030 <td align="center" valign="bottom" height="25">
1031 <div class="oe-binary">
1032 <table cellspacing="0" cellpadding="0" border="0">
1035 <div class="oe-binary-file-set" style="width: 40px; height:22px;">
1036 <form class="oe-binary-form" t-att-target="widget.iframe"
1037 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1038 <input type="hidden" name="session_id" value=""/>
1039 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1040 <button class="button" type="button" title="Set Image">
1041 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
1043 <input type="file" class="oe-binary-file" name="ufile"/>
1048 <button class="button oe-binary-file-clear" type="button" title="Clear">
1049 <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
1055 <div class="oe-binary-progress" style="display: none">
1056 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
1057 <b>Uploading ...</b>
1059 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1064 <t t-name="FieldBinaryFile">
1065 <table cellpadding="0" cellspacing="0" border="0" width="100%">
1068 <input type="text" size="1"
1069 t-att-name="widget.name"
1070 t-att-id="widget.element_id + '_field'"
1071 t-attf-class="field_#{widget.type}" style="width: 100%"
1074 <td class="oe-binary" nowrap="true">
1075 <table cellspacing="0" cellpadding="0" border="0">
1078 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
1079 <form class="oe-binary-form" t-att-target="widget.iframe"
1080 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1081 <input type="hidden" name="session_id" value=""/>
1082 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1083 <button class="button" type="button" title="Set Image">
1084 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
1087 <input type="file" class="oe-binary-file" name="ufile"/>
1092 <button class="button oe-binary-file-save" type="button" title="Save As">
1093 <img src="/web/static/src/img/icons/gtk-save.png"/>
1094 <span>Save As</span>
1098 <button class="button oe-binary-file-clear" type="button" title="Clear">
1099 <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
1106 <td class="oe-binary-progress" style="display: none" nowrap="true">
1107 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
1108 <b>Uploading ...</b>
1109 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1114 <t t-name="WidgetButton">
1115 <button type="button" class="oe_button">
1116 <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1117 <span t-if="widget.string"><t t-esc="widget.string"/></span>
1120 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1121 <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1122 <div class="oe_tooltip_string" t-if="debug || widget.string">
1125 <t t-if="widget.string">: </t>
1126 <t t-if="!widget.string"> (no string)</t>
1128 <t t-esc="widget.string"/>
1131 <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1132 <li t-if="widget.node.attrs.special" data-item="special">
1133 <span class="oe_tooltip_technical_title">Special:</span>
1134 <t t-esc="widget.node.attrs.special"/>
1136 <t t-set="button_type" t-value="widget.node.attrs.type"/>
1137 <li t-if="button_type" data-item="button_type">
1138 <span class="oe_tooltip_technical_title">Button Type:</span>
1139 <t t-esc="button_type"/>
1141 <li t-if="button_type === 'object'" data-item="button_method">
1142 <span class="oe_tooltip_technical_title">Method:</span>
1143 <t t-esc="widget.node.attrs.name"/>
1145 <li t-if="button_type === 'action'" data-item="button_action">
1146 <span class="oe_tooltip_technical_title">Action ID:</span>
1147 <t t-esc="widget.node.attrs.name"/>
1152 <t t-name="SearchView">
1153 <form class="oe_forms">
1154 <t t-call="SearchView.render_lines"/>
1155 <div class="oe_search-view-buttons">
1156 <button>Search</button>
1157 <button type="reset">Clear</button>
1158 <select class="oe_search-view-filters-management">
1163 <t t-name="SearchView.managed-filters">
1165 <optgroup label="-- Filters --">
1166 <t t-foreach="filters" t-as="filter">
1167 <option t-attf-value="get:#{filter_index}"><t t-esc="filter.name"/></option>
1170 <optgroup label="-- Actions --">
1171 <option value="advanced_filter">Advanced Filter</option>
1172 <option value="save_filter">Save Filter</option>
1173 <option value="add_to_dashboard">Add to Dashboard</option>
1174 <option value="manage_filters">Manage Filters</option>
1177 <t t-name="SearchView.managed-filters.add">
1180 <input type="text"/>
1181 <p>(Any existing filter with the same name will be replaced)</p>
1184 <t t-name="SearchView.add_to_dashboard">
1185 <div class="oe_forms">
1186 <p><b>Select Dashboard to add this filter to:</b></p>
1187 <select style="width: 100%; margin-right: 1em;">
1188 <option t-foreach="dashboards" t-as="menu" t-att-value="menu.id" t-att-selected="(menu.id == selected_menu_id) || undefined"><t t-esc="menu.name"/></option>
1190 <p><b>Title of new Dashboard item:</b></p>
1191 <input type="text" style="width: 100%; margin-right: 1em;"/>
1194 <t t-name="SearchView.render_lines">
1195 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1196 t-foreach="lines" t-as="line">
1198 <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1199 <t t-raw="widget.render(defaults)"/>
1204 <button t-name="SearchView.filter" type="button"
1205 t-att-id="element_id"
1206 t-att-title="attrs.help"
1207 t-att-class="classes.join(' ')"
1208 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1209 <img t-att-src="'/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1210 <br t-if="attrs.string"/>
1211 <t t-esc="attrs.string"/>
1213 <span t-name="SearchView.filters" class="filter_label_group"
1214 ><t t-foreach="filters" t-as="filter"
1215 ><t t-raw="filter.render(defaults)"/></t
1217 <t t-name="SearchView.field">
1218 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1219 t-att-title="attrs.help"
1220 t-att-for="element_id">
1221 <t t-esc="attrs.string || attrs.name"/>
1222 <span t-if="attrs.help">?</span>
1225 <input type="text" size="15" t-att-name="attrs.name"
1226 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1227 t-att-id="element_id"
1228 t-att-value="defaults[attrs.name] || ''"/>
1229 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1232 <t t-name="SearchView.date">
1233 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1234 t-att-title="attrs.help"
1235 t-att-for="element_id">
1236 <t t-esc="attrs.string || attrs.name"/>
1237 <span t-if="attrs.help">?</span>
1240 <span t-att-id="element_id"></span>
1241 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1244 <t t-name="SearchView.field.selection">
1245 <label t-att-title="attrs.help"
1246 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1247 t-att-for="element_id">
1248 <t t-esc="attrs.string || attrs.name"/>
1249 <span t-if="attrs.help">?</span>
1252 <select t-att-name="attrs.name" t-att-id="element_id"
1253 t-att-autofocus="attrs.default_focus === '1' || undefined">
1254 <option t-if="prepend_empty"/>
1255 <t t-foreach="attrs.selection" t-as="option">
1256 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1257 <option t-if="selected"
1258 t-att-value="option_index" selected="selected">
1259 <t t-esc="option[1]"/>
1261 <option t-if="!selected" t-att-value="option_index">
1262 <t t-esc="option[1]"/>
1266 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1269 <t t-name="SearchView.util.expand">
1270 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1271 t-att-id="element_id">
1272 <a t-if="label" class="searchview_group_string" href="#">
1275 <div class="searchview_group_content">
1276 <t t-raw="content"/>
1280 <t t-name="SearchView.group">
1281 <t t-call="SearchView.util.expand">
1282 <t t-set="expand" t-value="attrs.expand"/>
1283 <t t-set="label" t-value="attrs.string"/>
1285 <t t-call="SearchView.render_lines"/>
1289 <t t-name="SearchView.extended_search">
1290 <t t-call="SearchView.util.expand">
1291 <t t-set="expand" t-value="false"/>
1292 <t t-set="label" t-value="'Advanced Filters'"/>
1294 <div class="searchview_extended_groups_list">
1299 <t t-name="SearchView.extended_search.group">
1300 <div t-att-id="element_id" class="searchview_extended_group">
1301 <select class="searchview_extended_group_choice">
1302 <option value="any">Any of the following conditions must match</option>
1303 <option value="all">All the following conditions must match</option>
1304 <option value="none">None of the following conditions must match</option>
1306 <a class="searchview_extended_delete_group"
1307 href="javascript:void(0)"><span></span></a>
1308 <div class="searchview_extended_propositions_list">
1310 <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1311 <span>Add condition</span></a>
1312 <div class="oe_adv_filters_and"><span>and</span></div>
1315 <t t-name="SearchView.extended_search.proposition">
1316 <div t-att-id="element_id">
1317 <select class="searchview_extended_prop_field">
1318 <t t-foreach="attrs.fields" t-as="field">
1319 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1320 t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1321 t-att-value="field.name">
1322 <t t-esc="field.string"/>
1326 <select class="searchview_extended_prop_op"/>
1327 <span class="searchview_extended_prop_value"/>
1328 <a class="searchview_extended_delete_prop"
1329 href="javascript:void(0)"><span> </span></a>
1332 <t t-name="SearchView.extended_search.proposition.char">
1333 <input t-att-id="element_id" class="field_char"/>
1335 <t t-name="SearchView.extended_search.proposition.empty">
1336 <span t-att-id="element_id"></span>
1338 <t t-name="SearchView.extended_search.proposition.integer">
1339 <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1341 <t t-name="SearchView.extended_search.proposition.float">
1342 <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1344 <t t-name="SearchView.extended_search.proposition.boolean">
1346 <t t-name="SearchView.extended_search.proposition.selection">
1347 <select t-att-id="element_id">
1348 <t t-foreach="field.selection" t-as="element">
1349 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1353 <t t-name="DialogWarning">
1354 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1356 <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1360 var message = d.message ? d.message : d.error.data.fault_code;
1361 d.html_error = context.engine.tools.html_escape(message)
1362 .replace(/\n/g, '<br/>');
1364 <t t-raw="html_error"/>
1370 <t t-name="DialogTraceback">
1371 <pre><t t-esc="error.message"/></pre>
1373 <pre><t t-esc="error.data.debug"/></pre>
1375 <t t-name="SelectCreatePopup">
1376 <div t-att-id="element_id">
1377 <table style="width:100%">
1378 <tr style="width:100%">
1379 <td style="width:100%">
1380 <div t-att-id="element_id + '_search'" style="width:100%"></div>
1383 <tr style="width:100%">
1384 <td style="width:100%">
1385 <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1389 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1392 <t t-name="SelectCreatePopup.search.buttons">
1393 <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1394 <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1396 <t t-name="SelectCreatePopup.form.buttons">
1397 <t t-if="widget.options.disable_multiple_selection">
1398 <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1400 <t t-if="! widget.options.disable_multiple_selection">
1401 <button type="button" class="oe_selectcreatepopup-form-save-new">Save & New</button>
1402 <button type="button" class="oe_selectcreatepopup-form-save">Save & Close</button>
1404 <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1406 <t t-name="FormOpenPopup">
1407 <div t-att-id="element_id">
1408 <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1411 <t t-name="FormOpenPopup.form.buttons">
1412 <button type="button" class="oe_formopenpopup-form-save">Save</button>
1413 <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1415 <t t-extend="ListView.row">
1416 <!-- adds front & back padding to row being rendered after edition, if
1417 necessary (if not selectable add front padding and if not deletable
1418 add back padding), otherwise the row being added is missing columns
1420 <t t-jquery="> :first" t-operation="before">
1421 <td t-if="edited and !options.selectable" class="oe-listview-padding"/>
1423 <t t-jquery="> :last" t-operation="after">
1424 <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1427 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1429 $(document.createElement('t'))
1430 .append(this.contents())
1432 't-foreach': this.attr('t-foreach'),
1433 't-as': this.attr('t-as')
1436 .after($(document.createElement('td')).append(
1437 $(document.createElement('button')).attr({
1438 'class': 'oe-edit-row-save', 'type': 'button'})
1443 <t t-name="view_editor">
1444 <table class="oe_view_editor">
1445 <t t-call="view_editor.row"/>
1448 <t t-name="view_editor.row">
1449 <tr class="oe_view_editor_row" t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
1450 <td class="oe_view_editor_colum" width="85%">
1451 <table class="oe_view_editor_tree_grid">
1453 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1454 <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1455 src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1457 <td style="cursor: pointer;">
1458 <a style="text-decoration:none" href="javascript:void(0);">
1459 <t t-esc="rec.name"/>
1465 <td align="left" class="oe_view_editor_colum" width="15%">
1466 <table width="100%">
1469 <img t-if="rec.att_list.length"
1470 id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1473 <img id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1476 <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1477 id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1480 <img t-if="rec.att_list.length"
1481 id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1484 <img t-if="rec.att_list.length"
1485 id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1490 <t t-if="rec.child_id.length">
1491 <t t-set="data" t-value="rec.child_id"/>
1492 <t t-call="view_editor.row"/>
1496 <t t-name="vieweditor_char">
1497 <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1499 <t t-name="vieweditor_selection">
1500 <select t-att-id="widget.name" >
1501 <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1503 t-att-value="typeof option === 'object' ? option[0] : option">
1504 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1509 <t t-name="vieweditor_boolean">
1510 <input type="checkbox" t-att-id="widget.name"/>
1512 <t t-name="ExportView">
1513 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1515 <table t-name="ExportTreeView" class="oe-export"
1516 style="background-color: #F3F3F3;">
1519 This wizard will export all data that matches the current search criteria to a CSV file.
1520 You can export all data or only the fields that can be reimported after modification.
1525 <label for="import_compat">Export Type:</label>
1526 <select id="import_compat" name="import_compat">
1527 <option value="yes">Import Compatible Export</option>
1528 <option value="">Export all Data</option>
1531 <label for="export_format">Export Formats</label>
1532 <select id="export_format" name="export_format"></select>
1537 <th>Available fields</th>
1541 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1542 <div id="savenewlist"></div>
1543 <div id="ExistsExportList"></div>
1546 <tr style="height: 400px;">
1547 <td class="oe_export_fields_selector_left">
1548 <div id="left_field_panel">
1551 <td class="oe_export_fields_selector_center">
1552 <button id="add_field">Add</button>
1553 <button id="remove_field">Remove</button>
1554 <button id="remove_all_field">Remove All</button>
1556 <td class="oe_export_fields_selector_right">
1557 <select name="fields_list" id="fields_list"
1558 multiple="multiple"></select>
1563 <table t-name="ExportTreeView-Secondary"
1564 id="field-tree-structure" class="oe_export_fields_selector_export"
1565 cellspacing="0" cellpadding="0">
1566 <tr><th class="oe_export_tree_header"> Name </th></tr>
1567 <t t-call="ExportTreeView-Secondary.children"/>
1569 <tr t-name="ExportTreeView-Secondary.children"
1570 t-foreach="fields" t-as="field"
1571 t-att-id="'treerow-' + field.id" class="oe_export_row">
1573 <table class="tree_grid" border="0">
1574 <tr class="oe_export_row">
1575 <t t-foreach="(field.id).split('/')" t-as="level" >
1576 <t t-if="(field.id).split('/')[0] != level">
1577 <td width="18">&nbsp;</td>
1580 <td valign="top" align="left" style="cursor: pointer;" width="18">
1581 <t t-if="field.children">
1582 <t t-if="(field.id).split('/').length != 3">
1583 <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1587 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1588 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1589 <t t-esc="field.string"/>
1597 <t t-name="ExportNewList">
1599 <th><label>Save as:</label></th>
1600 <td><input size="10" type="text" id="savelist_name"/></td>
1601 <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1605 <t t-name="Exists.ExportList">
1606 <label for="saved_export_list">Saved exports:</label>
1608 <select id="saved_export_list">
1610 <t t-foreach="existing_exports" t-as="export">
1611 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1614 <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1616 <t t-name="Change_Pwd">
1617 <form name="change_password_form" class="oe_forms" method="POST">
1618 <table align="center">
1620 <td><label for="old_pwd">Old Password:</label></td>
1621 <td><input type="password" name="old_pwd"
1622 minlength="1" autofocus="autofocus"/></td>
1625 <td><label for="new_password">New Password:</label></td>
1626 <td><input type="password" name="new_password"
1627 minlength="1" autofocus="autofocus"/></td>
1630 <td><label for="confirm_pwd">Confirm Password:</label></td>
1631 <td><input type="password" name="confirm_pwd"
1632 minlength="1"/></td>
1635 <td colspan="2" align="right"><button>Change Password</button></td>
1641 <t t-name="ImportView">
1642 <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1644 <t t-name="ImportDataView">
1645 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1646 class="oe-import oe-import-no-result">
1647 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
1648 <h2 class="separator horizontal">1. Import a .CSV file</h2>
1649 <p>Select a .CSV file to import. If you need a sample of file to import,
1650 you should use the export tool with the "Import Compatible" option.
1653 <label for="csvfile">CSV File:</label>
1654 <input type="file" id="csvfile" size="50" name="csvfile"/>
1656 <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1657 <div id="result" class="oe-import-result"></div>
1658 <fieldset class="oe-closed oe-import-result">
1659 <legend>Import Options</legend>
1663 <label for="file_has_headers">Does your file have titles?</label>
1664 <input type="checkbox" checked="checked"
1665 id="file_has_headers"/>
1669 <td><label for="csv_separator">Separator:</label></td>
1670 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1671 <td><label for="csv_delimiter">Delimiter:</label></td>
1672 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1675 <td><label for="csv_encoding">Encoding:</label></td>
1677 <select name="csvcode" id="csv_encoding">
1678 <option value="utf-8">UTF-8</option>
1679 <option value="latin1">Latin 1</option>
1682 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1683 Lines to skip<sup>?</sup>:</label></td>
1684 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1690 <t t-name="ImportView.result">
1691 <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1692 <tr t-if="headers" class="oe_import_grid-header">
1693 <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1694 <t t-esc="header"/></td>
1697 <td t-foreach="records[0]" t-as="column">
1698 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1699 <img src="/web/static/src/img/down-arrow.png" /></span>
1702 <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1703 <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1704 <t t-esc="cell"/></td>
1708 <t t-name="ImportView.error">
1709 <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1710 <t t-if="error.preview">
1711 <p>Here is a preview of the file we could not import:</p>
1712 <pre><t t-esc="error.preview"/></pre>
1716 <t t-name="About-Page">
1718 <h1>OpenERP Web</h1>
1719 <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1721 Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1722 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1725 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>
1728 <h1>About OpenERP</h1>
1730 <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
1731 productivity and profit through data integration. It connects, improves and
1732 manages business processes in areas such as sales, finance, supply chain,
1733 project management, production, services, CRM, etc...
1736 The system is platform-independent, and can be installed on Windows, Mac OS X,
1737 and various Linux and other Unix-based distributions. Its architecture enables
1738 new functionality to be rapidly created, modifications to be made to a
1739 production system and migration to a new version to be straightforward.
1742 Depending on your needs, OpenERP is available through a web or application client.
1746 <t t-name="FieldStatus.content">
1747 <ul class="oe-arrow-list">
1748 <t t-set="size" t-value="widget.to_show.length"/>
1749 <t t-foreach="_.range(size)" t-as="i">
1750 <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1751 <span class="oe-arrow-list-before" t-if="i > 0"></span><span><t t-esc="widget.to_show[i][1]"/></span><span class="oe-arrow-list-after" t-if="i < size - 1"></span>
1756 <t t-name="EmptyComponent">