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 <div class="oe_topbar">
23 <div class="oe_menu_placeholder"/>
24 <div class="oe_user_menu_placeholder"/>
25 <div class="oe_systray"/>
27 <table class="oe_main">
29 <td class="oe_leftbar" valign="top">
30 <a href="#" class="oe_logo"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
31 <div class="oe_secondary_menus_container"/>
32 <div class="oe_footer">
33 Powered by <a href="http://www.openerp.com"><span>Open</span>ERP</a>
36 <td class="oe_application">
49 <t t-name="Database.CreateDB">
50 <form name="create_db_form" class="oe_forms" method="POST">
53 <td class="option_string">
58 <table align="center" class="db_option_table">
60 <td><label for="super_admin_pwd">Master password:</label></td>
61 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
64 <td><label for="db_name">New database name:</label></td>
65 <td><input type="text" name="db_name"
66 class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
69 <td><label for="demo_data">Load Demonstration data:</label></td>
70 <td><input type="checkbox" name="demo_data"/></td>
73 <td><label for="db_lang">Default language:</label></td>
75 <select name="db_lang" t-if="lang_list">
76 <t t-foreach="lang_list" t-as="lang">
77 <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
83 <td><label for="create_admin_pwd">Admin password:</label></td>
84 <td><input type="password" name="create_admin_pwd" class="required"/></td>
87 <td><label for="create_confirm_pwd">Confirm password:</label></td>
88 <td><input type="password" name="create_confirm_pwd" class="required"
89 equalTo="input[name=create_admin_pwd]"/></td>
92 <td colspan="2" align="right"><button class="oe_button">Create</button></td>
98 <form name="drop_db_form" class="oe_forms" method="POST">
101 <td class="option_string">
106 <table align="center" class="db_option_table">
108 <td><label for="drop_db">Database:</label></td>
110 <select t-if="db_list" name="drop_db" autofocus="autofocus">
111 <t t-foreach="db_list" t-as="db">
112 <option t-att-value="db"><t t-esc="db"/></option>
115 <input t-if="!db_list" name="drop_db" class="required"
116 type="text" autofocus="autofocus"/>
120 <td><label for="drop_password">Master Password:</label></td>
121 <td><input type="password" name="drop_pwd" class="required"/></td>
124 <td colspan="2" align="right"><button class="oe_button">Drop</button></td>
129 <t t-name="BackupDB">
130 <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
131 action="/web/database/backup">
132 <input type="hidden" name="token"/>
135 <td class="option_string">
140 <table align="center" class="db_option_table">
142 <td><label for="backup_db">Database:</label></td>
144 <select t-if="db_list" name="backup_db" autofocus="autofocus">
145 <t t-foreach="db_list" t-as="db">
146 <option t-att-value="db"><t t-esc="db"/></option>
149 <input t-if="!db_list" name="backup_db" class="required"
150 type="text" autofocus="autofocus"/>
154 <td><label for="backup_pwd">Master Password:</label></td>
155 <td><input type="password" name="backup_pwd" class="required"/></td>
158 <td colspan="2" align="right"><button class="oe_button">Backup</button></td>
163 <t t-name="RestoreDB">
164 <form name="restore_db_form" class="oe_forms" method="POST">
167 <td class="option_string">
172 <table align="center" class="db_option_table">
174 <td><label for="restore_db">File:</label></td>
175 <td><input type="file" name="db_file" class="required"
176 autofocus="autofocus"/></td>
179 <td><label for="restore_pwd">Master Password:</label></td>
180 <td><input type="password" name="restore_pwd" class="required"/></td>
183 <td><label for="new_db">New database name:</label></td>
184 <td><input type="text" name="new_db" class="required"/></td>
187 <td colspan="2" align="right"><button class="oe_button">Restore</button></td>
192 <t t-name="Change_DB_Pwd">
193 <form name="change_pwd_form" class="oe_forms" method="POST">
196 <td class="option_string">
197 CHANGE MASTER PASSWORD
201 <table align="center" class="db_option_table">
203 <td><label for="old_pwd">Master password:</label></td>
204 <td><input type="password" name="old_pwd" class="required"
205 minlength="1" autofocus="autofocus"/></td>
208 <td><label for="new_pwd">New master password:</label></td>
209 <td><input type="password" name="new_pwd" class="required"
213 <td><label for="confirm_pwd">Confirm new master password:</label></td>
214 <td><input type="password" name="confirm_pwd" class="required"
215 equalTo="input[name=new_pwd]" minlength="1"/></td>
218 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
224 <t t-name="CrashManagerWarning">
225 <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
227 <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
231 var message = d.message ? d.message : d.error.data.fault_code;
232 d.html_error = context.engine.tools.html_escape(message)
233 .replace(/\n/g, '<br/>');
235 <t t-raw="html_error"/>
241 <t t-name="CrashManagerError">
242 <t t-if="!session.openerp_entreprise">
243 <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>
245 <t t-if="session.openerp_entreprise">
246 <div class="oe_error_send">
248 <div class="oe_centeralign"><b>OpenERP Enterprise Contract.</b></div>
249 <div><br/>Your report will be sent to the OpenERP Enterprise team.<br/></div><br/>
251 <label>Summary:</label><br/>
252 <input id="issuename" type="text" class="oe_fielddiv"/>
255 <label>Description:</label><br/>
256 <textarea id="explanation" rows="6"></textarea>
259 <label>What you did:</label><br/>
260 <textarea id="remark" rows="6" ></textarea>
265 <div class="oe_error_detail">
266 <pre><t t-esc="error.message"/></pre>
268 <pre><t t-esc="error.data.debug"/></pre>
272 <t t-name="Login_dblist">
274 <t t-foreach="db_list" t-as="db">
275 <t t-if="selected_db === db">
276 <option t-att-value="db" selected="true">
277 <t t-esc="db"/></option>
279 <t t-if="selected_db !== db">
280 <option t-att-value="db"><t t-esc="db"/></option>
288 <div class="bottom"> </div>
289 <div class="login_error_message">Invalid username or password</div>
291 <div id="logo"><img src='/web/static/src/img/logo2.png'/></div>
292 <form action="" method="post">
293 <div class="dbpane" >
295 <input name="db" t-att-value="widget.selected_db || ''"/>
299 <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
301 <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
302 <li><button name="submit">Log in</button></li>
306 <a href="#" id="oe-db-config">Manage Databases</a> |
307 <a href="http://www.openerp.com">Powered by <span class="openerp">OpenERP</span></a>
312 <t t-name="DatabaseManager">
313 <div class="oe-database-manager">
314 <div class="database">
315 <a class="company_logo_link" href="/?">
316 <div class="company_logo"></div>
318 <ul class="db_options">
319 <li id="db-create">Create</li>
320 <li id="db-drop">Drop</li>
321 <li id="db-backup">Backup</li>
322 <li id="db-restore">Restore</li>
323 <li id="db-change-password">Password</li>
324 <li id="back-to-login">Back to Login</li>
327 <div id="oe_db_options" class="oe_db_options"></div>
332 <ul class="oe_menu" t-if="widget.data">
333 <li t-foreach="widget.data.data.children" t-as="menu">
334 <t t-call="Menu.secondary.link"/>
338 <t t-name="Menu.more">
339 <li class="oe_menu_more_container">
340 <a href="#" class="oe_menu_more_link oe_dropdown_toggle">More</a>
341 <ul class="oe_menu_more" style="display: none;"/>
344 <t t-name="Menu.secondary">
345 <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
346 <t t-foreach="menu.children" t-as="menu">
347 <div class="oe_secondary_menu_section">
348 <t t-esc="menu.name"/>
350 Shall the section be still clickable ?
351 <t t-call="Menu.secondary.link"/>
354 <t t-call="Menu.secondary.submenu"/>
358 <t t-name="Menu.secondary.submenu">
359 <ul t-if="menu.children.length" class="oe_secondary_submenu">
360 <li t-foreach="menu.children" t-as="menu">
361 <t t-call="Menu.secondary.link"/>
362 <!--<span class="oe_menu_label">8</span>-->
363 <t t-call="Menu.secondary.submenu"/>
367 <t t-name="Menu.secondary.link">
369 t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
370 t-att-data-menu="menu.id"
371 t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
372 t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
373 <t t-esc="menu.name"/>
377 <t t-name="UserMenu">
378 <ul class="oe_user_menu oe_topbar_item">
379 <li class="oe_dropdown">
380 <a href="#" class="oe_dropdown_toggle">
381 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/topbar-avatar.png'"/>
382 <span class="oe_topbar_name"/>
384 <ul class="oe_dropdown_options">
385 <!--<li><a href="#" data-menu="profile">Profile</a></li>-->
386 <li><a href="#" data-menu="settings">Settings</a></li>
387 <li><a href="#" data-menu="logout">Log out</a></li>
389 <li><a href="#" data-menu="about">About OpenERP</a></li>
395 <t t-name="UserMenu.shortcut">
396 <li t-foreach="shortcuts" t-as="shortcut">
397 <a href="#" data-menu="shortcut" t-att-data-id="shortcut.res_id" t-att-data-shortcut-id="shortcut.id">
398 <t t-esc="shortcut.name"/>
403 <t t-name="ViewManager">
404 <table class="view-manager-main-table" cellpadding="0" cellspacing="0">
407 <td class="view-manager-main-content">
408 <div class="oe-view-manager-header">
409 <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
410 <span class="oe_view_title_text"><t t-esc="self.display_title()"/></span>
412 <div class="oe_vm_switch">
413 <t t-if="views.length != 1" t-foreach="views" t-as="view">
415 <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">
416 <span><t t-esc="view.label || view.view_type"/></span>
421 <div t-attf-id="#{prefix}_search" t-opentag="true"/>
422 <t t-foreach="views" t-as="view">
423 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
426 <td class="view-manager-main-sidebar" height="100%">
427 <t t-foreach="views" t-as="view">
428 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
436 <t t-extend="ViewManager" t-name="ViewManagerAction">
437 <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
439 <td class="oe_view_manager_menu_tips" colspan="2">
440 <blockquote t-if="self.action.help and !self.flags.low_profile
441 and !(self.action.id in self.session.hidden_menutips)">
442 <p><t t-esc="self.action.help"/></p>
444 <button type="button" name="hide">Hide this tip</button>
445 <button type="button" name="disable">Disable all tips</button>
451 <t t-jquery="h2.oe_view_title" t-operation="prepend">
452 <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
453 href="javascript: void(0)"> </a>
455 <t t-jquery="h2.oe_view_title" t-operation="after">
456 <select t-if="self.session.debug" class="oe_debug_view"/>
458 <t t-jquery=".oe-view-manager-header" t-operation="after">
459 <div class="oe-view-manager-logs oe-folded">
461 <a class="oe-more-logs" href="#">More…</a>
462 <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
466 <t t-name="ViewManagerDebug">
467 <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
468 <option t-if="_.indexOf(['form', 'page'], view_manager.active_view) gt -1" value="perm_read" data-views="form,page">View Log (perm_read)</option>
469 <option value="fields">View Fields</option>
470 <option value="fvg">Fields View Get</option>
471 <t t-if="view_manager.session.uid === 1">
472 <option value="manage_views">Manage Views</option>
473 <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>
474 <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>
475 <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>
476 <option value="edit_workflow">Edit Workflow</option>
479 <t t-name="ViewManagerDebugViewLog">
480 <div class="oe_debug_view_log">
482 <span><t t-esc="perm.id"/></span>
484 <label>XML ID:</label>
485 <span><t t-esc="perm.xmlid"/></span>
487 <label>Creation User:</label>
488 <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
490 <label>Creation Date:</label>
491 <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
493 <label>Latest Modification by:</label>
494 <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
496 <label>Latest Modification Date:</label>
497 <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
500 <t t-extend="ViewManager" t-name="One2Many.viewmanager">
501 <t t-jquery="span.oe_view_title_text" t-operation="replace"/>
503 <t t-jquery=".oe-view-manager-header">
504 this.attr('t-if', 'views.length != 1');
509 <a class="toggle-sidebar"></a>
510 <div class="sidebar-content">
511 <div class="sidebar-actions">
515 <t t-name="Sidebar.section">
516 <div t-att-id="section_id" t-att-class="classname">
517 <h2><t t-esc="name"/></h2>
520 <t t-name="Sidebar.section.items">
521 <li t-foreach="items" t-as="item" t-att-class="item.classname">
522 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
523 <t t-esc="item.label"/>
528 <t t-name="TranslateDialog">
529 <table t-if="widget.view.translatable_fields" class="oe_form oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
531 <td class="oe_form_separator" width="1%" nowrap="nowrap">
532 <div class="oe_horizontal_separator">Field</div>
534 <th t-foreach="widget.languages" align="left">
535 <div class="oe_horizontal_separator"><t t-esc="name"/></div>
538 <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
539 <td class="oe_form_group_cell" width="1%" nowrap="nowrap">
540 <label class="oe_label"><t t-esc="field.node.attrs.string"/>:</label>
542 <td t-foreach="widget.languages" t-as="lg" class="oe_form_group_cell">
543 <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%"/>
544 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
549 <t t-name="TreeView">
550 <select t-if="toolbar" style="width: 30%">
552 <table class="oe-treeview-table">
555 <th t-foreach="fields_view" t-as="field"
556 t-if="!field.attrs.modifiers.tree_invisible"
557 class="treeview-header">
558 <t t-esc="fields[field.attrs.name].string" />
566 <tr t-name="TreeView.rows"
567 t-foreach="records" t-as="record"
568 t-att-id="'treerow_' + record.id"
569 t-att-data-id="record.id" t-att-data-level="level + 1">
570 <t t-set="children" t-value="record[children_field]"/>
571 <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
572 <t t-set="rank" t-value="'oe-treeview-first'"/>
573 <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
575 <td t-foreach="fields_view" t-as="field"
576 t-if="!field.attrs.modifiers.tree_invisible"
577 t-att-data-id="record.id"
578 t-att-style="color_for(record) + style "
579 t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}">
581 <span t-if="!field.attrs.modifiers.invisible" >
582 <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
585 <t t-set="class" t-value="'treeview-td'"/>
586 <t t-set="rank" t-value="''"/>
587 <t t-set="style" t-value="''"/>
591 <t t-name="ViewPager">
592 <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
593 <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
595 <button class="oe_button oe_button_pager" type="button" data-pager-action="previous">
596 <img t-att-src='_s + "/web/static/src/img/pager_previous.png"'/>
599 <t t-raw="__content__"/>
601 <button class="oe_button oe_button_pager" type="button" data-pager-action="next">
602 <img t-att-src='_s + "/web/static/src/img/pager_next.png"'/>
604 <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
605 <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
609 <table t-name="ListView" class="oe-listview-content">
610 <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
611 <thead class="ui-widget-header">
612 <tr t-if="options.action_buttons !== false or options.pager !== false">
613 <th t-att-colspan="columns_count">
616 <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
617 <button type="button" class="oe_button oe-list-add"
618 t-if="options.addable">
619 <t t-esc="options.addable"/>
621 <button type="button" class="oe_button oe-list-delete"
622 t-if="options.selectable and options.deletable">
626 <t t-call="Listview.navigation.button"/>
631 <tr t-if="options.header" class="oe-listview-header-columns">
632 <t t-foreach="columns" t-as="column">
633 <th t-if="column.meta">
634 <t t-esc="column.string"/>
637 <th t-if="options.selectable" width="1" >
638 <input type="checkbox" class="all-record-selector"/> </th>
639 <th t-if="options.isClarkGable" width="1"> </th>
640 <t t-foreach="columns" t-as="column">
641 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
642 t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
643 <t t-if="column.tag !== 'button'"
644 ><t t-esc="column.string"/></t>
647 <th t-if="options.deletable" width="1"/>
650 <tfoot class="ui-widget-header">
652 <td t-if="options.selectable"/>
653 <td t-if="options.isClarkGable"/>
654 <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
655 t-att-data-field="column.id" t-att-title="column.label">
657 <td t-if="options.deletable"/>
660 <t t-call="Listview.navigation.button"/>
664 <t t-extend="ListView" t-name="One2Many.listview">
665 <t t-jquery="thead.ui-widget-header > tr:first">
666 this.removeAttr('t-if');
669 <t t-jquery="tfoot > tr:last-child" t-operation="replace"/>
671 <t t-jquery="td.oe-actions">
672 this.removeAttr('t-if');
674 <t t-jquery="td.oe-actions" t-operation="prepend">
675 <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
678 <th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
679 class="oe-list-pager" t-att-colspan="columns_count">
680 <t t-call="ViewPager">
681 <span class="oe-pager-state">
685 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
686 <t t-call="ListView.row">
687 <t t-set="record" t-value="records.at(index)"/>
688 <t t-set="row_parity" t-value="index_parity"/>
691 <tr t-name="ListView.row" t-att-class="row_parity"
692 t-att-data-id="record.get('id')"
693 t-att-style="view.color_for(record)">
694 <t t-foreach="columns" t-as="column">
695 <td t-if="column.meta">
699 <th t-if="options.selectable" class="oe-record-selector" width="1">
700 <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
701 <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
702 <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
704 <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
705 <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
707 <t t-foreach="columns" t-as="column">
708 <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
709 <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
710 t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
711 + (column.tag === 'button' ? ' oe-button' : '')"
712 t-att-data-field="column.id">
713 <t t-raw="render_cell(record, column)"/>
716 <td t-if="options.deletable" class='oe-record-delete' width="1">
717 <button type="button" name="delete"></button>
721 <t t-name="FormView">
722 <div class="oe_formview">
723 <div class="oe_form_header">
724 <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
725 <button type="button" class="oe_button oe_form_button_save">Save</button>
726 <button type="button" class="oe_button oe_form_button_cancel">Cancel</button>
728 <div class="oe_form_pager" t-if="widget.options.pager !== false">
729 <t t-call="ViewPager">
730 <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
734 <div style="clear: both;"/>
735 <div class="oe_form_container"/>
738 <t t-name="One2Many.formview" t-extend="FormView">
739 <t t-jquery=".oe_form_buttons" t-operation="inner">
740 <button type="button" class="oe_button oe_form_button_create">Add</button>
743 <t t-name="PageView" t-extend="FormView">
744 <t t-jquery=".oe_form_buttons" t-operation="inner">
745 <button type="button" class="oe_button oe_form_button_edit">Edit</button>
746 <button type="button" class="oe_button oe_form_button_create">Create</button>
747 <button type="button" class="oe_button oe_form_button_duplicate">Duplicate</button>
748 <button type="button" class="oe_button oe_form_button_delete">Delete</button>
751 <t t-name="FormView.sidebar.attachments">
752 <div class="oe-sidebar-attachments-toolbar">
753 <div class="oe-binary-file-set" style="float: right">
754 <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
755 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
756 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
757 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
758 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
759 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
760 <button class="oe_button" type="button">
761 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16" style="display: none"/>
764 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
765 t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
767 <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"/>
770 <br style="clear: both"/>
771 <ul class="oe-sidebar-attachments-items">
772 <li t-foreach="attachments" t-as="attachment">
773 <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="_s + '/web/binary/saveas?session_id='
774 + session.session_id + '&model=ir.attachment&id=' + attachment.id
775 + '&field=datas&filename_field=name&t=' + (new Date().getTime())"/>
776 <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
777 <t t-esc="attachment.name"/>
779 <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
780 <img t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
785 <form t-name="FormView.set_default" class="oe_forms oe_frame">
786 <t t-set="args" t-value="widget.dialog_options.args"/>
787 <table style="width: 100%">
790 <label for="formview_default_fields"
791 class="oe_label oe_align_right">
795 <td class="oe_form_required">
796 <select id="formview_default_fields">
798 <option t-foreach="args.fields" t-as="field"
799 t-att-value="field.name">
800 <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
805 <tr t-if="args.conditions.length">
807 <label for="formview_default_conditions"
808 class="oe_label oe_align_right">
813 <select id="formview_default_conditions">
815 <option t-foreach="args.conditions" t-as="cond"
816 t-att-value="cond.name + '=' + cond.value">
817 <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
824 <input type="radio" id="formview_default_self"
825 value="self" name="scope" checked="checked"/>
826 <label for="formview_default_self" class="oe_label"
827 style="display: inline;">
831 <input type="radio" id="formview_default_all"
832 value="all" name="scope"/>
833 <label for="formview_default_all" class="oe_label"
834 style="display: inline;">
842 <t t-name="FormRenderingForm">
843 <div class="oe_form_form">
844 <group t-if="legacy_mode" col="4"/>
847 <t t-name="FormRenderingGroup">
849 <table border="0" cellpadding="0" cellspacing="0" width="100%"/>
852 <fieldset class="oe_group_box">
853 <legend><t t-esc="string"/></legend>
861 <t t-name="FormRenderingNotebook">
862 <div class="oe_form_notebook">
864 <li t-foreach="pages" t-as="page">
865 <a t-attf-href="##{page.id}">
866 <t t-esc="page.string"/>
872 <t t-name="FormRenderingNotebookPage">
873 <div class="oe_form_notebook_page" t-att-id="id">
874 <group t-if="legacy_mode" col="4"/>
877 <t t-name="FormRenderingSeparator">
878 <div class="oe_horizontal_separator">
882 <t t-name="FormRenderingLabel">
883 <label t-att-for="_for"
885 t-attf-class="oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
887 <span t-if="help">?</span>
894 <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
896 <t t-name="WidgetLabel.tooltip">
897 <div class="oe_tooltip_string" t-if="widget.string">
898 <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
900 <p t-if="widget.help" class="oe_tooltip_help"><t t-esc="widget.help"/></p>
901 <ul t-if="debug" class="oe_tooltip_technical">
902 <li data-item="field" t-if="widget.name">
903 <span class="oe_tooltip_technical_title">Field:</span>
904 <t t-esc="widget.name"/>
906 <li data-item="object" t-if="widget.view and widget.view.fields_view">
907 <span class="oe_tooltip_technical_title">Object:</span>
908 <t t-esc="widget.view.fields_view.model"/>
910 <li data-item="type" t-if="widget.field">
911 <span class="oe_tooltip_technical_title">Type:</span>
912 <t t-esc="widget.field.type"/>
914 <li t-if="widget.node.attrs.widget" data-item="widget">
915 <span class="oe_tooltip_technical_title">Widget:</span>
916 <t t-esc="widget.node.attrs.widget"/>
918 <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
919 <span class="oe_tooltip_technical_title">Size:</span>
920 <t t-esc="widget.node.attrs.size || widget.field.size"/>
922 <li t-if="widget.node.attrs.context" data-item="context">
923 <span class="oe_tooltip_technical_title">Context:</span>
924 <t t-esc="widget.node.attrs.context_string"/>
926 <li t-if="widget.node.attrs.domain" data-item="domain">
927 <span class="oe_tooltip_technical_title">Domain:</span>
928 <t t-esc="widget.node.attrs.domain_string"/>
930 <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
931 <span class="oe_tooltip_technical_title">Modifiers:</span>
932 <t t-esc="widget.node.attrs.modifiers"/>
934 <li t-if="widget.field and widget.field.change_default" data-item="change_default">
935 <span class="oe_tooltip_technical_title">Change default:</span>
938 <li t-if="widget.node.attrs.on_change" data-item="on_change">
939 <span class="oe_tooltip_technical_title">On change:</span>
940 <t t-esc="widget.node.attrs.on_change"/>
942 <li t-if="widget.field and widget.field.relation" data-item="relation">
943 <span class="oe_tooltip_technical_title">Relation:</span>
944 <t t-esc="widget.field.relation"/>
946 <li t-if="widget.field and widget.field.selection" data-item="selection">
947 <span class="oe_tooltip_technical_title">Selection:</span>
949 <li t-foreach="widget.field.selection" t-as="option">
950 [<t t-esc="option[0]"/>]
951 <t t-if="option[1]"> - </t>
952 <t t-esc="option[1]"/>
958 <t t-name="FieldChar">
959 <t t-if="!widget.get('effective_readonly')">
960 <div t-attf-class="oe_form_field_#{widget.type}">
961 <input t-att-type="widget.password ? 'password' : 'text'"
962 t-att-id="widget.id_for_label"
963 t-att-tabindex="widget.node.attrs.tabindex"
964 t-att-autofocus="widget.node.attrs.autofocus"
965 t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
966 /><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"/>
969 <t t-if="widget.get('effective_readonly')">
970 <div t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
974 <t t-name="FieldEmail">
975 <t t-if="!widget.get('effective_readonly')">
976 <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0">
980 t-att-id="widget.id_for_label"
981 t-att-tabindex="widget.node.attrs.tabindex"
982 t-att-autofocus="widget.node.attrs.autofocus"
986 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Send an e-mail with your default e-mail client">
987 <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/>
993 <t t-if="widget.get('effective_readonly')">
995 <a href="#" class="oe_form_uri"/>
999 <t t-name="FieldUrl">
1000 <t t-if="!widget.get('effective_readonly')">
1001 <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0">
1005 t-att-id="widget.id_for_label"
1006 t-att-tabindex="widget.node.attrs.tabindex"
1007 t-att-autofocus="widget.node.attrs.autofocus"
1011 <button class="oe_button oe_field_button" tabindex="-1" type="button" title="Open this resource">
1012 <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.png"'/>
1018 <t t-if="widget.get('effective_readonly')">
1020 <a href="#" class="oe_form_uri"/>
1024 <t t-name="FieldText">
1025 <t t-if="!widget.get('effective_readonly')">
1026 <div t-attf-class="oe_form_field_#{widget.type}">
1028 t-att-name="widget.name"
1029 t-attf-class="field_#{widget.type}"
1030 t-att-tabindex="widget.node.attrs.tabindex"
1031 t-att-autofocus="widget.node.attrs.autofocus"
1032 ></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"/>
1036 <t t-name="web.datetimepicker">
1037 <div class="oe_datepicker_root" t-attf-class="oe_form_field_#{widget.type}">
1038 <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
1040 t-att-name="widget.name"
1041 t-attf-class="oe_datepicker_master field_#{widget.type_of_date}"
1042 /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
1043 title="Select date" width="16" height="16" border="0"/>
1046 <t t-name="FieldSelection">
1047 <t t-if="!widget.get('effective_readonly')">
1048 <div t-attf-class="oe_form_field_#{widget.type}">
1050 t-att-name="widget.name"
1051 t-att-tabindex="widget.node.attrs.tabindex"
1052 t-att-autofocus="widget.node.attrs.autofocus"
1053 t-att-id="widget.id_for_label">
1054 <t t-foreach="widget.values" t-as="option">
1055 <option><t t-esc="option[1]"/></option>
1060 <t t-if="widget.get('effective_readonly')">
1061 <div t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
1065 <t t-name="FieldMany2One">
1066 <t t-if="!widget.get('effective_readonly')">
1067 <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0">
1071 t-att-id="widget.id_for_label"
1072 t-att-tabindex="widget.node.attrs.tabindex"
1073 t-att-autofocus="widget.node.attrs.autofocus"
1075 <span class="oe-m2o-drop-down-button">
1076 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1079 <button class="oe_button oe_field_button oe-m2o-cm-button" t-att-id="widget.name + '_open'">
1080 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY_MENU.png"'/>
1082 <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
1088 <t t-if="widget.get('effective_readonly')">
1090 <a href="#" class="oe_form_uri"/>
1094 <t t-name="FieldMany2One.context_menu">
1096 <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
1097 <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
1098 <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
1099 <t t-set="i" t-value="0"/>
1100 <t t-foreach="widget.related_entries" t-as="entry">
1101 <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
1102 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
1104 <t t-set="i" t-value="i+1"/>
1108 <t t-name="FieldReference">
1109 <t t-if="!widget.get('effective_readonly')">
1110 <table t-attf-class="oe_form_field_#{widget.type}" border="0" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
1112 <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection">
1114 <td t-attf-class="oe_form_frame_cell oe_form_many2one oe_form_view_reference_m2o" nowrap="true" style="display: none">
1119 <t t-if="widget.get('effective_readonly')">
1120 <a href="#" class="oe_form_uri"/>
1123 <t t-name="FieldBoolean">
1124 <span t-attf-class="oe_form_field_#{widget.type}">
1125 <input type="checkbox"
1126 t-att-id="widget.id_for_label"
1127 t-att-name="widget.name"
1128 t-att-tabindex="widget.node.attrs.tabindex"
1129 t-att-autofocus="widget.node.attrs.autofocus"
1130 t-attf-class="field_#{widget.type}"/>
1133 <t t-name="FieldProgressBar">
1134 <div t-attf-class="oe_form_field_#{widget.type}" t-opentag="true">
1138 <t t-name="FieldStatus.content">
1139 <ul class="oe_form_steps">
1140 <t t-set="size" t-value="widget.to_show.length"/>
1141 <t t-foreach="_.range(size)" t-as="i">
1142 <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : ''">
1143 <t t-esc="widget.to_show[i][1]"/>
1144 <img t-att-src='_s + "/web/static/src/img/form_steps.png"' class="oe_form_steps_arrow" t-if="i < size - 1"/>
1149 <t t-name="FieldBinaryImage">
1150 <table cellpadding="0" cellspacing="0" border="0" width="100%">
1152 <td class="oe_form_field-binary-image-placeholder" align="center">
1157 <td align="center" valign="bottom" height="25">
1158 <div class="oe-binary">
1159 <table cellspacing="0" cellpadding="0" border="0">
1162 <div class="oe-binary-file-set" style="width: 40px; height:22px;">
1163 <form class="oe-binary-form" t-att-target="widget.iframe"
1164 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1165 <input type="hidden" name="session_id" value=""/>
1166 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1167 <button class="oe_button" type="button" title="Set Image">
1168 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1170 <input type="file" class="oe-binary-file" name="ufile"
1171 t-att-tabindex="widget.node.attrs.tabindex"
1172 t-att-autofocus="widget.node.attrs.autofocus"
1178 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1179 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1185 <div class="oe-binary-progress" style="display: none">
1186 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1187 <b>Uploading ...</b>
1189 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1194 <t t-name="FieldBinaryImage-img">
1195 <img t-att-src='url' class="oe-binary-image"
1196 t-att-border="widget.readonly ? 0 : 1"
1197 t-att-name="widget.name"
1198 t-attf-class="field_#{widget.type}"
1199 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1200 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1201 t-att-style="'max-width: ' + (widget.$element.width() > 60 ? widget.$element.width() : 60) + 'px'"
1204 <t t-name="FieldBinaryFile">
1205 <t t-if="!widget.get('effective_readonly')">
1206 <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0">
1209 <input type="text" size="1" readonly="readonly"
1210 t-att-name="widget.name"
1211 t-att-tabindex="widget.node.attrs.tabindex"
1212 t-att-autofocus="widget.node.attrs.autofocus"
1213 t-attf-class="field_#{widget.type}"
1216 <td class="oe-binary" nowrap="true">
1217 <table cellspacing="0" cellpadding="0" border="0">
1220 <div class="oe-binary-file-set" style="width: 80px; height:22px;">
1221 <form class="oe-binary-form" t-att-target="widget.iframe"
1222 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1223 <input type="hidden" name="session_id" value=""/>
1224 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1225 <button class="oe_button oe_field_button" type="button" title="Set Image">
1226 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1229 <input type="file" class="oe-binary-file" name="ufile"/>
1234 <button class="oe_button oe-binary-file-save" type="button" title="Save As">
1235 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1236 <span>Save As</span>
1240 <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1241 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1248 <td class="oe-binary-progress" style="display: none" nowrap="true">
1249 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1250 <b>Uploading ...</b>
1251 <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"/>
1256 <t t-if="widget.get('effective_readonly')">
1258 <a href="javascript:void(0)" class="oe_form_uri"/>
1262 <t t-name="WidgetButton">
1263 <button type="button" class="oe_button oe_form_button"
1264 t-att-tabindex="widget.node.attrs.tabindex"
1265 t-att-autofocus="widget.node.attrs.autofocus">
1266 <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"/>
1267 <span t-if="widget.string"><t t-esc="widget.string"/></span>
1270 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1271 <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1272 <div class="oe_tooltip_string" t-if="debug || widget.string">
1275 <t t-if="widget.string">: </t>
1276 <t t-if="!widget.string"> (no string)</t>
1278 <t t-esc="widget.string"/>
1281 <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1282 <li t-if="widget.node.attrs.special" data-item="special">
1283 <span class="oe_tooltip_technical_title">Special:</span>
1284 <t t-esc="widget.node.attrs.special"/>
1286 <t t-set="button_type" t-value="widget.node.attrs.type"/>
1287 <li t-if="button_type" data-item="button_type">
1288 <span class="oe_tooltip_technical_title">Button Type:</span>
1289 <t t-esc="button_type"/>
1291 <li t-if="button_type === 'object'" data-item="button_method">
1292 <span class="oe_tooltip_technical_title">Method:</span>
1293 <t t-esc="widget.node.attrs.name"/>
1295 <li t-if="button_type === 'action'" data-item="button_action">
1296 <span class="oe_tooltip_technical_title">Action ID:</span>
1297 <t t-esc="widget.node.attrs.name"/>
1302 <t t-name="SearchView">
1303 <form class="oe_forms">
1304 <t t-call="SearchView.render_lines"/>
1305 <div class="oe_search-view-buttons">
1306 <button class="oe_button">Search</button>
1307 <button class="oe_button" type="reset">Clear</button>
1308 <select class="oe_search-view-filters-management">
1313 <t t-name="SearchView.managed-filters">
1314 <option class="oe-filters-title" value="">Filters</option>
1315 <optgroup label="-- Filters --">
1316 <t t-foreach="filters" t-as="filter">
1317 <option t-attf-value="get:#{filter_index}"
1318 t-att-disabled="filter.disabled and 'disabled'"
1319 t-att-title="filter.disabled and disabled_filter_message">
1320 <t t-esc="filter.name"/>
1324 <optgroup label="-- Actions --">
1325 <option value="advanced_filter">Add Advanced Filter</option>
1326 <option value="save_filter">Save Filter</option>
1327 <option value="add_to_dashboard">Add to Dashboard</option>
1328 <option value="manage_filters">Manage Filters</option>
1331 <t t-name="SearchView.managed-filters.add">
1334 <input type="text"/>
1335 <p>(Any existing filter with the same name will be replaced)</p>
1338 <t t-name="SearchView.add_to_dashboard">
1339 <div class="oe_forms">
1340 <p><b>Select Dashboard to add this filter to:</b></p>
1341 <select style="width: 100%; margin-right: 1em;">
1342 <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>
1344 <p><b>Title of new Dashboard item:</b></p>
1345 <input type="text" style="width: 100%; margin-right: 1em;"/>
1348 <t t-name="SearchView.render_lines">
1349 <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1350 t-foreach="lines" t-as="line">
1352 <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1353 <t t-raw="widget.render(defaults)"/>
1358 <button t-name="SearchView.filter" type="button"
1359 t-att-id="element_id"
1360 t-att-title="attrs.help"
1361 t-att-class="classes.join(' ')"
1363 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1364 <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1365 <br t-if="attrs.string"/>
1366 <t t-esc="attrs.string"/>
1368 <span t-name="SearchView.filters" class="filter_label_group"
1369 ><t t-foreach="filters" t-as="filter"
1370 ><t t-raw="filter.render(defaults)"/></t
1372 <t t-name="SearchView.field">
1373 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1374 t-att-title="attrs.help"
1375 t-att-for="element_id"
1376 t-att-style="style">
1377 <t t-esc="attrs.string || attrs.name"/>
1378 <span t-if="attrs.help">?</span>
1380 <div t-att-style="style">
1381 <input type="text" size="15" t-att-name="attrs.name"
1382 t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1383 t-att-id="element_id"
1384 t-att-value="defaults[attrs.name] || ''"/>
1385 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1388 <t t-name="SearchView.date">
1389 <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1390 t-att-title="attrs.help"
1391 t-att-for="element_id"
1392 t-att-style="style">
1393 <t t-esc="attrs.string || attrs.name"/>
1394 <span t-if="attrs.help">?</span>
1396 <div t-att-style="style">
1397 <span t-att-id="element_id"/>
1398 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1401 <t t-name="SearchView.field.selection">
1402 <label t-att-title="attrs.help"
1403 t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1404 t-att-for="element_id"
1405 t-att-style="style">
1406 <t t-esc="attrs.string || attrs.name"/>
1407 <span t-if="attrs.help">?</span>
1409 <div t-att-style="style">
1410 <select t-att-name="attrs.name" t-att-id="element_id"
1411 t-att-autofocus="attrs.default_focus === '1' || undefined">
1412 <option t-if="prepend_empty"/>
1413 <t t-foreach="attrs.selection" t-as="option">
1414 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1415 <option t-if="selected"
1416 t-attf-selected="selected"
1417 t-att-value="option_index">
1418 <t t-esc="option[1]"/>
1420 <option t-if="!selected" t-att-value="option_index">
1421 <t t-esc="option[1]"/>
1425 <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1428 <t t-name="SearchView.util.expand">
1429 <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1430 t-att-id="element_id">
1431 <a t-if="label" class="searchview_group_string" href="#">
1434 <div class="searchview_group_content">
1435 <t t-raw="content"/>
1439 <t t-name="SearchView.group">
1440 <t t-call="SearchView.util.expand">
1441 <t t-set="expand" t-value="attrs.expand"/>
1442 <t t-set="label" t-value="attrs.string"/>
1444 <t t-call="SearchView.render_lines"/>
1448 <t t-name="SearchView.extended_search">
1449 <t t-call="SearchView.util.expand">
1450 <t t-set="expand" t-value="false"/>
1451 <t t-set="label">Advanced Filters</t>
1453 <div class="searchview_extended_groups_list">
1458 <t t-name="SearchView.extended_search.group">
1459 <div t-att-id="widget.element_id" class="searchview_extended_group">
1460 <select class="searchview_extended_group_choice">
1461 <option value="any">Any of the following conditions must match</option>
1462 <option value="all">All the following conditions must match</option>
1463 <option value="none">None of the following conditions must match</option>
1465 <a class="searchview_extended_delete_group"
1466 href="javascript:void(0)"><span></span></a>
1467 <div class="searchview_extended_propositions_list">
1469 <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1470 <span>Add condition</span></a>
1471 <div class="oe_adv_filters_and"><span>and</span></div>
1474 <t t-name="SearchView.extended_search.proposition">
1475 <div t-att-id="widget.element_id">
1476 <select class="searchview_extended_prop_field">
1477 <t t-foreach="widget.attrs.fields" t-as="field">
1478 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1479 t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1480 t-att-value="field.name">
1481 <t t-esc="field.string"/>
1485 <select class="searchview_extended_prop_op"/>
1486 <span class="searchview_extended_prop_value"/>
1487 <a class="searchview_extended_delete_prop"
1488 href="javascript:void(0)"><span> </span></a>
1491 <t t-name="SearchView.extended_search.proposition.char">
1492 <input t-att-id="widget.element_id" class="field_char"/>
1494 <t t-name="SearchView.extended_search.proposition.empty">
1495 <span t-att-id="widget.element_id"></span>
1497 <t t-name="SearchView.extended_search.proposition.integer">
1498 <input type="number" t-att-id="widget.element_id" class="field_integer" step="1"/>
1500 <t t-name="SearchView.extended_search.proposition.float">
1501 <input type="number" t-att-id="widget.element_id" class="field_float" step="0.01"/>
1503 <t t-name="SearchView.extended_search.proposition.boolean">
1505 <t t-name="SearchView.extended_search.proposition.selection">
1506 <select t-att-id="widget.element_id">
1507 <t t-foreach="widget.field.selection" t-as="element">
1508 <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1512 <t t-name="SelectCreatePopup">
1514 <table style="width:100%">
1515 <tr style="width:100%">
1516 <td style="width:100%">
1517 <div class="oe-select-create-popup-view-search" style="width:100%"></div>
1520 <tr style="width:100%">
1521 <td style="width:100%">
1522 <div class="oe-select-create-popup-view-list" style="width:100%"></div>
1526 <div class="oe-select-create-popup-view-form" style="width:100%"></div>
1529 <t t-name="SelectCreatePopup.search.buttons">
1530 <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1531 <button type="button" class="oe_button oe_selectcreatepopup-search-close">Cancel</button>
1533 <t t-name="SelectCreatePopup.form.buttons">
1534 <t t-if="widget.options.disable_multiple_selection">
1535 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save</button>
1537 <t t-if="! widget.options.disable_multiple_selection">
1538 <button type="button" class="oe_button oe_selectcreatepopup-form-save-new">Save & New</button>
1539 <button type="button" class="oe_button oe_selectcreatepopup-form-save">Save & Close</button>
1541 <button type="button" class="oe_button oe_selectcreatepopup-form-close">Cancel</button>
1543 <t t-name="FormOpenPopup">
1545 <div class="oe-form-open-popup-form-view" style="width:100%"></div>
1548 <t t-name="FormOpenPopup.form.buttons">
1549 <button type="button" class="oe_button oe_formopenpopup-form-save">Save</button>
1550 <button type="button" class="oe_button oe_formopenpopup-form-close">Cancel</button>
1552 <t t-extend="ListView.row">
1553 <!-- adds back padding to row being rendered after edition, if necessary
1554 (if not deletable add back padding), otherwise the row being added is
1557 <t t-jquery="> :last" t-operation="after">
1558 <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1561 <t t-name="view_editor">
1562 <table class="oe_view_editor">
1563 <t t-call="view_editor.row"/>
1566 <t t-name="view_editor.row">
1567 <tr t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
1569 <table class="oe_view_editor_field">
1571 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1572 <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1573 src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1575 <td style="cursor: pointer;">
1576 <a style="text-decoration:none" href="javascript:void(0);">
1577 <t t-esc="rec.name"/>
1584 <img t-if="rec.att_list.length"
1585 id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1588 <img id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1591 <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1592 id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1595 <img t-if="rec.att_list.length"
1596 id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1599 <img t-if="rec.att_list.length"
1600 id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1602 <t t-if="rec.child_id.length">
1603 <t t-set="data" t-value="rec.child_id"/>
1604 <t t-call="view_editor.row"/>
1608 <t t-name="vieweditor_char">
1609 <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1611 <t t-name="vieweditor_selection">
1612 <select t-att-id="widget.name" >
1613 <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1615 t-att-value="typeof option === 'object' ? option[0] : option">
1616 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1621 <t t-name="vieweditor_boolean">
1622 <input type="checkbox" t-att-id="widget.name"/>
1624 <t t-name="ExportView">
1625 <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1627 <table t-name="ExportTreeView" class="oe-export"
1628 style="background-color: #F3F3F3;">
1631 This wizard will export all data that matches the current search criteria to a CSV file.
1632 You can export all data or only the fields that can be reimported after modification.
1637 <label for="import_compat">Export Type:</label>
1638 <select id="import_compat" name="import_compat">
1639 <option value="yes">Import Compatible Export</option>
1640 <option value="">Export all Data</option>
1643 <label for="export_format">Export Formats</label>
1644 <select id="export_format" name="export_format"></select>
1649 <th>Available fields</th>
1653 <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1654 <div id="savenewlist"></div>
1655 <div id="ExistsExportList"></div>
1658 <tr style="height: 400px;">
1659 <td class="oe_export_fields_selector_left">
1660 <div id="left_field_panel">
1663 <td class="oe_export_fields_selector_center">
1664 <!-- TODO: replace ids by 'oe_*' classes -->
1665 <button class="oe_button" id="add_field">Add</button>
1666 <button class="oe_button" id="remove_field">Remove</button>
1667 <button class="oe_button" id="remove_all_field">Remove All</button>
1669 <td class="oe_export_fields_selector_right">
1670 <select name="fields_list" id="fields_list"
1671 multiple="multiple"></select>
1676 <table t-name="ExportTreeView-Secondary"
1677 id="field-tree-structure" class="oe_export_fields_selector_export"
1678 cellspacing="0" cellpadding="0">
1679 <tr><th class="oe_export_tree_header"> Name </th></tr>
1680 <t t-call="ExportTreeView-Secondary.children"/>
1682 <tr t-name="ExportTreeView-Secondary.children"
1683 t-foreach="fields" t-as="field"
1684 t-att-id="'treerow-' + field.id" class="oe_export_row">
1686 <table class="tree_grid" border="0">
1687 <tr class="oe_export_row">
1688 <t t-foreach="(field.id).split('/')" t-as="level" >
1689 <t t-if="(field.id).split('/')[0] != level">
1690 <td width="18" t-translation="off">&nbsp;</td>
1693 <td valign="top" align="left" style="cursor: pointer;" width="18">
1694 <t t-if="field.children">
1695 <t t-if="(field.id).split('/').length != 3">
1696 <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1700 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1701 <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1702 <t t-esc="field.string"/>
1710 <t t-name="ExportNewList">
1712 <th><label>Save as:</label></th>
1713 <td><input size="10" type="text" id="savelist_name"/></td>
1714 <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1718 <t t-name="Exists.ExportList">
1719 <label for="saved_export_list">Saved exports:</label>
1721 <select id="saved_export_list">
1723 <t t-foreach="existing_exports" t-as="export">
1724 <option t-att-value="export.id"><t t-esc="export.name"/></option>
1727 <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1729 <t t-name="Change_Pwd">
1730 <form name="change_password_form" class="oe_forms" method="POST">
1731 <table align="center">
1733 <td><label for="old_pwd">Old Password:</label></td>
1734 <td><input type="password" name="old_pwd"
1735 minlength="1" autofocus="autofocus"/></td>
1738 <td><label for="new_password">New Password:</label></td>
1739 <td><input type="password" name="new_password"
1740 minlength="1" autofocus="autofocus"/></td>
1743 <td><label for="confirm_pwd">Confirm Password:</label></td>
1744 <td><input type="password" name="confirm_pwd"
1745 minlength="1"/></td>
1748 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
1754 <t t-name="ImportView">
1755 <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1757 <t t-name="ImportDataView">
1758 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1759 class="oe-import oe-import-no-result">
1760 <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
1761 <h2 class="separator horizontal">1. Import a .CSV file</h2>
1762 <p>Select a .CSV file to import. If you need a sample of file to import,
1763 you should use the export tool with the "Import Compatible" option.
1766 <label for="csvfile">CSV File:</label>
1767 <input type="file" id="csvfile" size="50" name="csvfile"/>
1769 <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1770 <div id="result" class="oe-import-result"></div>
1771 <fieldset class="oe-closed oe-import-result">
1772 <legend>Import Options</legend>
1776 <label for="file_has_headers">Does your file have titles?</label>
1777 <input type="checkbox" checked="checked"
1778 id="file_has_headers"/>
1782 <td><label for="csv_separator">Separator:</label></td>
1783 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1784 <td><label for="csv_delimiter">Delimiter:</label></td>
1785 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1788 <td><label for="csv_encoding">Encoding:</label></td>
1790 <select name="csvcode" id="csv_encoding">
1791 <option value="utf-8">UTF-8</option>
1792 <option value="latin1">Latin 1</option>
1795 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1796 Lines to skip<sup>?</sup>:</label></td>
1797 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1803 <t t-name="ImportView.result">
1804 <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1805 <tr t-if="headers" class="oe_import_grid-header">
1806 <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1807 <t t-esc="header"/></td>
1810 <td t-foreach="records[0]" t-as="column">
1811 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1812 <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1815 <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1816 <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1817 <t t-esc="cell"/></td>
1821 <t t-name="ImportView.error">
1822 <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1823 <t t-if="error.preview">
1824 <p>Here is a preview of the file we could not import:</p>
1825 <pre><t t-esc="error.preview"/></pre>
1829 <t t-name="About-Page">
1831 <a class="oe_activate_debug_mode" href="?debug" style="float:right; font-size: 80%;">Activate the developper mode</a>
1832 <h1 style="margin:0;">OpenERP</h1>
1833 <h3 style="margin:15px 0;padding:0;">Version <t t-esc="version_info.version"/></h3>
1835 Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.<br />
1836 OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1839 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>
1842 For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a>
1846 <t t-name="EmptyComponent">