Skip to content

Commit

Permalink
project_time_in_day : pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Jul 16, 2024
1 parent fc07376 commit c21d7f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 3 additions & 9 deletions project_time_in_day/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
class ProjectTask(models.Model):
_inherit = "project.task"

planned_days = fields.Float(
"Planned Days", compute="_compute_planned_days", store=True
)
remaining_days = fields.Float(
"Remaining Days", compute="_compute_remaining_days", store=True
)
effective_days = fields.Float(
"Effective Days", compute="_compute_effective_days", store=True
)
planned_days = fields.Float(compute="_compute_planned_days", store=True)
remaining_days = fields.Float(compute="_compute_remaining_days", store=True)
effective_days = fields.Float(compute="_compute_effective_days", store=True)

@api.depends("planned_hours", "project_id.hour_uom_id")
def _compute_planned_days(self):
Expand Down
1 change: 1 addition & 0 deletions setup/project_time_in_day/odoo/addons/project_time_in_day
6 changes: 6 additions & 0 deletions setup/project_time_in_day/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit c21d7f5

Please sign in to comment.