Skip to content

Commit

Permalink
[FIX] lint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Dec 29, 2023
1 parent 0f64af1 commit 3d8250a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions project_time_in_day/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ class ProjectProject(models.Model):
_inherit = "project.project"

def _get_hour_domain(self):
return [("category_id", "=", self.env.ref("uom.uom_categ_wtime").id), ("uom_type", "=", "smaller")]
return [
("category_id", "=", self.env.ref("uom.uom_categ_wtime").id),
("uom_type", "=", "smaller"),
]

hour_uom_id = fields.Many2one(
"uom.uom", "Hour Uom", help="Used for conversion between day and hours",
domain=_get_hour_domain
"uom.uom",
"Hour Uom",
help="Used for conversion between day and hours",
domain=_get_hour_domain,
)

def _get_hour_uom(self):
Expand Down

0 comments on commit 3d8250a

Please sign in to comment.