diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2016-07-02 06:23:25 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@openerp.com> | 2016-07-02 18:33:55 +0200 |
| commit | fb289e0b5d7efdf3c74fa9080da7b6f29dc3ff8e (patch) | |
| tree | 4dbfac2f9faa7817e398c30f24c4f768e80d4c90 /addons/rating_project_issue/views/project_issue_view.xml | |
| parent | 580129522f4c0e53dbdaee38c51537413dfa3020 (diff) | |
[SEC] rating: escape feedback, text2html to avoid js injection
[IMP] rating: website rating page: reviewed design, rate on click, update on submit
[IMP] rating_project: rating_status: 'no' instead of False
[IMP] rating_project/issue: smileys insteaf of thumbs for consistency in kanban
[IMP] rating: allow to update an existing rating (feedback + rate)
[IMP] rating: consistency on rating names (statisfied, not satisfied, higly dissatisfed)
[IMP] rating: avoid deadend after rating, button to go to Odoo
[IMP] rating: res_config better sentence
Diffstat (limited to 'addons/rating_project_issue/views/project_issue_view.xml')
| -rw-r--r-- | addons/rating_project_issue/views/project_issue_view.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/rating_project_issue/views/project_issue_view.xml b/addons/rating_project_issue/views/project_issue_view.xml index 33b774eaf2d..fc0e60ac1a7 100644 --- a/addons/rating_project_issue/views/project_issue_view.xml +++ b/addons/rating_project_issue/views/project_issue_view.xml @@ -39,9 +39,9 @@ </xpath> <xpath expr="//div[@class='oe_kanban_bottom_left']" position="inside"> <b t-if="record.rating_ids.raw_value.length"> - <span class="fa fa-fw mt4 fa-thumbs-up text-success" t-if="record.rating_last_value.value == 10" title="Latest Rating: Happy"/> - <span class="fa fa-fw mt4 fa-thumbs-down text-warning" t-if="record.rating_last_value.value == 5" title="Latest Rating: Average"/> - <span class="fa fa-fw mt4 fa-thumbs-down text-danger" t-if="record.rating_last_value.value == 1" title="Latest Rating: Not Happy"/> + <span style="font-weight:bold;" class="fa fa-fw mt4 fa-smile-o text-success" t-if="record.rating_last_value.value == 10" title="Latest Rating: Happy"/> + <span style="font-weight:bold;" class="fa fa-fw mt4 fa-meh-o text-warning" t-if="record.rating_last_value.value == 5" title="Latest Rating: Average"/> + <span style="font-weight:bold;" class="fa fa-fw mt4 fa-frown-o text-danger" t-if="record.rating_last_value.value == 1" title="Latest Rating: Not Happy"/> </b> </xpath> </field> @@ -56,7 +56,7 @@ <field name="arch" type="xml"> <div name="button_box" position="inside"> <button name="action_view_issue_rating" - attrs="{'invisible': ['|', '|', ('use_issues','=', False), ('rating_status', '=', False), ('percentage_satisfaction_issue', '=', -1)]}" + attrs="{'invisible': ['|', '|', ('use_issues','=', False), ('rating_status', '=', 'no'), ('percentage_satisfaction_issue', '=', -1)]}" class="oe_stat_button oe_percent" type="object" icon="fa-smile-o"> |
