[IMP] gamification_sale_crm: change date filed for definition "Logged Calls"
authorMartin Trigaux <mat@openerp.com>
Tue, 30 Sep 2014 09:33:26 +0000 (11:33 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 30 Sep 2014 09:33:45 +0000 (11:33 +0200)
The field date_close is only computed when writing the state done. In v8, the phonecalls are always created in state done if the user is not in the group crm.group_scheduled_calls (displays menus to schedule calls.
As the field date_closed is then almost never set, change the date field by the one displayed in the form view. opw 614893

addons/gamification_sale_crm/sale_crm_goals.xml

index f42585f..06e5742 100644 (file)
@@ -56,7 +56,7 @@
             <field name="computation_mode">count</field>
             <field name="suffix">calls</field>
             <field name="model_id" eval="ref('crm.model_crm_phonecall')" />
-            <field name="field_date_id" eval="ref('crm.field_crm_phonecall_date_closed')" />
+            <field name="field_date_id" eval="ref('crm.field_crm_phonecall_date')" />
             <field name="domain">[('user_id','=',user.id),('state','=','done')]</field>
         </record>