diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-12-24 16:29:02 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-12-24 16:29:02 +0100 |
| commit | 90ebde3676b3f4c2a00132313417410ce4ba36b9 (patch) | |
| tree | ffee68a758be647399c6f25258a1ad37fc21bdaa /addons | |
| parent | 13bfaef3a3625deb4ba1d05c50647b6126175c6f (diff) | |
[FIX] gamification: remove old calls to action_close
bzr revid: mat@openerp.com-20131224152902-i2ozrf41y1ou2vdm
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/gamification/tests/test_challenge.py | 2 | ||||
| -rw-r--r-- | addons/gamification_sale_crm/sale_crm_goals_demo.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/gamification/tests/test_challenge.py b/addons/gamification/tests/test_challenge.py index 2655a1b26fd..6b93da727ac 100644 --- a/addons/gamification/tests/test_challenge.py +++ b/addons/gamification/tests/test_challenge.py @@ -83,7 +83,7 @@ class test_challenge(common.TransactionCase): # reward for two firsts as admin may have timezone self.challenge_obj.write(cr, uid, self.challenge_base_id, {'reward_first_id': self.badge_id, 'reward_second_id': self.badge_id}, context=context) - self.challenge_obj.action_close(cr, uid, self.challenge_base_id, context=context) + self.challenge_obj.write(cr, uid, self.challenge_base_id, {'state': 'done'}, context=context) badge_ids = self.badge_user_obj.search(cr, uid, [('badge_id', '=', self.badge_id), ('user_id', '=', self.demo_user_id)]) self.assertGreater(len(badge_ids), 0, "Demo user has not received the badge")
\ No newline at end of file diff --git a/addons/gamification_sale_crm/sale_crm_goals_demo.xml b/addons/gamification_sale_crm/sale_crm_goals_demo.xml index 5f57c7ecd36..fd69c36162f 100644 --- a/addons/gamification_sale_crm/sale_crm_goals_demo.xml +++ b/addons/gamification_sale_crm/sale_crm_goals_demo.xml @@ -13,8 +13,8 @@ <field name="definition_id" eval="ref('definition_crm_tot_invoices')" /> <field name="user_id" eval="ref('base.user_demo')" /> <field name="line_id" eval="ref('line_crm_sale1')" /> - <field name="start_date" eval="time.strftime('2013-03-01')" /> - <field name="end_date" eval="time.strftime('2013-03-31')" /> + <field name="start_date" eval="time.strftime('%Y-%m-01')" /> + <field name="end_date" eval="time.strftime('%Y-%m-31')" /> <field name="target_goal">2000</field> <field name="state">inprogress</field> </record> |
