mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[ADD] hr_timesheet_work_entry: for Odoo 13
This commit is contained in:
9
hr_timesheet_work_entry/models/timesheet.py
Normal file
9
hr_timesheet_work_entry/models/timesheet.py
Normal 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))
|
||||
Reference in New Issue
Block a user