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" t-translation="off">
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="WebClient">
21 <div class="oe_webclient">
22 <table class="oe_main">
24 <td colspan="2" class="oe_topbar">
25 <div class="oe_menu_placeholder"/>
26 <div class="oe_user_menu_placeholder"/>
27 <div class="oe_systray"/>
31 <td class="oe_leftbar" valign="top">
32 <a href="#" class="oe_logo"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
33 <div class="oe_secondary_menus_container"/>
34 <div class="oe_footer">
35 Powered by <a href="http://www.openerp.com"><span>Open</span>ERP</a>
38 <td class="oe_application">
51 <t t-name="Database.CreateDB">
52 <form name="create_db_form" class="oe_forms" method="POST">
55 <td class="option_string">
60 <table align="center" class="db_option_table">
62 <td><label for="super_admin_pwd">Master password:</label></td>
63 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
66 <td><label for="db_name">New database name:</label></td>
67 <td><input type="text" name="db_name"
68 class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
71 <td><label for="demo_data">Load Demonstration data:</label></td>
72 <td><input type="checkbox" name="demo_data"/></td>
75 <td><label for="db_lang">Default language:</label></td>
77 <select name="db_lang" t-if="lang_list">
78 <t t-foreach="lang_list" t-as="lang">
79 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
85 <td><label for="create_admin_pwd">Admin password:</label></td>
86 <td><input type="password" name="create_admin_pwd" class="required"/></td>
89 <td><label for="create_confirm_pwd">Confirm password:</label></td>
90 <td><input type="password" name="create_confirm_pwd" class="required"
91 equalTo="input[name=create_admin_pwd]"/></td>
94 <td colspan="2" align="right"><button class="oe_button">Create</button></td>
100 <form name="drop_db_form" class="oe_forms" method="POST">
103 <td class="option_string">
108 <table align="center" class="db_option_table">
110 <td><label for="drop_db">Database:</label></td>
112 <select t-if="db_list" name="drop_db" autofocus="autofocus">
113 <t t-foreach="db_list" t-as="db">
114 <option t-att-value="db"><t t-esc="db"/></option>
117 <input t-if="!db_list" name="drop_db" class="required"
118 type="text" autofocus="autofocus"/>
122 <td><label for="drop_password">Master Password:</label></td>
123 <td><input type="password" name="drop_pwd" class="required"/></td>
126 <td colspan="2" align="right"><button class="oe_button">Drop</button></td>
131 <t t-name="BackupDB">
132 <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
133 action="/web/database/backup">
134 <input type="hidden" name="token"/>
137 <td class="option_string">
142 <table align="center" class="db_option_table">
144 <td><label for="backup_db">Database:</label></td>
146 <select t-if="db_list" name="backup_db" autofocus="autofocus">
147 <t t-foreach="db_list" t-as="db">
148 <option t-att-value="db"><t t-esc="db"/></option>
151 <input t-if="!db_list" name="backup_db" class="required"
152 type="text" autofocus="autofocus"/>
156 <td><label for="backup_pwd">Master Password:</label></td>
157 <td><input type="password" name="backup_pwd" class="required"/></td>
160 <td colspan="2" align="right"><button class="oe_button">Backup</button></td>
165 <t t-name="RestoreDB">
166 <form name="restore_db_form" class="oe_forms" method="POST">
169 <td class="option_string">
174 <table align="center" class="db_option_table">
176 <td><label for="restore_db">File:</label></td>
177 <td><input type="file" name="db_file" class="required"
178 autofocus="autofocus"/></td>
181 <td><label for="restore_pwd">Master Password:</label></td>
182 <td><input type="password" name="restore_pwd" class="required"/></td>
185 <td><label for="new_db">New database name:</label></td>
186 <td><input type="text" name="new_db" class="required"/></td>
189 <td colspan="2" align="right"><button class="oe_button">Restore</button></td>
194 <t t-name="Change_DB_Pwd">
195 <form name="change_pwd_form" class="oe_forms" method="POST">
198 <td class="option_string">
199 CHANGE MASTER PASSWORD
203 <table align="center" class="db_option_table">
205 <td><label for="old_pwd">Master password:</label></td>
206 <td><input type="password" name="old_pwd" class="required"
207 minlength="1" autofocus="autofocus"/></td>
210 <td><label for="new_pwd">New master password:</label></td>
211 <td><input type="password" name="new_pwd" class="required"
215 <td><label for="confirm_pwd">Confirm new master password:</label></td>
216 <td><input type="password" name="confirm_pwd" class="required"
217 equalTo="input[name=new_pwd]" minlength="1"/></td>
220 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
226 <t t-name="CrashManagerWarning">
227 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
229 <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
233 var message = d.message ? d.message : d.error.data.fault_code;
234 d.html_error = context.engine.tools.html_escape(message)
235 .replace(/\n/g, '<br/>');
237 <t t-raw="html_error"/>
243 <t t-name="CrashManagerError">
244 <t t-if="!session.openerp_entreprise">
245 <span>Your version of OpenERP is unsupported. Support & maintenance services are available here: <a href="http://www.openerp.com/support-or-publisher-warranty-contract" target="_blank">OpenERP Entreprise</a>.</span>
247 <t t-if="session.openerp_entreprise">
248 <div class="oe_error_send">
250 <div class="oe_centeralign"><b>OpenERP Enterprise Contract.</b></div>
251 <div><br/>Your report will be sent to the OpenERP Enterprise team.<br/></div><br/>
253 <label>Summary:</label><br/>
254 <input id="issuename" type="text" class="oe_fielddiv"/>
257 <label>Description:</label><br/>
258 <textarea id="explanation" rows="6"></textarea>
261 <label>What you did:</label><br/>
262 <textarea id="remark" rows="6" ></textarea>
267 <div class="oe_error_detail">
268 <pre><t t-esc="error.message"/></pre>
270 <pre><t t-esc="error.data.debug"/></pre>
274 <t t-name="Login_dblist">
276 <t t-foreach="db_list" t-as="db">
277 <t t-if="selected_db === db">
278 <option t-att-value="db" selected="true">
279 <t t-esc="db"/></option>
281 <t t-if="selected_db !== db">
282 <option t-att-value="db"><t t-esc="db"/></option>
290 <div class="bottom"> </div>
291 <div class="login_error_message">Invalid username or password</div>
293 <div id="logo"><img src='/web/static/src/img/logo2.png'/></div>
294 <form action="" method="post">
295 <div class="dbpane" >
297 <input name="db" t-att-value="widget.selected_db || ''"/>
301 <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
303 <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
304 <li><button name="submit">Log in</button></li>
308 <a href="#" id="oe-db-config">Manage Databases</a> |
309 <a href="http://www.openerp.com">Powered by <span class="openerp">OpenERP</span></a>
314 <t t-name="DatabaseManager">
315 <div class="oe-database-manager">
316 <div class="database">
317 <a class="company_logo_link" href="/?">
318 <div class="company_logo"></div>
320 <ul class="db_options">
321 <li id="db-create">Create</li>
322 <li id="db-drop">Drop</li>
323 <li id="db-backup">Backup</li>
324 <li id="db-restore">Restore</li>
325 <li id="db-change-password">Password</li>
326 <li id="back-to-login">Back to Login</li>
329 <div id="oe_db_options" class="oe_db_options"></div>
334 <ul class="oe_menu" t-if="widget.data">
335 <li t-foreach="widget.data.data.children" t-as="menu">
336 <t t-call="Menu.secondary.link"/>
340 <t t-name="Menu.more">
341 <li class="oe_menu_more_container">
342 <a href="#" class="oe_menu_more_link oe_dropdown_toggle">More</a>
343 <ul class="oe_menu_more" style="display: none;"/>
346 <t t-name="Menu.secondary">
347 <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
348 <t t-foreach="menu.children" t-as="menu">
349 <div class="oe_secondary_menu_section">
350 <t t-esc="menu.name"/>
352 Shall the section be still clickable ?
353 <t t-call="Menu.secondary.link"/>
356 <t t-call="Menu.secondary.submenu"/>
360 <t t-name="Menu.secondary.submenu">
361 <ul t-if="menu.children.length" class="oe_secondary_submenu">
362 <li t-foreach="menu.children" t-as="menu">
363 <t t-call="Menu.secondary.link"/>
364 <!--<span class="oe_menu_label">8</span>-->
365 <t t-call="Menu.secondary.submenu"/>
369 <t t-name="Menu.secondary.link">
371 t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
372 t-att-data-menu="menu.id"
373 t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
374 t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
375 <t t-esc="menu.name"/>
379 <t t-name="UserMenu">
380 <ul class="oe_user_menu oe_topbar_item">
381 <li class="oe_dropdown">
382 <a href="#" class="oe_dropdown_toggle">
383 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/topbar-avatar.png'"/>
384 <span class="oe_topbar_name"/>
386 <ul class="oe_dropdown_options">
387 <!--<li><a href="#" data-menu="profile">Profile</a></li>-->
388 <li><a href="#" data-menu="settings">Settings</a></li>
389 <li><a href="#" data-menu="logout">Log out</a></li>
391 <li><a href="#" data-menu="about">About OpenERP</a></li>
397 <t t-name="UserMenu.shortcut">
398 <li t-foreach="shortcuts" t-as="shortcut">
399 <a href="#" data-menu="shortcut" t-att-data-id="shortcut.res_id" t-att-data-shortcut-id="shortcut.id">
400 <t t-esc="shortcut.name"/>
405 <t t-name="ViewManager">
406 <table class="view-manager-main-table" cellpadding="0" cellspacing="0">
409 <td class="view-manager-main-content">
410 <div class="oe-view-manager-header">
411 <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
412 <span class="oe_view_title_text"><t t-esc="self.display_title()"/></span>
414 <div class="oe_vm_switch">
415 <t t-if="views.length != 1" t-foreach="views" t-as="view">
417 <button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.label || view.view_type">
418 <span><t t-esc="view.label || view.view_type"/></span>
423 <div t-attf-id="#{prefix}_search" t-opentag="true"/>
424 <t t-foreach="views" t-as="view">
425 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
428 <td class="view-manager-main-sidebar" height="100%">
429 <t t-foreach="views" t-as="view">
430 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
438 <t t-extend="ViewManager" t-name="ViewManagerAction">
439 <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
441 <td class="oe_view_manager_menu_tips" colspan="2">
442 <blockquote t-if="self.action.help and !self.flags.low_profile
443 and !(self.action.id in self.session.hidden_menutips)">
444 <p><t t-esc="self.action.help"/></p>
446 <button type="button" name="hide">Hide this tip</button>
447 <button type="button" name="disable">Disable all tips</button>
453 <t t-jquery="h2.oe_view_title" t-operation="prepend">
454 <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
455 href="javascript: void(0)"> </a>
457 <t t-jquery="h2.oe_view_title" t-operation="after">
458 <select t-if="self.session.debug" class="oe_debug_view"/>
460 <t t-jquery=".oe-view-manager-header" t-operation="after">
461 <div class="oe-view-manager-logs oe-folded">
463 <a class="oe-more-logs" href="#">More…</a>
464 <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
468 <t t-name="ViewManagerDebug">
469 <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
470 <option t-if="_.indexOf(['form', 'page'], view_manager.active_view) gt -1" value="perm_read" data-views="form,page">View Log (perm_read)</option>
471 <option value="fields">View Fields</option>
472 <option value="fvg">Fields View Get</option>
473 <t t-if="view_manager.session.uid === 1">
474 <option value="manage_views">Manage Views</option>
475 <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>
476 <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>
477 <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>
478 <option value="edit_workflow">Edit Workflow</option>
481 <t t-name="ViewManagerDebugViewLog">
482 <div class="oe_debug_view_log">
484 <span><t t-esc="perm.id"/></span>
486 <label>XML ID:</label>
487 <span><t t-esc="perm.xmlid"/></span>
489 <label>Creation User:</label>
490 <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
492 <label>Creation Date:</label>
493 <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
495 <label>Latest Modification by:</label>
496 <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
498 <label>Latest Modification Date:</label>
499 <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
502 <t t-extend="ViewManager" t-name="One2Many.viewmanager">
503 <t t-jquery="span.oe_view_title_text" t-operation="replace"/>
505 <t t-jquery=".oe-view-manager-header">
506 this.attr('t-if', 'views.length != 1');
511 <div class="sidebar-content">
512 <div class="sidebar-actions">
516 <t t-name="Sidebar.section">
517 <div t-att-id="section_id" t-att-class="classname">
518 <h2><t t-esc="name"/></h2>
521 <t t-name="Sidebar.section.items">
522 <li t-foreach="items" t-as="item" t-att-class="item.classname">
523 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
524 <t t-esc="item.label"/>
529 <t t-name="TranslateDialog">
530 <table t-if="widget.view.translatable_fields" class="oe_form oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
532 <td class="oe_form_separator" width="1%" nowrap="nowrap">
533 <div class="oe_horizontal_separator">Field</div>
535 <th t-foreach="widget.languages" align="left">
536 <div class="oe_horizontal_separator"><t t-esc="name"/></div>
539 <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
540 <td class="oe_form_group_cell" width="1%" nowrap="nowrap">
541 <label class="oe_label"><t t-esc="field.node.attrs.string"/>:</label>
543 <td t-foreach="widget.languages" t-as="lg" class="oe_form_group_cell">
544 <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%"/>
545 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
550 <t t-name="TreeView">
551 <select t-if="toolbar" style="width: 30%">
553 <table class="oe-treeview-table">
556 <th t-foreach="fields_view" t-as="field"
557 t-if="!field.attrs.modifiers.tree_invisible"
558 class="treeview-header">
559 <t t-esc="fields[field.attrs.name].string" />
567 <tr t-name="TreeView.rows"
568 t-foreach="records" t-as="record"
569 t-att-id="'treerow_' + record.id"
570 t-att-data-id="record.id" t-att-data-level="level + 1">
571 <t t-set="children" t-value="record[children_field]"/>
572 <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
573 <t t-set="rank" t-value="'oe-treeview-first'"/>
574 <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
576 <td t-foreach="fields_view" t-as="field"
577 t-if="!field.attrs.modifiers.tree_invisible"
578 t-att-data-id="record.id"
579 t-att-style="color_for(record) + style "
580 t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}">
582 <span t-if="!field.attrs.modifiers.invisible" >
583 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
586 <t t-set="class" t-value="'treeview-td'"/>
587 <t t-set="rank" t-value="''"/>
588 <t t-set="style" t-value="''"/>
592 <t t-name="ViewPager">
593 <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
594 <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
596 <button class="oe_button oe_button_pager" type="button" data-pager-action="previous">
597 <img t-att-src='_s + "/web/static/src/img/pager_previous.png"'/>
600 <t t-raw="__content__"/>
602 <button class="oe_button oe_button_pager" type="button" data-pager-action="next">
603 <img t-att-src='_s + "/web/static/src/img/pager_next.png"'/>
605 <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
606 <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
610 <table t-name="ListView" class="oe-listview-content">
611 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
612 <thead class="ui-widget-header">
613 <tr t-if="options.action_buttons !== false or options.pager !== false">
614 <th t-att-colspan="columns_count">
617 <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
618 <button type="button" class="oe_button oe-list-add"
619 t-if="options.addable">
620 <t t-esc="options.addable"/>
622 <button type="button" class="oe_button oe-list-delete"
623 t-if="options.selectable and options.deletable">
627 <t t-call="Listview.navigation.button"/>
632 <tr t-if="options.header" class="oe-listview-header-columns">
633 <t t-foreach="columns" t-as="column">
634 <th t-if="column.meta">
635 <t t-esc="column.string"/>
638 <th t-if="options.selectable" width="1" >
639 <input type="checkbox" class="all-record-selector"/> </th>
640 <th t-if="options.isClarkGable" width="1"> </th>
641 <t t-foreach="columns" t-as="column">
642 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
643 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
644 <t t-if="column.tag !== 'button'"
645 ><t t-esc="column.string"/></t>
648 <th t-if="options.deletable" width="1"/>
651 <tfoot class="ui-widget-header">
653 <td t-if="options.selectable"/>
654 <td t-if="options.isClarkGable"/>
655 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
656 t-att-data-field="column.id" t-att-title="column.label">
658 <td t-if="options.deletable"/>
661 <t t-call="Listview.navigation.button"/>
665 <t t-extend="ListView" t-name="One2Many.listview">
666 <t t-jquery="thead.ui-widget-header > tr:first">
667 this.removeAttr('t-if');
670 <t t-jquery="tfoot > tr:last-child" t-operation="replace"/>
672 <t t-jquery="td.oe-actions">
673 this.removeAttr('t-if');
675 <t t-jquery="td.oe-actions" t-operation="prepend">
676 <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
679 <th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
680 class="oe-list-pager" t-att-colspan="columns_count">
681 <t t-call="ViewPager">
682 <span class="oe-pager-state">
686 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
687 <t t-call="ListView.row">
688 <t t-set="record" t-value="records.at(index)"/>
689 <t t-set="row_parity" t-value="index_parity"/>
692 <tr t-name="ListView.row" t-att-class="row_parity"
693 t-att-data-id="record.get('id')"
694 t-att-style="view.color_for(record)">
695 <t t-foreach="columns" t-as="column">
696 <td t-if="column.meta">
700 <th t-if="options.selectable" class="oe-record-selector" width="1">
701 <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
702 <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
703 <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
705 <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
706 <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
708 <t t-foreach="columns" t-as="column">
709 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
710 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
711 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
712 + (column.tag === 'button' ? ' oe-button' : '')"
713 t-att-data-field="column.id">
714 <t t-raw="render_cell(record, column)"/>
717 <td t-if="options.deletable" class='oe-record-delete' width="1">
718 <button type="button" name="delete"></button>
722 <t t-name="FormView">
723 <div class="oe_formview">
724 <div class="oe_form_header">
725 <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
726 <button type="button" class="oe_button oe_form_button_save">Save</button>
727 <button type="button" class="oe_button oe_form_button_cancel">Cancel</button>
729 <div class="oe_form_sidebar">
732 <div class="oe_form_pager" t-if="widget.options.pager !== false">
733 <t t-call="ViewPager">
734 <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
738 <div style="clear: both;"/>
739 <div class="oe_form_container"/>
742 <t t-name="One2Many.formview" t-extend="FormView">
743 <t t-jquery=".oe_form_buttons" t-operation="inner">
744 <button type="button" class="oe_button oe_form_button_create">Add</button>
747 <t t-name="PageView" t-extend="FormView">
748 <t t-jquery=".oe_form_buttons" t-operation="inner">
749 <button type="button" class="oe_button oe_form_button_edit">Edit</button>
750 <button type="button" class="oe_button oe_form_button_create">Create</button>
751 <button type="button" class="oe_button oe_form_button_duplicate">Duplicate</button>
752 <button type="button" class="oe_button oe_form_button_delete">Delete</button>
755 <t t-name="FormView.sidebar.attachments">
756 <div class="oe-sidebar-attachments-toolbar">
757 <div class="oe-binary-file-set" style="float: right">
758 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
759 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
760 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
761 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
762 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
763 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
764 <button class="oe_button" type="button">
765 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16" style="display: none"/>
768 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
769 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
771 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"/>
774 <br style="clear: both"/>
775 <ul class="oe-sidebar-attachments-items">
776 <li t-foreach="attachments" t-as="attachment">
777 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="_s + '/web/binary/saveas?session_id='
778 + session.session_id + '&model=ir.attachment&id=' + attachment.id
779 + '&field=datas&filename_field=name&t=' + (new Date().getTime())"/>
780 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
781 <t t-esc="attachment.name"/>
783 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
784 <img t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
789 <form t-name="FormView.set_default" class="oe_forms oe_frame">
790 <t t-set="args" t-value="widget.dialog_options.args"/>
791 <table style="width: 100%">
794 <label for="formview_default_fields"
795 class="oe_label oe_align_right">
799 <td class="oe_form_required">
800 <select id="formview_default_fields">
802 <option t-foreach="args.fields" t-as="field"
803 t-att-value="field.name">
804 <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
809 <tr t-if="args.conditions.length">
811 <label for="formview_default_conditions"
812 class="oe_label oe_align_right">
817 <select id="formview_default_conditions">
819 <option t-foreach="args.conditions" t-as="cond"
820 t-att-value="cond.name + '=' + cond.value">
821 <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
828 <input type="radio" id="formview_default_self"
829 value="self" name="scope" checked="checked"/>
830 <label for="formview_default_self" class="oe_label"
831 style="display: inline;">
835 <input type="radio" id="formview_default_all"
836 value="all" name="scope"/>
837 <label for="formview_default_all" class="oe_label"
838 style="display: inline;">
846 <t t-name="FormRenderingForm">
847 <div class="oe_form_sheetbg">
848 <div class="oe_form_sheet oe_form_sheet_width">
849 <group t-if="legacy_mode" col="4"/>
853 <t t-name="FormRenderingGroup">
855 <table border="0" cellpadding="0" cellspacing="0" width="100%"/>
858 <fieldset class="oe_group_box">
859 <legend><t t-esc="string"/></legend>
867 <t t-name="FormRenderingNotebook">
869 <ul class="oe_form_notebook">
870 <li t-foreach="pages" t-as="page">
871 <a t-attf-href="##{page.id}">
872 <t t-esc="page.string"/>
878 <t t-name="FormRenderingNotebookPage">
879 <div class="oe_form_notebook_page" t-att-id="id">
880 <group t-if="legacy_mode" col="4"/>
883 <t t-name="FormRenderingSeparator">
884 <div class="oe_horizontal_separator">
888 <t t-name="FormRenderingLabel">
889 <label t-att-for="_for"
891 t-attf-class="oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
893 <span t-if="help">?</span>
900 <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
902 <t t-name="WidgetLabel.tooltip">
903 <div class="oe_tooltip_string" t-if="widget.string">
904 <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
906 <p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
907 <ul t-if="debug" class="oe_tooltip_technical">
908 <li data-item="field" t-if="widget.name">
909 <span class="oe_tooltip_technical_title">Field:</span>
910 <t t-esc="widget.name"/>
912 <li data-item="object" t-if="widget.view and widget.view.fields_view">
913 <span class="oe_tooltip_technical_title">Object:</span>
914 <t t-esc="widget.view.fields_view.model"/>
916 <li data-item="type" t-if="widget.field">
917 <span class="oe_tooltip_technical_title">Type:</span>
918 <t t-esc="widget.field.type"/>
920 <li t-if="widget.node.attrs.widget" data-item="widget">
921 <span class="oe_tooltip_technical_title">Widget:</span>
922 <t t-esc="widget.node.attrs.widget"/>
924 <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
925 <span class="oe_tooltip_technical_title">Size:</span>
926 <t t-esc="widget.node.attrs.size || widget.field.size"/>
928 <li t-if="widget.node.attrs.context" data-item="context">
929 <span class="oe_tooltip_technical_title">Context:</span>
930 <t t-esc="widget.node.attrs.context_string"/>
932 <li t-if="widget.node.attrs.domain" data-item="domain">
933 <span class="oe_tooltip_technical_title">Domain:</span>
934 <t t-esc="widget.node.attrs.domain_string"/>
936 <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
937 <span class="oe_tooltip_technical_title">Modifiers:</span>
938 <t t-esc="widget.node.attrs.modifiers"/>
940 <li t-if="widget.field and widget.field.change_default" data-item="change_default">
941 <span class="oe_tooltip_technical_title">Change default:</span>
944 <li t-if="widget.node.attrs.on_change" data-item="on_change">
945 <span class="oe_tooltip_technical_title">On change:</span>
946 <t t-esc="widget.node.attrs.on_change"/>
948 <li t-if="widget.field and widget.field.relation" data-item="relation">
949 <span class="oe_tooltip_technical_title">Relation:</span>
950 <t t-esc="widget.field.relation"/>
952 <li t-if="widget.field and widget.field.selection" data-item="selection">
953 <span class="oe_tooltip_technical_title">Selection:</span>
955 <li t-foreach="widget.field.selection" t-as="option">
956 [<t t-esc="option[0]"/>]
957 <t t-if="option[1]"> - </t>
958 <t t-esc="option[1]"/>
964 <t t-name="FieldChar">
965 <t t-if="!widget.get('effective_readonly')">
966 <div class="oe_form_field_char">
967 <input t-att-type="widget.password ? 'password' : 'text'"
968 t-att-id="widget.id_for_label"
969 t-att-tabindex="widget.node.attrs.tabindex"
970 t-att-autofocus="widget.node.attrs.autofocus"
971 t-attf-class="field_char #{widget.is_field_number ? 'oe-number' : ''}"
972 /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
975 <t t-if="widget.get('effective_readonly')">
976 <div t-attf-class="oe_form_field_char #{widget.is_field_number ? 'oe-number' : ''}">
980 <t t-name="FieldEmail">
981 <t t-if="!widget.get('effective_readonly')">
982 <table class="oe_form_field_email" cellpadding="0" cellspacing="0" border="0">
986 t-att-id="widget.id_for_label"
987 t-att-tabindex="widget.node.attrs.tabindex"
988 t-att-autofocus="widget.node.attrs.autofocus"
992 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Send an e-mail with your default e-mail client">
993 <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/>
999 <t t-if="widget.get('effective_readonly')">
1001 <a href="#" class="oe_form_uri"/>
1005 <t t-name="FieldUrl">
1006 <t t-if="!widget.get('effective_readonly')">
1007 <table class="oe_form_field_url" cellpadding="0" cellspacing="0" border="0">
1011 t-att-id="widget.id_for_label"
1012 t-att-tabindex="widget.node.attrs.tabindex"
1013 t-att-autofocus="widget.node.attrs.autofocus"
1017 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Open this resource">
1018 <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.png"'/>
1024 <t t-if="widget.get('effective_readonly')">
1026 <a href="#" class="oe_form_uri"/>
1030 <t t-name="FieldText">
1031 <t t-if="!widget.get('effective_readonly')">
1032 <div class="oe_form_field_text">
1034 t-att-name="widget.name"
1036 t-att-tabindex="widget.node.attrs.tabindex"
1037 t-att-autofocus="widget.node.attrs.autofocus"
1038 ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
1042 <t t-name="web.datetimepicker">
1043 <div class="oe_datepicker_root oe_form_field_datetime">
1044 <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
1046 t-att-name="widget.name"
1047 t-attf-class="oe_datepicker_master field_#{widget.type_of_date}"
1048 /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
1049 title="Select date" width="16" height="16" border="0"/>
1052 <t t-name="FieldSelection">
1053 <t t-if="!widget.get('effective_readonly')">
1054 <div class="oe_form_field_selection">
1056 t-att-name="widget.name"
1057 t-att-tabindex="widget.node.attrs.tabindex"
1058 t-att-autofocus="widget.node.attrs.autofocus"
1059 t-att-id="widget.id_for_label">
1060 <t t-foreach="widget.values" t-as="option">
1061 <option><t t-esc="option[1]"/></option>
1066 <t t-if="widget.get('effective_readonly')">
1067 <div class="field_selection">
1071 <t t-name="FieldMany2One">
1072 <t t-if="!widget.get('effective_readonly')">
1073 <table class="oe_form_field_many2one" cellpadding="0" cellspacing="0" border="0">
1077 t-att-id="widget.id_for_label"
1078 t-att-tabindex="widget.node.attrs.tabindex"
1079 t-att-autofocus="widget.node.attrs.autofocus"
1081 <span class="oe-m2o-drop-down-button">
1082 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1085 <button class="oe_button oe_field_button oe-m2o-cm-button" t-att-id="widget.name + '_open'">
1086 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY_MENU.png"'/>
1088 <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
1094 <t t-if="widget.get('effective_readonly')">
1096 <a href="#" class="oe_form_uri"/>
1100 <t t-name="FieldMany2One.context_menu">
1102 <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
1103 <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
1104 <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
1105 <t t-set="i" t-value="0"/>
1106 <t t-foreach="widget.related_entries" t-as="entry">
1107 <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
1108 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
1110 <t t-set="i" t-value="i+1"/>
1114 <t t-name="FieldReference">
1115 <t t-if="!widget.get('effective_readonly')">
1116 <table class="oe_form_field_reference oe_frame oe_forms" border="0" cellpadding="0" cellspacing="0">
1118 <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection">
1120 <td t-attf-class="oe_form_frame_cell oe_form_many2one oe_form_view_reference_m2o" nowrap="true" style="display: none">
1125 <t t-if="widget.get('effective_readonly')">
1126 <a href="#" class="oe_form_uri"/>
1129 <t t-name="FieldBoolean">
1130 <span class="oe_form_field_boolean">
1131 <input type="checkbox"
1132 t-att-id="widget.id_for_label"
1133 t-att-name="widget.name"
1134 t-att-tabindex="widget.node.attrs.tabindex"
1135 t-att-autofocus="widget.node.attrs.autofocus"
1136 class="field_boolean"/>
1139 <t t-name="FieldProgressBar">
1140 <div class="oe_form_field_progressbar" t-opentag="true">
1144 <t t-name="FieldStatus.content">
1145 <ul class="oe_form_steps">
1146 <t t-set="size" t-value="widget.to_show.length"/>
1147 <t t-foreach="_.range(size)" t-as="i">
1148 <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : ''">
1149 <t t-esc="widget.to_show[i][1]"/>
1150 <img t-att-src='_s + "/web/static/src/img/form_steps.png"' class="oe_form_steps_arrow" t-if="i < size - 1"/>
1155 <t t-name="FieldBinaryImage">
1156 <table cellpadding="0" cellspacing="0" border="0" width="100%">
1158 <td class="oe_form_field-binary-image-placeholder" align="center">
1163 <td align="center" valign="bottom" height="25">
1164 <div class="oe-binary">
1165 <table cellspacing="0" cellpadding="0" border="0">
1168 <div class="oe-binary-file-set" style="width: 40px; height:22px;">
1169 <form class="oe-binary-form" t-att-target="widget.iframe"
1170 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1171 <input type="hidden" name="session_id" value=""/>
1172 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1173 <button class="oe_button" type="button" title="Set Image">
1174 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1176 <input type="file" class="oe-binary-file" name="ufile"
1177 t-att-tabindex="widget.node.attrs.tabindex"
1178 t-att-autofocus="widget.node.attrs.autofocus"
1184 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1185 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1191 <div class="oe-binary-progress" style="display: none">
1192 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1193 <b>Uploading ...</b>
1195 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1200 <t t-name="FieldBinaryImage-img">
1201 <img t-att-src='url' class="oe-binary-image field_image"
1202 t-att-border="widget.readonly ? 0 : 1"
1203 t-att-name="widget.name"
1204 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1205 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1206 t-att-style="'max-width: ' + (widget.$element.width() > 60 ? widget.$element.width() : 60) + 'px'"
1209 <t t-name="FieldBinaryFile">
1210 <t t-if="!widget.get('effective_readonly')">
1211 <table class="oe_form_field_binary" cellpadding="0" cellspacing="0" border="0">
1214 <input type="text" size="1" readonly="readonly"
1215 t-att-name="widget.name"
1216 t-att-tabindex="widget.node.attrs.tabindex"
1217 t-att-autofocus="widget.node.attrs.autofocus"
1218 class="field_binary"
1221 <td class="oe-binary" nowrap="true">
1222 <table cellspacing="0" cellpadding="0" border="0">
1225 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
1226 <form class="oe-binary-form" t-att-target="widget.iframe"
1227 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1228 <input type="hidden" name="session_id" value=""/>
1229 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1230 <button class="oe_button oe_field_button" type="button" title="Set Image">
1231 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1234 <input type="file" class="oe-binary-file" name="ufile"/>
1239 <button class="oe_button oe-binary-file-save" type="button" title="Save As">
1240 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1241 <span>Save As</span>
1245 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1246 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1253 <td class="oe-binary-progress" style="display: none" nowrap="true">
1254 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1255 <b>Uploading ...</b>
1256 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1261 <t t-if="widget.get('effective_readonly')">
1263 <a href="javascript:void(0)" class="oe_form_uri"/>
1267 <t t-name="WidgetButton">
1268 <button type="button" class="oe_button oe_form_button"
1269 t-att-tabindex="widget.node.attrs.tabindex"
1270 t-att-autofocus="widget.node.attrs.autofocus">
1271 <img t-if="widget.node.attrs.icon" t-att-src="_s + '/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1272 <span t-if="widget.string"><t t-esc="widget.string"/></span>
1275 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1276 <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1277 <div class="oe_tooltip_string" t-if="debug || widget.string">
1280 <t t-if="widget.string">: </t>
1281 <t t-if="!widget.string"> (no string)</t>
1283 <t t-esc="widget.string"/>
1286 <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1287 <li t-if="widget.node.attrs.special" data-item="special">
1288 <span class="oe_tooltip_technical_title">Special:</span>
1289 <t t-esc="widget.node.attrs.special"/>
1291 <t t-set="button_type" t-value="widget.node.attrs.type"/>
1292 <li t-if="button_type" data-item="button_type">
1293 <span class="oe_tooltip_technical_title">Button Type:</span>
1294 <t t-esc="button_type"/>
1296 <li t-if="button_type === 'object'" data-item="button_method">
1297 <span class="oe_tooltip_technical_title">Method:</span>
1298 <t t-esc="widget.node.attrs.name"/>
1300 <li t-if="button_type === 'action'" data-item="button_action">
1301 <span class="oe_tooltip_technical_title">Action ID:</span>
1302 <t t-esc="widget.node.attrs.name"/>
1307 <t t-name="SearchView">
1308 <form class="oe_forms">
1309 <t t-call="SearchView.render_lines"/>
1310 <div class="oe_search-view-buttons">
1311 <button class="oe_button">Search</button>
1312 <button class="oe_button" type="reset">Clear</button>
1313 <select class="oe_search-view-filters-management">
1318 <t t-name="SearchView.managed-filters">
1319 <option class="oe-filters-title" value="">Filters</option>
1320 <optgroup label="-- Filters --">
1321 <t t-foreach="filters" t-as="filter">
1322 <option t-attf-value="get:#{filter_index}"
1323 t-att-disabled="filter.disabled and 'disabled'"
1324 t-att-title="filter.disabled and disabled_filter_message">
1325 <t t-esc="filter.name"/>
1329 <optgroup label="-- Actions --">
1330 <option value="advanced_filter">Add Advanced Filter</option>
1331 <option value="save_filter">Save Filter</option>
1332 <option value="add_to_dashboard">Add to Dashboard</option>
1333 <option value="manage_filters">Manage Filters</option>
1336 <t t-name="SearchView.managed-filters.add">
1339 <input type="text"/>
1340 <p>(Any existing filter with the same name will be replaced)</p>
1343 <t t-name="SearchView.add_to_dashboard">
1344 <div class="oe_forms">
1345 <p><b>Select Dashboard to add this filter to:</b></p>
1346 <select style="width: 100%; margin-right: 1em;">
1347 <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>
1349 <p><b>Title of new Dashboard item:</b></p>
1350 <input type="text" style="width: 100%; margin-right: 1em;"/>
1353 <t t-name="SearchView.render_lines">
1354 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1355 t-foreach="lines" t-as="line">
1357 <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1358 <t t-raw="widget.render(defaults)"/>
1363 <button t-name="SearchView.filter" type="button"
1364 t-att-id="element_id"
1365 t-att-title="attrs.help"
1366 t-att-class="classes.join(' ')"
1368 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1369 <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1370 <br t-if="attrs.string"/>
1371 <t t-esc="attrs.string"/>
1373 <span t-name="SearchView.filters" class="filter_label_group"
1374 ><t t-foreach="filters" t-as="filter"
1375 ><t t-raw="filter.render(defaults)"/></t
1377 <t t-name="SearchView.field">
1378 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1379 t-att-title="attrs.help"
1380 t-att-for="element_id"
1381 t-att-style="style">
1382 <t t-esc="attrs.string || attrs.name"/>
1383 <span t-if="attrs.help">?</span>
1385 <div t-att-style="style">
1386 <input type="text" size="15" t-att-name="attrs.name"
1387 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1388 t-att-id="element_id"
1389 t-att-value="defaults[attrs.name] || ''"/>
1390 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1393 <t t-name="SearchView.date">
1394 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1395 t-att-title="attrs.help"
1396 t-att-for="element_id"
1397 t-att-style="style">
1398 <t t-esc="attrs.string || attrs.name"/>
1399 <span t-if="attrs.help">?</span>
1401 <div t-att-style="style">
1402 <span t-att-id="element_id"/>
1403 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1406 <t t-name="SearchView.field.selection">
1407 <label t-att-title="attrs.help"
1408 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1409 t-att-for="element_id"
1410 t-att-style="style">
1411 <t t-esc="attrs.string || attrs.name"/>
1412 <span t-if="attrs.help">?</span>
1414 <div t-att-style="style">
1415 <select t-att-name="attrs.name" t-att-id="element_id"
1416 t-att-autofocus="attrs.default_focus === '1' || undefined">
1417 <option t-if="prepend_empty"/>
1418 <t t-foreach="attrs.selection" t-as="option">
1419 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1420 <option t-if="selected"
1421 t-attf-selected="selected"
1422 t-att-value="option_index">
1423 <t t-esc="option[1]"/>
1425 <option t-if="!selected" t-att-value="option_index">
1426 <t t-esc="option[1]"/>
1430 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1433 <t t-name="SearchView.util.expand">
1434 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1435 t-att-id="element_id">
1436 <a t-if="label" class="searchview_group_string" href="#">
1439 <div class="searchview_group_content">
1440 <t t-raw="content"/>
1444 <t t-name="SearchView.group">
1445 <t t-call="SearchView.util.expand">
1446 <t t-set="expand" t-value="attrs.expand"/>
1447 <t t-set="label" t-value="attrs.string"/>
1449 <t t-call="SearchView.render_lines"/>
1453 <t t-name="SearchView.extended_search">
1454 <t t-call="SearchView.util.expand">
1455 <t t-set="expand" t-value="false"/>
1456 <t t-set="label">Advanced Filters</t>
1458 <div class="searchview_extended_groups_list">
1463 <t t-name="SearchView.extended_search.group">
1464 <div t-att-id="widget.element_id" class="searchview_extended_group">
1465 <select class="searchview_extended_group_choice">
1466 <option value="any">Any of the following conditions must match</option>
1467 <option value="all">All the following conditions must match</option>
1468 <option value="none">None of the following conditions must match</option>
1470 <a class="searchview_extended_delete_group"
1471 href="javascript:void(0)"><span></span></a>
1472 <div class="searchview_extended_propositions_list">
1474 <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1475 <span>Add condition</span></a>
1476 <div class="oe_adv_filters_and"><span>and</span></div>
1479 <t t-name="SearchView.extended_search.proposition">
1480 <div t-att-id="widget.element_id">
1481 <select class="searchview_extended_prop_field">
1482 <t t-foreach="widget.attrs.fields" t-as="field">
1483 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1484 t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1485 t-att-value="field.name">
1486 <t t-esc="field.string"/>
1490 <select class="searchview_extended_prop_op"/>
1491 <span class="searchview_extended_prop_value"/>
1492 <a class="searchview_extended_delete_prop"
1493 href="javascript:void(0)"><span> </span></a>
1496 <t t-name="SearchView.extended_search.proposition.char">
1497 <input t-att-id="widget.element_id" class="field_char"/>
1499 <t t-name="SearchView.extended_search.proposition.empty">
1500 <span t-att-id="widget.element_id"></span>
1502 <t t-name="SearchView.extended_search.proposition.integer">
1503 <input type="number" t-att-id="widget.element_id" class="field_integer" step="1"/>
1505 <t t-name="SearchView.extended_search.proposition.float">
1506 <input type="number" t-att-id="widget.element_id" class="field_float" step="0.01"/>
1508 <t t-name="SearchView.extended_search.proposition.boolean">
1510 <t t-name="SearchView.extended_search.proposition.selection">
1511 <select t-att-id="widget.element_id">
1512 <t t-foreach="widget.field.selection" t-as="element">
1513 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1517 <t t-name="SelectCreatePopup">
1519 <table style="width:100%">
1520 <tr style="width:100%">
1521 <td style="width:100%">
1522 <div class="oe-select-create-popup-view-search" style="width:100%"></div>
1525 <tr style="width:100%">
1526 <td style="width:100%">
1527 <div class="oe-select-create-popup-view-list" style="width:100%"></div>
1531 <div class="oe-select-create-popup-view-form" style="width:100%"></div>
1534 <t t-name="SelectCreatePopup.search.buttons">
1535 <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1536 <button type="button" class="oe_button oe_selectcreatepopup-search-close">Cancel</button>
1538 <t t-name="SelectCreatePopup.form.buttons">
1539 <t t-if="widget.options.disable_multiple_selection">
1540 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save</button>
1542 <t t-if="! widget.options.disable_multiple_selection">
1543 <button type="button" class="oe_button oe_selectcreatepopup-form-save-new">Save & New</button>
1544 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save & Close</button>
1546 <button type="button" class="oe_button oe_selectcreatepopup-form-close">Cancel</button>
1548 <t t-name="FormOpenPopup">
1550 <div class="oe-form-open-popup-form-view" style="width:100%"></div>
1553 <t t-name="FormOpenPopup.form.buttons">
1554 <button type="button" class="oe_button oe_formopenpopup-form-save">Save</button>
1555 <button type="button" class="oe_button oe_formopenpopup-form-close">Cancel</button>
1557 <t t-extend="ListView.row">
1558 <!-- adds back padding to row being rendered after edition, if necessary
1559 (if not deletable add back padding), otherwise the row being added is
1562 <t t-jquery="> :last" t-operation="after">
1563 <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1566 <t t-name="view_editor">
1567 <table class="oe_view_editor">
1568 <t t-call="view_editor.row"/>
1571 <t t-name="view_editor.row">
1572 <tr t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
1574 <table class="oe_view_editor_field">
1576 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1577 <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1578 src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1580 <td style="cursor: pointer;">
1581 <a style="text-decoration:none" href="javascript:void(0);">
1582 <t t-esc="rec.name"/>
1589 <img t-if="rec.att_list.length"
1590 id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1593 <img id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1596 <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1597 id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1600 <img t-if="rec.att_list.length"
1601 id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1604 <img t-if="rec.att_list.length"
1605 id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1607 <t t-if="rec.child_id.length">
1608 <t t-set="data" t-value="rec.child_id"/>
1609 <t t-call="view_editor.row"/>
1613 <t t-name="vieweditor_char">
1614 <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1616 <t t-name="vieweditor_selection">
1617 <select t-att-id="widget.name" >
1618 <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1620 t-att-value="typeof option === 'object' ? option[0] : option">
1621 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1626 <t t-name="vieweditor_boolean">
1627 <input type="checkbox" t-att-id="widget.name"/>
1629 <t t-name="ExportView">
1630 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1632 <table t-name="ExportTreeView" class="oe-export"
1633 style="background-color: #F3F3F3;">
1636 This wizard will export all data that matches the current search criteria to a CSV file.
1637 You can export all data or only the fields that can be reimported after modification.
1642 <label for="import_compat">Export Type:</label>
1643 <select id="import_compat" name="import_compat">
1644 <option value="yes">Import Compatible Export</option>
1645 <option value="">Export all Data</option>
1648 <label for="export_format">Export Formats</label>
1649 <select id="export_format" name="export_format"></select>
1654 <th>Available fields</th>
1658 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1659 <div id="savenewlist"></div>
1660 <div id="ExistsExportList"></div>
1663 <tr style="height: 400px;">
1664 <td class="oe_export_fields_selector_left">
1665 <div id="left_field_panel">
1668 <td class="oe_export_fields_selector_center">
1669 <!-- TODO: replace ids by 'oe_*' classes -->
1670 <button class="oe_button" id="add_field">Add</button>
1671 <button class="oe_button" id="remove_field">Remove</button>
1672 <button class="oe_button" id="remove_all_field">Remove All</button>
1674 <td class="oe_export_fields_selector_right">
1675 <select name="fields_list" id="fields_list"
1676 multiple="multiple"></select>
1681 <table t-name="ExportTreeView-Secondary"
1682 id="field-tree-structure" class="oe_export_fields_selector_export"
1683 cellspacing="0" cellpadding="0">
1684 <tr><th class="oe_export_tree_header"> Name </th></tr>
1685 <t t-call="ExportTreeView-Secondary.children"/>
1687 <tr t-name="ExportTreeView-Secondary.children"
1688 t-foreach="fields" t-as="field"
1689 t-att-id="'treerow-' + field.id" class="oe_export_row">
1691 <table class="tree_grid" border="0">
1692 <tr class="oe_export_row">
1693 <t t-foreach="(field.id).split('/')" t-as="level" >
1694 <t t-if="(field.id).split('/')[0] != level">
1695 <td width="18" t-translation="off">&nbsp;</td>
1698 <td valign="top" align="left" style="cursor: pointer;" width="18">
1699 <t t-if="field.children">
1700 <t t-if="(field.id).split('/').length != 3">
1701 <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1705 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1706 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1707 <t t-esc="field.string"/>
1715 <t t-name="ExportNewList">
1717 <th><label>Save as:</label></th>
1718 <td><input size="10" type="text" id="savelist_name"/></td>
1719 <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1723 <t t-name="Exists.ExportList">
1724 <label for="saved_export_list">Saved exports:</label>
1726 <select id="saved_export_list">
1728 <t t-foreach="existing_exports" t-as="export">
1729 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1732 <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1734 <t t-name="Change_Pwd">
1735 <form name="change_password_form" class="oe_forms" method="POST">
1736 <table align="center">
1738 <td><label for="old_pwd">Old Password:</label></td>
1739 <td><input type="password" name="old_pwd"
1740 minlength="1" autofocus="autofocus"/></td>
1743 <td><label for="new_password">New Password:</label></td>
1744 <td><input type="password" name="new_password"
1745 minlength="1" autofocus="autofocus"/></td>
1748 <td><label for="confirm_pwd">Confirm Password:</label></td>
1749 <td><input type="password" name="confirm_pwd"
1750 minlength="1"/></td>
1753 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
1759 <t t-name="ImportView">
1760 <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1762 <t t-name="ImportDataView">
1763 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1764 class="oe-import oe-import-no-result">
1765 <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
1766 <h2 class="separator horizontal">1. Import a .CSV file</h2>
1767 <p>Select a .CSV file to import. If you need a sample of file to import,
1768 you should use the export tool with the "Import Compatible" option.
1771 <label for="csvfile">CSV File:</label>
1772 <input type="file" id="csvfile" size="50" name="csvfile"/>
1774 <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1775 <div id="result" class="oe-import-result"></div>
1776 <fieldset class="oe-closed oe-import-result">
1777 <legend>Import Options</legend>
1781 <label for="file_has_headers">Does your file have titles?</label>
1782 <input type="checkbox" checked="checked"
1783 id="file_has_headers"/>
1787 <td><label for="csv_separator">Separator:</label></td>
1788 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1789 <td><label for="csv_delimiter">Delimiter:</label></td>
1790 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1793 <td><label for="csv_encoding">Encoding:</label></td>
1795 <select name="csvcode" id="csv_encoding">
1796 <option value="utf-8">UTF-8</option>
1797 <option value="latin1">Latin 1</option>
1800 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1801 Lines to skip<sup>?</sup>:</label></td>
1802 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1808 <t t-name="ImportView.result">
1809 <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1810 <tr t-if="headers" class="oe_import_grid-header">
1811 <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1812 <t t-esc="header"/></td>
1815 <td t-foreach="records[0]" t-as="column">
1816 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1817 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1820 <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1821 <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1822 <t t-esc="cell"/></td>
1826 <t t-name="ImportView.error">
1827 <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1828 <t t-if="error.preview">
1829 <p>Here is a preview of the file we could not import:</p>
1830 <pre><t t-esc="error.preview"/></pre>
1834 <t t-name="About-Page">
1836 <a class="oe_activate_debug_mode" href="?debug" style="float:right; font-size: 80%;">Activate the developper mode</a>
1837 <h1 style="margin:0;">OpenERP</h1>
1838 <h3 style="margin:15px 0;padding:0;">Version <t t-esc="version_info.version"/></h3>
1840 Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
1841 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1844 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>
1847 For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a>
1851 <t t-name="EmptyComponent">