[FIX] sales_team: hide top bar in dashboard if only sale

When sale is installed without crm, we want to hide the top bar in the dashboard otherwise it's empty and gives an error
This commit is contained in:
Martin Geubelle
2015-08-28 17:19:28 +02:00
parent 8aac33495a
commit 205e9f4ac0
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@ var SalesTeamDashboardView = KanbanView.extend({
this.fetch_data().then(function(result){
self.show_demo = !(result && result['nb_opportunities'] > 0);
self.show_demo = result && result['nb_opportunities'] == 0;
var sales_dashboard = QWeb.render('sales_team.SalesDashboard', {
show_demo: self.show_demo,
@@ -8,7 +8,7 @@
-->
<t t-name="sales_team.SalesDashboard">
<div class="o_sales_dashboard">
<div t-if="show_demo or values" class="o_sales_dashboard">
<div t-attf-class="o_left_panel #{show_demo ? 'o_demo' : ''}">
<table border="0" class="table">
<tr>