Skip to content

[16.0][FIX] shift : hide parent name in kanban view#596

Merged
github-grap-bot merged 1 commit into
16.0from
16.0-fix-shift-kanban-worker-name
Jul 15, 2026
Merged

[16.0][FIX] shift : hide parent name in kanban view#596
github-grap-bot merged 1 commit into
16.0from
16.0-fix-shift-kanban-worker-name

Conversation

@mihien

@mihien mihien commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

Replace display_name by name for workers list, so that in kanban view parent partner doesn't appear in the list.

Odoo task (if applicable)

16701

Checklist before approval

  • Tests are present (or not needed).
  • Credits/copyright have been changed correctly.
  • Change log snippet is present.
  • (If a new module) Moving this to OCA has been considered.

@mihien

mihien commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

The field worker_name isn't used anywhere else than in the kanban view. I'm assuming the field has been created solely in the purpose to fill the kanban list. So changing display_name to name shouldn't have any non-desirable effect anywhere else.

@huguesdk huguesdk left a comment

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.

/ocabot merge patch

@github-grap-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-596-by-huguesdk-bump-patch, awaiting test results.

@github-grap-bot github-grap-bot merged commit c55c35c into 16.0 Jul 15, 2026
2 checks passed
@github-grap-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 60f212a. Thanks a lot for contributing to beescoop. ❤️

@github-grap-bot github-grap-bot deleted the 16.0-fix-shift-kanban-worker-name branch July 15, 2026 15:05
@huguesdk huguesdk changed the title [16.0][FIX] shift : hide parent parent name in kanban view [16.0][FIX] shift : hide parent name in kanban view Jul 15, 2026
Comment thread shift/models/planning.py
Comment on lines +275 to +277
# 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"))

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants