[IMP] Improved name of function and comment
bzr revid: tpa@tinyerp.com-20120418115316-bndil056lk25ni3g
This commit is contained in:
parent
9fdb49c897
commit
a242247159
|
@ -141,13 +141,13 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
|||
return this.reload_view(null, null, true);
|
||||
},
|
||||
/**
|
||||
* Returns the color for the provided record in the current view (from the
|
||||
* ``@colors`` attribute)
|
||||
* Returns the style for the provided record in the current view (from the
|
||||
* ``@colors`` attribute and ``@fonts`` attribute)
|
||||
*
|
||||
* @param {Record} record record for the current row
|
||||
* @returns {String} CSS color declaration
|
||||
* @returns {String} CSS style declaration
|
||||
*/
|
||||
color_for: function (record) {
|
||||
style_for: function (record) {
|
||||
var style= '';
|
||||
|
||||
var context = _.extend({}, record.attributes, {
|
||||
|
|
|
@ -670,7 +670,7 @@
|
|||
</t>
|
||||
<tr t-name="ListView.row" t-att-class="row_parity"
|
||||
t-att-data-id="record.get('id')"
|
||||
t-att-style="view.color_for(record)">
|
||||
t-att-style="view.style_for(record)">
|
||||
<t t-foreach="columns" t-as="column">
|
||||
<td t-if="column.meta">
|
||||
|
||||
|
|
Loading…
Reference in New Issue