[IMP] simplify summing: use the += operator to avoid redundancies and excessively long lines
bzr revid: xmo@openerp.com-20110617091354-nus2mw3r7g2bvbrr
This commit is contained in:
@@ -116,9 +116,9 @@ openerp.base_graph.GraphView = openerp.base.Controller.extend({
|
||||
this.opration_fld[gen_key] = map_val;
|
||||
}else{
|
||||
map_val = this.opration_fld[gen_key];
|
||||
map_val[this.operator_field] = map_val[this.operator_field] + result[i][this.operator_field];
|
||||
map_val[this.operator_field] += result[i][this.operator_field];
|
||||
if (this.operator.length > 1){
|
||||
map_val[this.operator_field_one] = map_val[this.operator_field_one] + result[i][this.operator_field_one];
|
||||
map_val[this.operator_field_one] += result[i][this.operator_field_one];
|
||||
}
|
||||
this.opration_fld[gen_key] = map_val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user