Repository
OCA/project · module folder · Try on Runboat
Module version
1.0.0
Category
Project
Folder size
0.74 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/project
Last tracking update
2026-08-07 07:47:36
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Ernesto Tejeda, Weblate, OCA Transbot, OCA-git-bot, oca-travis, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
event_project
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
edit_project_recalculate project.project Inherits project.edit_project
task_type_edit project.task.type Inherits project.task_type_edit
view_task_form2_inherited project.task Inherits hr_timesheet.view_task_form2_inherited
wizard_project_recalculate_form project.recalculate.wizard.form project.recalculate.wizard form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • calculation_type Selection
    default=False help='How to calculate tasks, with date start or date end references. If not set, "Recalculate project" button is disabled.' string='Calculation type' args: [('date_begin', 'Date begin'), ('date_end', 'Date end')]
Public methods (1)
  • project_recalculate(self)
    Recalculate project tasks start and end dates. After that, recalculate new project start or end date

New fields (3)
  • calculation_type Selection
    readonly=True related='project_id.calculation_type' string='Calculation type'
  • project_date Date
    readonly=True
  • project_id Many2one → project.project
    comodel_name='project.project' readonly=True string='Project'
Public methods (2)
  • confirm_button(self)
  • default_get(self, fields_list)
    @api.model

New fields (4)
  • date_start Datetime
    copy=False default=fields.Datetime.now index=True string='Starting Date'
  • estimated_days Integer
    default=1 help='Estimated days to end' string='Estimated days'
  • from_days Integer
    default=0 help='Anticipation days from date begin or date end' string='From days'
  • include_in_recalculate Boolean
    readonly=True related='stage_id.include_in_recalculate'
Public methods (2)
  • task_recalculate(self)
    Recalculate task start date and end date depending on project calculation_type, estimated_days and from_days.
  • write(self, vals)

New fields (1)
  • include_in_recalculate Boolean
    default=True help="If you mark this check, tasks that are in this stage will be selectable for recalculating their dates when user click on 'Recalculate project' button." string='Include in project recalculate'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • get_working_days_of_date(self, start_dt=None, end_dt=None, resource=None)
  • plan_days_to_resource(self, days, day_dt, compute_leaves=False, resource=None, domain=None)

Loading…

Loading…

Loading…

Loading…