readonly timesheet table in project for fixed type project

This commit is contained in:
Pawan Kumar 2021-01-13 20:02:20 +05:30
parent 28c6aa4c1d
commit 8d89942717
2 changed files with 1 additions and 2 deletions

View File

@ -163,7 +163,6 @@ class Project(models.Model):
create_timesheet = val.consultant_timesheet_hrs.create({'project_id': res[0],
'employee_id': res[1],
'timesheet_hour': res[2]})
for rec in create_timesheet:
else:
val.consultant_timesheet_hrs = False
# val.consultant_timesheet_hrs = False

View File

@ -105,7 +105,7 @@
<field name="budgeted_hour_week"/>
</tree>
</field>
<field name="consultant_timesheet_hrs" attrs="{'invisible': [('pricing_type','!=','fixed_rate')]}">
<field name="consultant_timesheet_hrs" readonly="1" attrs="{'invisible': [('pricing_type','!=','fixed_rate')]}">
<tree editable="top">
<field name="project_id" invisible="1"/>
<field name="employee_id" invisible="0"/>