[FIX] sale_timesheet: updating view modifiers

Steps:
- Open project.task form view in Field Service
- Go to Timesheets page
- the 'is sales order item manually edited' field is visible in Field Service

Issue:
- The technical field is displayed to the user

Cause:
- The view modifier is not updated

Fix:
- Using column_invisible instead of invisible.

closes odoo/odoo#132933

Task: 3461563
Related: odoo/enterprise#46186
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Manushi Shah (mash)
2023-09-26 21:35:18 +00:00
committed by Xavier Bol (xbo)
parent 91baffb746
commit 56765afbbd
@@ -118,7 +118,7 @@
</xpath>
<xpath expr="//field[@name='timesheet_ids']/tree" position="inside">
<!-- <field name="timesheet_ids"/> is already inside a block groups="hr_timesheet.group_hr_timesheet_user" -->
<field name="is_so_line_edited" invisible="1" />
<field name="is_so_line_edited" column_invisible="True"/>
</xpath>
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='unit_amount']" position="before">
<!-- <field name="timesheet_ids"/> is already inside a block groups="hr_timesheet.group_hr_timesheet_user" -->