Skip to content

Commit

Permalink
[FIX] web,crm: list view, don't fallback on group_operator declared i…
Browse files Browse the repository at this point in the history
…n python

Partial revert of odoo/odoo@633780a
  • Loading branch information
JKE-be committed Oct 12, 2016
1 parent 16430be commit d3609f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/crm/crm_lead_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
<field name="source_id" invisible="1"/>
<field name="stage_id"/>
<field name="planned_revenue" sum="Expected Revenues"/>
<field name="probability" />
<field name="probability" avg="Avg. of Probability"/>
<field name="section_id" groups="base.group_multi_salesteams"/>
<field name="user_id"/>
<field name="referred" invisible="1"/>
Expand Down
2 changes: 1 addition & 1 deletion addons/web/static/src/js/view_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,7 @@ instance.web.list.Column = instance.web.Class.extend({
}

var aggregation_func = (this.sum && 'sum') || (this.avg && 'avg') ||
(this.max && 'max') || (this.min && 'min') || this.group_operator;
(this.max && 'max') || (this.min && 'min');

if (!aggregation_func) {
return {};
Expand Down

0 comments on commit d3609f7

Please sign in to comment.