Skip to content

Commit

Permalink
[16.0][IMP] hr_planning_resources: Refactoring app
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniodavid committed Jan 6, 2025
1 parent dfe005d commit 227183c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hr_planning_resources/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "16.0.1.0.7",
"category": "Human Resources",
"website": "https://github.com/OCA/resource",
"author": "Binhex,Odoo Community Association (OCA)",
"author": "Binhex, Odoo Community Association (OCA)",
"depends": [
"hr_planning_oca",
],
Expand Down
3 changes: 2 additions & 1 deletion hr_planning_resources/models/hr_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def format_period_leave(period, prefix):
dto = period["to"]

Check warning on line 88 in hr_planning_resources/models/hr_leave.py

View check run for this annotation

Codecov / codecov/patch

hr_planning_resources/models/hr_leave.py#L86-L88

Added lines #L86 - L88 were not covered by tests
if period.get("show_hours", False):
return _(

Check warning on line 90 in hr_planning_resources/models/hr_leave.py

View check run for this annotation

Codecov / codecov/patch

hr_planning_resources/models/hr_leave.py#L90

Added line #L90 was not covered by tests
"{prefix} from the {dfrom_date} at {dfrom_time} to the {dto_date} at {dto_time}"
"{prefix} from the {dfrom_date} at {dfrom_time} to "
"the {dto_date} at {dto_time}"
).format(
prefix=prefix,
dfrom_date=format_date(self.env, localize(dfrom)),
Expand Down
4 changes: 3 additions & 1 deletion hr_planning_resources/static/src/js/timeline_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ odoo.define("hr_task_planner.timeline_renderer", function (require) {
}),
_onNewTask: function (ev) {
ev.preventDefault();
this.on_add(ev, () => {});
this.on_add(ev, () => {
console.log("on_add");
});
},
});
});

0 comments on commit 227183c

Please sign in to comment.