[FIX] rating_project_issue : fix domain in view for stat button. Add help tooltip on field 'is_visible_happy_customer'
This commit is contained in:
@@ -52,7 +52,8 @@ class Project(models.Model):
|
||||
compute='_compute_percentage_satisfaction_task', string='% Happy', store=True, default=-1)
|
||||
percentage_satisfaction_project = fields.Integer(
|
||||
compute="_compute_percentage_satisfaction_project", string="% Happy", store=True, default=-1)
|
||||
is_visible_happy_customer = fields.Boolean(string="Customer Satisfaction", default=False)
|
||||
is_visible_happy_customer = fields.Boolean(string="Customer Satisfaction", default=False,
|
||||
help="Display informations about rating of the project on kanban and form view. This buttons will only be displayed if at least a rating exists.")
|
||||
|
||||
|
||||
@api.multi
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='buttons']" position="inside">
|
||||
<button name="action_view_task_rating"
|
||||
attrs="{'invisible': ['|', ('use_issues','=', False), ('is_visible_happy_customer','=', False)]}"
|
||||
attrs="{'invisible': ['|', '|', ('is_visible_happy_customer', '=', False), ('use_tasks','=', False), ('percentage_satisfaction_task', '=', -1)]}"
|
||||
class="oe_stat_button oe_percent"
|
||||
type="object"
|
||||
icon="fa-smile-o">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='buttons']" position="inside">
|
||||
<button name="action_view_issue_rating"
|
||||
attrs="{'invisible': ['|', ('use_issues','=', False), ('is_visible_happy_customer','=', False)]}"
|
||||
attrs="{'invisible': ['|', '|', ('use_issues','=', False), ('is_visible_happy_customer','=', False), ('percentage_satisfaction_issue', '=', -1)]}"
|
||||
class="oe_stat_button oe_percent"
|
||||
type="object"
|
||||
icon="fa-smile-o">
|
||||
|
||||
Reference in New Issue
Block a user