[FIX] sale_timesheet: visibility of SOL on timesheet subview
The field SOL on the timesheet list on task should be visible when the project is billed at employee rate. This help the user to see which timesheet is included in which SOL.
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='timesheet_ids']/tree" position="inside">
|
||||
<field name="timesheet_invoice_id" invisible="1"/>
|
||||
<field name="so_line" readonly="1" attrs="{'column_invisible': ['&', ('parent.is_project_map_empty', '=', True), ('parent.sale_line_id', '!=', False)]}"/>
|
||||
<field name="so_line" readonly="1" attrs="{'column_invisible': ['|', ('parent.is_project_map_empty', '=', True), ('parent.billable_type', '!=', 'employee_rate')]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user