diff --git a/addons/gamification_sale_crm/__openerp__.py b/addons/gamification_sale_crm/__openerp__.py
index b8b9444d643..429292e0025 100644
--- a/addons/gamification_sale_crm/__openerp__.py
+++ b/addons/gamification_sale_crm/__openerp__.py
@@ -26,8 +26,7 @@
'depends': ['gamification','sale_crm'],
'description': """Example of goal types and plans that can be used related to the usage of the CRM Sale module.""",
- 'data': [
- 'sale_crm_goals.xml',
- ],
+ 'data': ['sale_crm_goals.xml'],
+ 'demo': ['sale_crm_goals_demo.xml'],
'auto_install': True,
}
diff --git a/addons/gamification_sale_crm/sale_crm_goals.xml b/addons/gamification_sale_crm/sale_crm_goals.xml
index 3541b658791..2269de8f856 100644
--- a/addons/gamification_sale_crm/sale_crm_goals.xml
+++ b/addons/gamification_sale_crm/sale_crm_goals.xml
@@ -2,32 +2,14 @@
-
-
Total Invoiced
sum
-
-
-
+
+
+
[('state','!=','cancel'),('user_id','=',user_id)]
@@ -36,9 +18,9 @@
The average number of days to open the case (less than)
sum
minus
-
-
-
+
+
+
[('user_id','=',user_id)]
@@ -47,9 +29,9 @@
The average number of days to close the case (less than)
sum
minus
-
-
-
+
+
+
[('user_id','=',user_id)]
@@ -58,8 +40,8 @@
# Logged Calls
Log a certain number of calls to reach this goal
count
-
-
+
+
[('user_id','=',user_id),('type','='),('state','=','done')]
@@ -67,8 +49,8 @@
# New Leads
Based on the creation date
count
-
-
+
+
[('user_id','=',user_id)]
@@ -76,8 +58,8 @@
# New Opportunities
Based on the opening date
count
-
-
+
+
[('user_id','=',user_id),('type','=','opportunity')]
@@ -85,8 +67,8 @@
# New Sales Orders
Based on the creation date
count
-
-
+
+
[('user_id','=',user_id),('state','not in',('draft', 'sent', 'cancel'))]
@@ -95,8 +77,8 @@
# Paid Sales Orders
Based on the confirmation date
count
-
-
+
+
[('user_id','=',user_id),('paid','=',True)]
@@ -104,10 +86,10 @@
Total Paid Sales Orders
Based on the confirmation date
sum
-
-
-
- [('user_id','=',user_id),('paid','=',True)]
+
+
+
+ [('user_id','=',user_id),('invoiced','=',True)]
@@ -115,8 +97,8 @@
# Customer Refunds
count
-
-
+
+
[('state','!=','cancel'),('user_id','=',user_id),('type','=','out_refund')]
@@ -124,9 +106,9 @@
Total Customer Refunds
sum
-
-
-
+
+
+
[('state','!=','cancel'),('user_id','=',user_id),('type','=','out_refund')]
@@ -135,38 +117,38 @@
-
+
20000
-
+
20
-
+
5
-
+
5
-
+
4
-
+
15
-
+
7
-
+
5
@@ -196,29 +178,29 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/addons/gamification_sale_crm/sale_crm_goals_demo.xml b/addons/gamification_sale_crm/sale_crm_goals_demo.xml
new file mode 100644
index 00000000000..d6382dac773
--- /dev/null
+++ b/addons/gamification_sale_crm/sale_crm_goals_demo.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+ inprogress
+
+
+
+
+
+
+
+
+
+ 2000
+ inprogress
+
+
+
+
+
+
+
+
+ 20
+ inprogress
+
+
+
+
+
+
+
+
+ 5
+ inprogress
+
+
+
+
+
+
+
+
+ 5
+ inprogress
+
+
+
+
+
+
+
+
+ 4
+ inprogress
+
+
+
+