summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml77
1 files changed, 43 insertions, 34 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 785eb285922..14f60c2dc9a 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -266,7 +266,7 @@
<form class="oe_forms">
<fieldset>
<legend style="">
- <img src="/web/static/src/img/stock_person.png" alt="" />
+ <img t-att-src='_s + "/web/static/src/img/stock_person.png"' alt="" />
</legend>
<div class="oe_box2">
<table align="center" cellspacing="2px" cellpadding="0">
@@ -306,7 +306,7 @@
<tbody>
<tr>
<td>
- <img src="/web/static/src/img/product.png"/>
+ <img t-att-src='_s + "/web/static/src/img/product.png"'/>
</td>
<td>
<strong>Full featured</strong><br />
@@ -315,7 +315,7 @@
</tr>
<tr>
<td>
- <img src="/web/static/src/img/accessories-archiver.png"/>
+ <img t-att-src='_s + "/web/static/src/img/accessories-archiver.png"'/>
</td>
<td>
<strong>Open Source</strong><br />
@@ -324,7 +324,7 @@
</tr>
<tr>
<td>
- <img src="/web/static/src/img/partner.png" />
+ <img t-att-src='_s + "/web/static/src/img/partner.png"' />
</td>
<td>
<strong>User Friendly</strong><br />
@@ -352,13 +352,13 @@
<div class="header_corner">
<ul class="block">
<li>
- <a t-att-href="'/' + widget.qs" title="Home" class="home"><img src="/web/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
+ <a t-att-href="'/' + widget.qs" title="Home" class="home"><img t-att-src='_s + "/web/static/src/img/header-home.png"' width="16" height="16" border="0"/></a>
</li>
<li class="preferences">
- <a href="javascript:void(0)" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
+ <a href="javascript:void(0)" title="Preferences" class="preferences"><img t-att-src='_s + "/web/static/src/img/header-preferences.png"' width="16" height="16" border="0"/></a>
</li>
<li>
- <a href="javascript:void(0)" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
+ <a href="javascript:void(0)" title="About" class="about"><img t-att-src='_s + "/web/static/src/img/header-about.png"' width="16" height="16" border="0"/></a>
</li>
</ul>
<div class="block">
@@ -423,7 +423,10 @@
</h2>
<div class="oe_vm_switch">
<t t-if="views.length != 1" t-foreach="views" t-as="view">
- <button type="button" t-att-data-view-type="view.view_type" t-att-title="view.view_type"></button>
+
+ <button type="button" t-att-data-view-type="view.view_type" t-att-title="view.view_type">
+
+ </button>
</t>
</div>
</div>
@@ -565,7 +568,7 @@
</tr>
<table t-name="ListView" class="oe-listview-content">
- <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
+ <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0) + (options.isClarkGable ? 1 : 0)"/>
<thead class="ui-widget-header">
<tr t-if="options.action_buttons !== false or options.pager !== false">
<th t-att-colspan="columns_count">
@@ -594,6 +597,7 @@
</t>
<th t-if="options.selectable" width="1" >
<input type="checkbox" class="all-record-selector"/> </th>
+ <th t-if="options.isClarkGable" width="1"> </th>
<t t-foreach="columns" t-as="column">
<th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
@@ -607,6 +611,7 @@
<tfoot class="ui-widget-header">
<tr>
<td t-if="options.selectable"/>
+ <td t-if="options.isClarkGable"/>
<td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
t-att-data-field="column.id" t-att-title="column.label">
</td>
@@ -664,6 +669,9 @@
<th t-if="options.selectable" class="oe-record-selector" width="1">
<input t-att-type="options.radio? 'radio': 'checkbox'" name ="radiogroup" t-att-checked="options.select_view_id == record.get('id')? true: null"/>
</th>
+ <th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
+ <img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>
+ </th>
<t t-foreach="columns" t-as="column">
<t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
<td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
@@ -717,7 +725,7 @@
<input type="hidden" name="model" t-att-value="view.dataset.model"/>
<input type="hidden" name="id" t-att-value="view.datarecord.id"/>
<button class="button" type="button">
- <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
+ <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16" style="display: none"/>
<span>Add</span>
</button>
<input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
@@ -729,14 +737,14 @@
<br style="clear: both"/>
<ul class="oe-sidebar-attachments-items">
<li t-foreach="attachments" t-as="attachment">
- <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
+ <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="_s + '/web/binary/saveas?session_id='
+ session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
+ '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
<a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
<t t-esc="attachment.name"/>
</a>
<a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
- <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
+ <img t-att-src='_s + "/web/static/src/img/attachments-close.png"' width="15" height="15" border="0"/>
</a>
</li>
</ul>
@@ -888,7 +896,7 @@
t-att-id="widget.element_id"
t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
style="width: 100%"
- /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
+ /><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"/>
</t>
<t t-name="FieldChar.readonly">
<div
@@ -898,7 +906,7 @@
</t>
<t t-name="FieldURI.readonly">
<div>
- <a href="#">#</a>
+ <a href="#" class="oe_form_uri">#</a>
</div>
</t>
<t t-name="FieldEmail">
@@ -909,7 +917,7 @@
</td>
<td width="16">
<button type="button" class="button" title="Send an e-mail with your default e-mail client">
- <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/>
</button>
</td>
</tr>
@@ -923,7 +931,7 @@
</td>
<td width="16">
<button type="button" class="button" title="Open this resource">
- <img src="/web/static/src/img/icons/gtk-ok.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.png"'/>
</button>
</td>
</tr>
@@ -935,7 +943,7 @@
t-att-id="widget.element_id"
t-attf-class="field_#{widget.type}"
style="width: 100%"
- ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
+ ></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"/>
</t>
<t t-name="web.datetimepicker">
<div class="oe_datepicker_root">
@@ -943,7 +951,7 @@
<input type="text" size="1" style="width: 100%"
t-att-name="widget.name"
t-attf-class="oe_datepicker_master field_#{widget.type_of_date}"
- /><img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
+ /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
title="Select date" width="16" height="16" border="0"/>
</div>
</t>
@@ -963,9 +971,9 @@
<input type="text" size="1" style="width: 100%;"
t-att-id="widget.element_id"/>
<span class="oe-m2o-drop-down-button">
- <img src="/web/static/src/img/down-arrow.png" /></span>
+ <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
<span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
- <img src="/web/static/src/img/icons/gtk-index.png"/></span>
+ <img t-att-src='_s + "/web/static/src/img/icons/gtk-index.png"'/></span>
<div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
</div>
</div>
@@ -1016,7 +1024,7 @@
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
- <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
+ <img t-att-src='_s + "/web/static/src/img/placeholder.png"' class="oe-binary-image"
t-att-border="widget.readonly ? 0 : 1"
t-att-id="widget.element_id + '_field'"
t-att-name="widget.name"
@@ -1038,7 +1046,7 @@
<input type="hidden" name="session_id" value=""/>
<input type="hidden" name="callback" t-att-value="widget.iframe"/>
<button class="button" type="button" title="Set Image">
- <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
</button>
<input type="file" class="oe-binary-file" name="ufile"/>
</form>
@@ -1046,14 +1054,14 @@
</td>
<td>
<button class="button oe-binary-file-clear" type="button" title="Clear">
- <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
</button>
</td>
</tr>
</table>
</div>
<div class="oe-binary-progress" style="display: none">
- <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
+ <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
<b>Uploading ...</b>
</div>
<iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
@@ -1065,7 +1073,7 @@
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="100%">
- <input type="text" size="1"
+ <input type="text" size="1" readonly="readonly"
t-att-name="widget.name"
t-att-id="widget.element_id + '_field'"
t-attf-class="field_#{widget.type}" style="width: 100%"
@@ -1081,7 +1089,7 @@
<input type="hidden" name="session_id" value=""/>
<input type="hidden" name="callback" t-att-value="widget.iframe"/>
<button class="button" type="button" title="Set Image">
- <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
<span>Select</span>
</button>
<input type="file" class="oe-binary-file" name="ufile"/>
@@ -1090,13 +1098,13 @@
</td>
<td>
<button class="button oe-binary-file-save" type="button" title="Save As">
- <img src="/web/static/src/img/icons/gtk-save.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
<span>Save As</span>
</button>
</td>
<td>
<button class="button oe-binary-file-clear" type="button" title="Clear">
- <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
+ <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
<span>Clear</span>
</button>
</td>
@@ -1104,7 +1112,7 @@
</table>
</td>
<td class="oe-binary-progress" style="display: none" nowrap="true">
- <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
+ <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
<b>Uploading ...</b>
<iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
</td>
@@ -1113,7 +1121,7 @@
</t>
<t t-name="WidgetButton">
<button type="button" class="oe_button">
- <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
+ <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"/>
<span t-if="widget.string"><t t-esc="widget.string"/></span>
</button>
</t>
@@ -1206,7 +1214,7 @@
t-att-title="attrs.help"
t-att-class="classes.join(' ')"
t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
- <img t-att-src="'/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
+ <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
<br t-if="attrs.string"/>
<t t-esc="attrs.string"/>
</button>
@@ -1353,7 +1361,7 @@
<t t-name="DialogWarning">
<table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
<tr>
- <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
+ <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe-dialog-icon"/></td>
<td>
<p>
<t t-js="d">
@@ -1419,6 +1427,7 @@
-->
<t t-jquery="&gt; :first" t-operation="before">
<td t-if="edited and !options.selectable" class="oe-listview-padding"/>
+ <td t-if="edited and !options.isClarkGable" class="oe-listview-padding"/>
</t>
<t t-jquery="&gt; :last" t-operation="after">
<td t-if="edited and !options.deletable" class="oe-listview-padding"/>
@@ -1580,7 +1589,7 @@
<td valign="top" align="left" style="cursor: pointer;" width="18">
<t t-if="field.children">
<t t-if="(field.id).split('/').length != 3">
- <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
+ <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
</t>
</t>
</td>
@@ -1696,7 +1705,7 @@
<tr>
<td t-foreach="records[0]" t-as="column">
<input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
- <img src="/web/static/src/img/down-arrow.png" /></span>
+ <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
</td>
</tr>
<tr t-foreach="records" t-as="record" class="oe_import_grid-row">