diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-12-15 14:31:52 +0100 |
|---|---|---|
| committer | Xavier BOL (xbo) <xbo@odoo.com> | 2020-12-21 15:35:20 +0100 |
| commit | 8e86c92ef7b3d7252e4830ba39952690505e8292 (patch) | |
| tree | 6578353c188465c2b8da17d710a7b1d83c0867e7 | |
| parent | 83c0f908d1e5c025311f264d103d868149485bf1 (diff) | |
[FIX] sale_timesheet: apply same visibility to remaining_hours_so and its label
Prior to this commit the visibiility rules of remaining_hours_so and its label
were different.
After this commit the visibility rule of remaining_hours_so and its label are
the same.
task-2409761
| -rw-r--r-- | addons/sale_timesheet/views/project_task_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index d0ed1b06af9..e134553abd2 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -167,7 +167,7 @@ <label class="font-weight-bold text-danger" for="remaining_hours_so" string="Remaining Days on SO" attrs="{'invisible': ['|', ('encode_uom_in_days', '=', False), ('remaining_hours_so', '>=', 0)]}"/> </span> - <field name="remaining_hours_so" nolabel="1" widget="timesheet_uom"></field> + <field name="remaining_hours_so" nolabel="1" widget="timesheet_uom" attrs="{'invisible': ['|', '|', '|', '|', ('allow_billable', '=', False), ('sale_order_id', '=', False), ('partner_id', '=', False), ('sale_line_id', '=', False), ('remaining_hours_available', '=', False)]}"></field> </xpath> <xpath expr="//field[@name='sale_order_id']" position="attributes"> <attribute name="invisible">1</attribute> |
