diff options
| author | Sbh (Openerp) <sbh@tinyerp.com> | 2012-04-04 16:52:55 +0530 |
|---|---|---|
| committer | Sbh (Openerp) <sbh@tinyerp.com> | 2012-04-04 16:52:55 +0530 |
| commit | a7e76ffedcf7bbace11aa662d48bf8ee5f4050cc (patch) | |
| tree | 4bb89dafc5c39f245093572a20bb05c628d7a899 | |
| parent | 6703c3f65699807d4ef3669377bcb97254402db7 (diff) | |
remove the feture of bold record
bzr revid: sbh@tinyerp.com-20120404112255-hklhnejqh9s3y5d7
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 6d95e2fa1ce..470c99c3ade 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -83,12 +83,6 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# self.compute_aggregates(); }); this.no_leaf = false; - var domain = [['res_model','=', this.model], ['user_id' , '=', this.session.uid]]; - new openerp.web.DataSetSearch( - this, 'ir.needaction_users', this.dataset.get_context(), domain) - .read_slice().done(function(result) { - self.needaction_ids = _.pluck(result, 'res_id'); - }) }, /** * Retrieves the view's number of records per page (|| section) @@ -159,21 +153,16 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# current_date: new Date().toString('yyyy-MM-dd') // TODO: time, datetime, relativedelta }); - var style= ''; - if(this.needaction_ids.indexOf(record.attributes.id) >= 0) { - style = 'font-weight: bold;'; - } for(var i=0, len=this.colors.length; i<len; ++i) { var pair = this.colors[i], color = pair[0], expression = pair[1]; if (py.evaluate(expression, context).toJSON()) { - style += 'color: ' + color + ';' - return style; + return 'color: ' + color + ';'; } // TODO: handle evaluation errors } - return style; + return ''; }, /** * Called after loading the list view's description, sets up such things |
