Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Human Resources/Employees
Folder size
0.77 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-08 22:28:52
Authors
Maintainers
None
Committers
Raphael Collet, Christophe Simonis, Odoo Translation Bot, Yannick Tivisse, Odoo Online, Tiffany Chang (tic), Gorash, Abdelouahab (abla), Vincent Larcin, Louis Wicket (wil), alsh-odoo, Yash Vaishnav, Victor Piryns (pivi), Chong Wang (cwg), Simon Goffaux (sigo), bary, Louis (wil), mano-odoo, Mathieu Coutant, Chris Duvivier, “Your, kareem, oumaima-aarabe, Arthur Pierrot, Jurgen Gjini
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_work_entry_holidays
Description

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
hr_contract_view_form_inherit_work_entry hr.contract.view.form.inherit.work.entry hr.contract form Inherits hr_contract.hr_contract_view_form
hr_work_entry_contract_type_view_form_inherit hr.work.entry.type.contract.view.form.inherit hr.work.entry.type form Inherits hr_work_entry.hr_work_entry_type_view_form
hr_work_entry_contract_view_calendar_inherit hr.work.entry.contract.view.calendar.inherit hr.work.entry calendar Inherits hr_work_entry.hr_work_entry_view_calendar
hr_work_entry_contract_view_form_inherit hr.work.entry.contract.view.form.inherit hr.work.entry form Inherits hr_work_entry.hr_work_entry_view_form
hr_work_entry_regeneration_wizard hr_work_entry_regeneration_wizard hr.work.entry.regeneration.wizard form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (5)
  • date_generated_from Datetime
    copy=False default=<expr> readonly=True required=True string='Generated From'
  • date_generated_to Datetime
    copy=False default=<expr> readonly=True required=True string='Generated To'
  • last_generation_date Date
    readonly=True string='Last Generation Date'
  • work_entry_source Selection
    default='calendar' help="\n Defines the source for work entries generation\n\n Working Schedule: Work entries will be generated from the working hours below.\n Attendances: Work entries will be generated from the employee's attendances. (requires Attendance app)\n Planning: Work entries will be generated from the employee's planning. (requires Planning app)\n " required=True args: [('calendar', 'Working Schedule')]
  • work_entry_source_calendar_invalid Boolean
    compute='_compute_work_entry_source_calendar_invalid'
Public methods (3)
  • generate_work_entries(self, date_start, date_stop, force=False)
  • has_static_work_entries(self)
  • write(self, vals)

New fields (0)

No new fields.

Public methods (1)
  • generate_work_entries(self, date_start, date_stop, force=False)

New fields (3)
  • contract_id Many2one → hr.contract
    required=True string='Contract' args: 'hr.contract'
  • employee_id Many2one
    domain=[('contract_ids.state', 'in', ('open', 'pending'))]
  • work_entry_source Selection
    related='contract_id.work_entry_source'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • init(self)

New fields (10)
  • date_from Date
    default=<expr> required=True args: 'From'
  • date_to Date
    compute='_compute_date_to' default=<expr> readonly=False required=True store=True args: 'To'
  • earliest_available_date Date
    compute='_compute_earliest_available_date' args: 'Earliest date'
  • earliest_available_date_message Char
    default='' readonly=True store=False
  • employee_ids Many2many → hr.employee
    domain=<expr> required=True string='Employees' args: 'hr.employee'
  • latest_available_date Date
    compute='_compute_latest_available_date' args: 'Latest date'
  • latest_available_date_message Char
    default='' readonly=True store=False
  • search_criteria_completed Boolean
    compute='_compute_search_criteria_completed'
  • valid Boolean
    compute='_compute_valid'
  • validated_work_entry_ids Many2many → hr.work.entry
    compute='_compute_validated_work_entry_ids' string='Work Entries Within Interval' args: 'hr.work.entry'
Public methods (1)
  • regenerate_work_entries(self)

New fields (1)
  • is_leave Boolean
    default=False help='Allow the work entry type to be linked with time off types.' string='Time Off'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…