add default timesheet hour field 0.0

This commit is contained in:
Pawan Kumar 2020-12-18 19:08:44 +05:30
parent 53f779c865
commit 96392a8107
2 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class InheritProjectProductEmployeeMap(models.Model):
employee_price = fields.Float("Consultant Price")
budgeted_qty = fields.Float(string='Budgeted qty', related='sale_line_id.product_uom_qty', readonly=True)
budgeted_uom = fields.Many2one('uom.uom', string='Budgeted UOM', related='sale_line_id.product_uom', readonly=True)
timesheet_hour = fields.Float("Timesheet Hour", compute='_compute_timesheet_hour')
timesheet_hour = fields.Float("Timesheet Hour", compute='_compute_timesheet_hour', default=0.0)
def _compute_timesheet_hour(self):
for val in self: