hide service field

This commit is contained in:
Pawan Kumar 2021-01-14 13:44:45 +05:30
parent 574b8a4ddf
commit 42a9064056
1 changed files with 2 additions and 2 deletions

View File

@ -56,10 +56,10 @@
<field name="expenses_amt"/>
<div class="o_td_label"
attrs="{'invisible': ['|', '|', ('allow_timesheets', '=', False), ('sale_order_id', '!=', False), '&amp;', ('pricing_type', '!=', 'fixed_rate'), ('bill_type', '!=', 'customer_task')]}">
<label for="timesheet_product_id" string="Default Service"
<!--<label for="timesheet_product_id" string="Default Service"
attrs="{'invisible': [('bill_type', '!=', 'customer_task')]}"/>
<label for="timesheet_product_id" string="Service"
attrs="{'invisible': [('bill_type', '=', 'customer_task')]}"/>
attrs="{'invisible': [('bill_type', '=', 'customer_task')]}"/>-->
</div>
<!--<field name="timesheet_product_id" nolabel="1"
attrs="{'invisible': ['|', '|', ('allow_timesheets', '=', False), ('sale_order_id', '!=', False), '&amp;', ('pricing_type', '!=', 'fixed_rate'), ('bill_type', '!=', 'customer_task')], 'required': ['&amp;', ('allow_billable', '=', True), ('allow_timesheets', '=', True)]}"