Skip to content
Snippets Groups Projects
Commit 90ebde36 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] gamification: remove old calls to action_close

bzr revid: mat@openerp.com-20131224152902-i2ozrf41y1ou2vdm
parent 13bfaef3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment