if (self.get("effective_readonly")) {
view.options.addable = null;
view.options.deletable = null;
- view.options.isClarkGable = false;
}
} else if (view.view_type === "form") {
if (self.get("effective_readonly")) {
'addable': self.get("effective_readonly") ? null : _t("Add"),
'deletable': self.get("effective_readonly") ? false : true,
'selectable': self.multi_selection,
- 'isClarkGable': self.get("effective_readonly") ? false : true
});
var embedded = (this.field.views || {}).tree;
if (embedded) {
'sortable': true,
// whether the view rows can be reordered (via vertical drag & drop)
'reorderable': true,
- // display an edit icon linking to form view
- 'isClarkGable': true
},
/**
* Core class for list-type displays.
if (!self.dataset.select_id(row_id)) {
throw "Could not find id in dataset"
}
- var view;
- if ($(e.target).is('.oe-record-edit-link-img')) {
- view = 'form';
- }
- self.row_clicked(e, view);
+ self.row_clicked(e);
}
});
},
if (this.options.selectable) {
cells.push('<th class="oe-record-selector"></td>');
}
- if (this.options.isClarkGable) {
- cells.push('<th class="oe-record-edit-link"></td>');
- }
_(this.columns).each(function(column) {
if (column.invisible === '1') {
return;
if (self.options.selectable) {
$row.append('<td>');
}
- if (self.options.isClarkGable) {
- $row.append('<td>');
- }
_(self.columns).chain()
.filter(function (column) {return !column.invisible;})
.each(function (column) {
if (this.view.editable_list.options.selectable)
$("<td>").appendTo($element);
- if (this.view.editable_list.options.isClarkGable)
- $("<td>").appendTo($element);
$xml.children().each(function(i, el) {
var modifiers = JSON.parse($(el).attr("modifiers") || "{}");
</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) + (options.isClarkGable ? 1 : 0)"/>
+ <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
<thead>
<tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
<th t-att-colspan="columns_count">
<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)">
<tfoot>
<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>
<input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
<input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
</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"