Ethiopia - Individual Leave Report

l10n_et_report_hr_leave
REPOSITORY
REPOSITORYOCA/l10n-ethiopia
GIT
GIThttps://github.com/OCA/l10n-ethiopia.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-ethiopia/tree/14.0/l10n_et_report_hr_leave
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTREVI Software
MAINTAINERS
MAINTAINERSTREVI Software
COMMITTERS
COMMITTERSMichael Telahun Makonnen, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/trevi-software/trevi-hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-ethiopia:
    - ethiopic_calendar
OCA/reporting-engine:
    - report_py3o
odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES mpmath
py3o.formats
py3o.template
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES libreoffice
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
edit_holiday_status_form_02 hr.leave.type.form.inherit.ethiopic hr.leave.type data Inherits hr_holidays.edit_holiday_status_form
hr_leave_view_form_02 Leave Request l10n_et hr.leave data Inherits hr_holidays.hr_leave_view_form
hr_leave_view_tree_02 hr.holidays.view.tree.l10n_et hr.leave xpath Inherits hr_holidays.hr_leave_view_tree
view_holiday_status_normal_tree_02 hr.leave.type.inherit.ethiopic.tree hr.leave.type data Inherits hr_holidays.view_holiday_status_normal_tree
Models touched (2)

New fields (8)
  • available_leave_days Float
    compute='_compute_available_leave_days' help='Number of available leave days for the employee' readonly=True tracking=False args: 'Available Leave Days'
  • local_date_from Datetime
    compute='_localize_date_from_to' args: 'Local Date From'
  • local_date_to Datetime
    compute='_localize_date_from_to' args: 'Local Date To'
  • public_holiday_days Float
    compute='_compute_public_holiday_days' copy=False help='Number of public holidays in the time off request' readonly=False store=True tracking=True args: 'Public Holiday (Days)'
  • real_days Float
    compute='_compute_real_days' copy=False help='Number of actual days, including holidays and days off, in the time off request' readonly=False store=True tracking=True args: 'Real (Days)'
  • rest_days Float
    compute='_compute_rest_days' copy=False help='Number of rest days of the time off request' readonly=False store=True tracking=True args: 'Rest (Days)'
  • return_date_et Char
    args: 'Ethiopic Return Date'
  • taken_leave_days Float
    compute='_compute_taken_leave_days' help='Number of available leave days for the employee' readonly=True tracking=False args: 'Taken Leave Days'
Public methods (7)
  • format_date(self, date_str)
    @api.model
  • format_date_et(self, date_str)
    @api.model
  • get_hrm(self)
    @api.model
  • get_remaining_leaves(self, leave)
    @api.model
  • get_taken_leaves(self, leave)
    @api.model
  • onchange_enddate(self)
    @api.onchange('date_to')
  • time2ethiopic(self, year, month, day)
    @api.model

New fields (1)
  • ethiopic_name Char
Public methods (1)
  • get_remaining_days_by_employee(self, employee_id)