hide timesheet table and expense for fixed price project
This commit is contained in:
parent
9bc6ad5daa
commit
41dc6d8064
|
@ -52,8 +52,8 @@
|
|||
attrs="{'invisible': ['|',('project_type','!=','hours_in_consultant'),('pricing_type','=','fixed_rate')]}"/>
|
||||
<field name="manager_per" attrs="{'invisible': [('hour_distribution','!=','Percentage')]}"/>
|
||||
<field name="employee_per" attrs="{'invisible': [('hour_distribution','!=','Percentage')]}"/>
|
||||
<field name="expenses_per"/>
|
||||
<field name="expenses_amt"/>
|
||||
<field name="expenses_per" attrs="{'invisible': [('pricing_type','=','fixed_rate')]}"/>
|
||||
<field name="expenses_amt" attrs="{'invisible': [('pricing_type','=','fixed_rate')]}"/>
|
||||
<div class="o_td_label"
|
||||
attrs="{'invisible': ['|', '|', ('allow_timesheets', '=', False), ('sale_order_id', '!=', False), '&', ('pricing_type', '!=', 'fixed_rate'), ('bill_type', '!=', 'customer_task')]}">
|
||||
<!--<label for="timesheet_product_id" string="Default Service"
|
||||
|
@ -68,8 +68,11 @@
|
|||
invisible="1"
|
||||
context="{'default_type': 'service', 'default_service_policy': 'delivered_timesheet', 'default_service_type': 'timesheet'}"/>
|
||||
<field name="sale_order_id" invisible="1"/>
|
||||
<field name="sale_line_id" string="Default Sales Order Item"
|
||||
<!--<field name="sale_line_id" string="Default Sales Order Item"
|
||||
attrs="{'invisible': ['|', '|', ('sale_order_id', '=', False), ('bill_type', '!=', 'customer_project'), ('pricing_type', '!=', 'fixed_rate')], 'readonly': [('sale_order_id', '=', False)]}"
|
||||
options="{'no_create': True, 'no_edit': True, 'delete': False}"/>-->
|
||||
<field name="sale_line_id" string="Default Sales Order Item"
|
||||
invisible="1"
|
||||
options="{'no_create': True, 'no_edit': True, 'delete': False}"/>
|
||||
</group>
|
||||
<field name="sale_line_employee_ids"
|
||||
|
@ -105,7 +108,8 @@
|
|||
<field name="budgeted_hour_week"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="consultant_timesheet_hrs" readonly="1" attrs="{'invisible': [('pricing_type','!=','fixed_rate')]}">
|
||||
<!--<field name="consultant_timesheet_hrs" readonly="1" attrs="{'invisible': [('pricing_type','!=','fixed_rate')]}">-->
|
||||
<field name="consultant_timesheet_hrs" readonly="1" invisible="1">
|
||||
<tree editable="top">
|
||||
<field name="project_id" invisible="1"/>
|
||||
<field name="employee_id" invisible="0"/>
|
||||
|
@ -115,7 +119,7 @@
|
|||
</tree>
|
||||
</field>
|
||||
<group>
|
||||
<group>
|
||||
<group attrs="{'invisible': [('pricing_type','=','fixed_rate')]}">
|
||||
<!--<field name="cost"/>-->
|
||||
<field name="consultant_cost"/>
|
||||
<field name="other_expenses" readonly="1"/>
|
||||
|
|
Loading…
Reference in New Issue