[ADD] hr_timesheet_work_entry: for Odoo 13

This commit is contained in:
Jared Kipe
2020-10-06 11:53:45 -07:00
parent 8f9ef7b259
commit a83cf2bfeb
11 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from odoo import api, fields, models
class AccountAnalyticLine(models.Model):
_inherit = 'account.analytic.line'
work_type_id = fields.Many2one('hr.work.entry.type', string='Work Type',
default=lambda self: self.env.ref('hr_timesheet_work_entry.work_input_timesheet',
raise_if_not_found=False))