[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:
jem-odoo
2018-09-05 15:06:16 +02:00
parent 8ee2a9c232
commit 02273803e4
@@ -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': ['&amp;', ('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>