diff options
| author | Jérome Maes <jem@openerp.com> | 2017-10-23 16:13:31 +0200 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2017-12-12 14:06:29 +0100 |
| commit | 93adbdbb208a29b0a61b97a502bbbadb16e8e60a (patch) | |
| tree | a32b6c1969d94dbb11190ad6c6a4d2c41a226360 /addons/project/views/project_views.xml | |
| parent | 95698bd408a29cb2ebc4abe0445a4739eceba082 (diff) | |
[IMP] project: simplify filters for rating
Since rating in on project directly, and task
and issue are merged, we can simplify some domain
and replaced them by default filters.
The search domain will be less complex and the
performance will be better.
Diffstat (limited to 'addons/project/views/project_views.xml')
| -rw-r--r-- | addons/project/views/project_views.xml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index a09293f80df..3fc53cf4892 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -124,9 +124,6 @@ <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> </button> - <button name="%(project.rating_rating_action_view_project_rating_task)d" attrs="{'invisible': ['|', '|', ('rating_status', '=', 'no'), ('use_tasks','=', False), ('percentage_satisfaction_task', '=', -1)]}" class="oe_stat_button oe_percent" type="action" icon="fa-smile-o" groups="project.group_project_rating"> - <field string="% On tasks" name="percentage_satisfaction_task" widget="statinfo"/> - </button> </div> <div class="oe_title"> <h1> @@ -320,7 +317,7 @@ <div t-if="record.alias_name.value and record.alias_domain.value"> <span><i class="fa fa-envelope"></i> <t t-esc="record.alias_id.value"/></span> </div> - <div t-if="record.rating_status.raw_value != 'no'" class="mt8 text-primary" title="Percentage of happy ratings over the past 30 days. Get rating details from the More menu."> + <div t-if="record.rating_status.raw_value != 'no'" class="mt8 text-primary" title="Percentage of happy ratings over the past 30 days. Get rating details from the More menu." groups="project.group_project_rating"> <b> <t t-if="record.percentage_satisfaction_project.value == -1"> <i class="fa fa-smile-o"/> No rating yet |
