diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-01 11:20:38 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-02 16:47:58 +0000 |
| commit | 1e9772889ba6969961aab0e87fd018494d6b15bb (patch) | |
| tree | f53230d7f0f497b3d6e216fb1790e429b1d930dd /addons/gamification/data | |
| parent | f0ffbea17381cb117f2eed4ea18a76e2b0f37f00 (diff) | |
[IMP] *: use image.mixin when appropriate
The following models are already using big images, or they might need big images
in the future:
- partner
- hr employee
- shop category
- lunch product
- gamification badge and karma rank
PR: #34925
Diffstat (limited to 'addons/gamification/data')
| -rw-r--r-- | addons/gamification/data/badge.xml | 10 | ||||
| -rw-r--r-- | addons/gamification/data/gamification_karma_rank_data.xml | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/addons/gamification/data/badge.xml b/addons/gamification/data/badge.xml index 06476e98066..696e3fabec7 100644 --- a/addons/gamification/data/badge.xml +++ b/addons/gamification/data/badge.xml @@ -5,21 +5,21 @@ <field name="name">Good Job</field> <field name="description">You did great at your job.</field> <field name="rule_auth">everyone</field> - <field name="image" type="base64" file="gamification/static/img/badge_good_job-image.png"/> + <field name="image_1920" type="base64" file="gamification/static/img/badge_good_job-image.png"/> </record> <record id="badge_problem_solver" model="gamification.badge"> <field name="name">Problem Solver</field> <field name="description">No one can solve challenges like you do.</field> <field name="rule_auth">everyone</field> - <field name="image" type="base64" file="gamification/static/img/badge_problem_solver-image.png"/> + <field name="image_1920" type="base64" file="gamification/static/img/badge_problem_solver-image.png"/> </record> <record id="badge_hidden" model="gamification.badge"> <field name="name">Hidden</field> <field name="description">You have found the hidden badge</field> <field name="rule_auth">nobody</field> - <field name="image" type="base64" file="gamification/static/img/badge_hidden-image.png"/> + <field name="image_1920" type="base64" file="gamification/static/img/badge_hidden-image.png"/> <field name="active" eval="False" /> </record> @@ -29,7 +29,7 @@ <field name="rule_auth">everyone</field> <field name="rule_max">True</field> <field name="rule_max_number">2</field> - <field name="image" type="base64" file="gamification/static/img/badge_idea-image.png"/> + <field name="image_1920" type="base64" file="gamification/static/img/badge_idea-image.png"/> </record> <record id="email_template_badge_received" model="mail.template"> @@ -71,7 +71,7 @@ <table cellspacing="0" cellpadding="0" border="0" style="width: 560px; margin-top: 5px;"> <tbody><tr> <td valign="center"> - <img src="/web/image/gamification.badge/${object.badge_id.id}/image/80x80" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.name}"/> + <img src="/web/image/gamification.badge/${object.badge_id.id}/image_128/80x80" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.name}"/> </td> <td valign="center"> <cite>${object.badge_id.description}</cite> diff --git a/addons/gamification/data/gamification_karma_rank_data.xml b/addons/gamification/data/gamification_karma_rank_data.xml index 5eba07b1a3d..e0ef1320a4e 100644 --- a/addons/gamification/data/gamification_karma_rank_data.xml +++ b/addons/gamification/data/gamification_karma_rank_data.xml @@ -19,7 +19,7 @@ </div> </field> <field name="karma_min">1</field> - <field name="image" type="base64" file="gamification/static/img/rank_newbie_badge.svg"/> + <field name="image_1920" type="base64" file="gamification/static/img/rank_newbie_badge.svg"/> </record> <record id="rank_student" model="gamification.karma.rank"> @@ -32,7 +32,7 @@ </div> </field> <field name="karma_min">100</field> - <field name="image" type="base64" file="gamification/static/img/rank_student_badge.svg"/> + <field name="image_1920" type="base64" file="gamification/static/img/rank_student_badge.svg"/> </record> <record id="rank_bachelor" model="gamification.karma.rank"> @@ -45,7 +45,7 @@ </div> </field> <field name="karma_min">500</field> - <field name="image" type="base64" file="gamification/static/img/rank_bachelor_badge.svg"/> + <field name="image_1920" type="base64" file="gamification/static/img/rank_bachelor_badge.svg"/> </record> <record id="rank_master" model="gamification.karma.rank"> @@ -58,7 +58,7 @@ </div> </field> <field name="karma_min">2000</field> - <field name="image" type="base64" file="gamification/static/img/rank_master_badge.svg"/> + <field name="image_1920" type="base64" file="gamification/static/img/rank_master_badge.svg"/> </record> <record id="rank_doctor" model="gamification.karma.rank"> @@ -71,6 +71,6 @@ </div> </field> <field name="karma_min">10000</field> - <field name="image" type="base64" file="gamification/static/img/rank_doctor_badge.svg"/> + <field name="image_1920" type="base64" file="gamification/static/img/rank_doctor_badge.svg"/> </record> </data></odoo> |
