Skip to content

Commit

Permalink
[UPD] precommit run fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IJOL committed Sep 5, 2024
1 parent 360e8af commit 157eca7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web_timeline/static/src/js/timeline_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
});
const fieldType = fields[grouped_field].type;
const relation = fields[grouped_field].relation;
if ((fieldType === "many2one" || fieldType === "many2many") &&
relation ) {
if ((fieldType === "many2one" || fieldType === "many2many") && relation) {
fieldsRelation = await this._rpc({
model: relation,
method: "fields_get",
Expand Down Expand Up @@ -423,7 +422,6 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
continue;
}


if (fieldType === "many2one") {
if (hasSequence) {
const group_data = await this._rpc({
Expand Down Expand Up @@ -500,9 +498,9 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
} else {
date_stop = this.date_stop
? time.auto_str_to_date(
evt[this.date_stop].split(" ")[0],
"stop"
)
evt[this.date_stop].split(" ")[0],
"stop"
)
: null;
}
} else {
Expand Down

0 comments on commit 157eca7

Please sign in to comment.