# -*- coding: utf-8 -*-
from odoo import fields, models


class HrEmployee(models.Model):
    _inherit = 'hr.employee'

    hourly_rate = fields.Float(
        string='Hourly Rate',
        default=0.0,
        help='Default hourly billing rate for timesheet amount calculations.',
    )
    monthly_revenue_target = fields.Monetary(
        string='Monthly Revenue Target',
        currency_field='currency_id',
        default=0.0,
        help='Personal monthly revenue target (used on the V2 dashboard).',
    )
    currency_id = fields.Many2one(
        comodel_name='res.currency',
        related='company_id.currency_id',
        readonly=True,
    )
    timesheet2_user_id = fields.Char(
        string='Timesheet2 User ID',
        index=True,
        copy=False,
        help='Legacy sysuser.UserID from Timesheet2.',
    )
