<field name="rule_max_number">2</field>
<field name="image" type="base64" file="gamification/static/img/badge_idea-image.png"/>
</record>
- </data>
-
-
- <data noupdate="0">
<record id="email_template_badge_received" model="email.template">
<field name="name">Received Badge</field>
can be called after each change in the list of users or lines.
:param list(int) ids: the list of challenge concerned"""
+ goal_obj = self.pool.get('gamification.goal')
for challenge in self.browse(cr, uid, ids, context):
(start_date, end_date) = start_end_date_for_period(challenge.period)
# FIXME: allow to restrict to a subset of users
for user in challenge.user_ids:
- goal_obj = self.pool.get('gamification.goal')
domain = [('line_id', '=', line.id), ('user_id', '=', user.id)]
if start_date:
domain.append(('start_date', '=', start_date))