Skip to content
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

Merged
merged 4 commits into from Aug 3, 2017
Merged

Conversation

tde-banana-odoo
Copy link
Contributor

@tde-banana-odoo tde-banana-odoo added the RD research & development, internal work label Feb 21, 2017
@@ -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>
Copy link
Contributor

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.
Copy link
Contributor

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),
Copy link
Contributor

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

goal.completeness = 100.0
else:
# if goal.current >= goal.target_goal:
# goal.completeness = 100.0
Copy link
Contributor

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

<td>${goal['current']}/${line['target']}
% if line['suffix']:
${line['suffix']}
<field name="subject">New badge granted</field>
Copy link
Contributor

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;"/>
Copy link
Contributor

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>
Copy link
Contributor

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

@rrahir rrahir force-pushed the master-gamification-cfa branch 2 times, most recently from 5d4e452 to 7feb85f Compare July 4, 2017 11:48
@rrahir rrahir force-pushed the master-gamification-cfa branch 15 times, most recently from 76f8da8 to cb5edfa Compare July 17, 2017 14:26
@rrahir rrahir force-pushed the master-gamification-cfa branch 8 times, most recently from f58a35c to daab587 Compare July 20, 2017 07:33
@rrahir rrahir force-pushed the master-gamification-cfa branch 3 times, most recently from 9b55da2 to b861191 Compare August 2, 2017 12:44
photoscene and others added 3 commits August 2, 2017 16:07
Fix of the template.
- removed most of the static code,
- add user-specific information.
- Split templates for 'personal' and 'ranking'.
- beug fixes
- Code cleaning
@rrahir rrahir force-pushed the master-gamification-cfa branch 2 times, most recently from 5830dd4 to 04fbf4a Compare August 3, 2017 14:02
- removed report_template_id field,
- force dedicated template for 'personal' and 'ranking,
- fix image size on personal template.
- code cleaning
@rrahir rrahir merged commit fb9865d into odoo:master Aug 3, 2017
rrahir added a commit that referenced this pull request Aug 3, 2017
rrahir added a commit that referenced this pull request Aug 3, 2017
@rrahir rrahir deleted the master-gamification-cfa branch March 7, 2018 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants