New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Master gamification cfa #15582
Master gamification cfa #15582
Conversation
@@ -20,75 +20,245 @@ | |||
<record id="simple_report_template" model="mail.template"> | |||
<field name="name">Simple Challenge Report Progress</field> | |||
<field name="model_id" ref="gamification.model_gamification_challenge"/> | |||
<field name="subject">New badge granted</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subject is wrong, should be something like "report for `
<tr> | ||
<td> | ||
<span style="color:#A8A8A8;font-size:13px;"> | ||
The following message contains the current progress for the challenge Monthly Sales Targets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name of the challenge hardocded
|
||
# goals closed but still opened at the last report date | ||
closed_goals_to_report = Goals.search([ | ||
('challenge_id', '=', challenge.id), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have no diff in the code
addons/gamification/models/goal.py
Outdated
goal.completeness = 100.0 | ||
else: | ||
# if goal.current >= goal.target_goal: | ||
# goal.completeness = 100.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no diff in the code
3594b18
to
1a72731
Compare
<td>${goal['current']}/${line['target']} | ||
% if line['suffix']: | ||
${line['suffix']} | ||
<field name="subject">New badge granted</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the "Simple Challenge Report Progress" subject called "New badge granted"?
<tr><td> | ||
<table cellspacing="0" cellpadding="0" width="100%"> | ||
<tr><td valign="middle" align="left" style="padding:30px 15px;"> | ||
<img width="90" src="https://www.odoo.com/openerp_website/static/src/img/2016/logos/odoo_logo_small.png" style="width:80px;"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be on the local server?
<table cellspacing="0" cellpadding="0" width="100%" style="padding: 15px;"> | ||
<tr> | ||
<td align="center" style="padding: 30px 15px;"> | ||
<p style="font-size:12px;color:#AAAAAA">Odoo SA - Chaussée de Namur, 40, B-1367 Grand-Rosière</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is data, not demo data
5d4e452
to
7feb85f
Compare
76f8da8
to
cb5edfa
Compare
f58a35c
to
daab587
Compare
daab587
to
f4eb358
Compare
9b55da2
to
b861191
Compare
Fix of the template. - removed most of the static code, - add user-specific information.
- Split templates for 'personal' and 'ranking'. - beug fixes - Code cleaning
5830dd4
to
04fbf4a
Compare
- removed report_template_id field, - force dedicated template for 'personal' and 'ranking, - fix image size on personal template. - code cleaning
04fbf4a
to
8fad2f6
Compare
Task: https://www.odoo.com/web#id=30824&view_type=form&model=project.task&menu_id=5200