Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shift/models/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ def _compute_remaining(self):
@api.depends("worker_ids")
def _compute_worker_name(self):
for rec in self:
rec.worker_name = ",".join(rec.worker_ids.mapped("display_name"))
# name rather than display_name, so the parent doesn't appear
# on worker list in kanban
rec.worker_name = ",".join(rec.worker_ids.mapped("name"))
Comment on lines +275 to +277

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it’s good to have a comment, but as this explains the change and not the why this line is here, it’s better to put it in the commit message (next time). feel free to give as much explanation as relevant in the commit message. it’s even better there than in the pull request, as it’s easier to find back when inspecting the code.


@api.constrains("worker_nb", "worker_ids")
def _nb_worker_max(self):
Expand Down
Loading