[IMP] Improved name of function and comment

bzr revid: tpa@tinyerp.com-20120418115316-bndil056lk25ni3g
This commit is contained in:
Turkesh Patel (Open ERP) 2012-04-18 17:23:16 +05:30
parent 9fdb49c897
commit a242247159
2 changed files with 5 additions and 5 deletions

View File

@ -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, {

View File

@ -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">