Skip to content

[18.0][IMP] helpdesk_mgmt: Add exclude_from_count field on stages#925

Open
JulienMartinez wants to merge 1 commit intoOCA:18.0from
JulienMartinez:IMP-18.0-add-exclude-stage-from-count
Open

[18.0][IMP] helpdesk_mgmt: Add exclude_from_count field on stages#925
JulienMartinez wants to merge 1 commit intoOCA:18.0from
JulienMartinez:IMP-18.0-add-exclude-stage-from-count

Conversation

@JulienMartinez
Copy link

Description

This PR adds the ability to exclude certain ticket stages from the team dashboard counters.

Use Case

Some stages like "Waiting for Customer Feedback" or "On Hold" should not be counted in the "TODO" counter as they are pending external action and don't represent actual work in progress for the team.

Changes

  • Add exclude_from_count boolean field on helpdesk.ticket.stage
  • Modify _compute_todo_tickets to filter out excluded stages
  • Add UI elements in form and tree views for the new field

How to Test

  1. Install/upgrade the helpdesk_mgmt module
  2. Go to Helpdesk → Configuration → Stages
  3. Open a stage
  4. Check the "Exclude from Counter" checkbox
  5. Create tickets in this stage
  6. Verify that these tickets are NOT counted in the team dashboard "X TODO" counter
  7. Uncheck the box and verify the counter updates correctly

Screenshots

Screenshot 2026-01-21 at 11-29-13 Odoo - Waiting for Customer Screenshot 2026-01-21 at 11-29-26 Odoo - Stages Screenshot 2026-01-21 at 11-29-38 Odoo - Helpdesk Ticket Screenshot 2026-01-21 at 11-29-47 Odoo - Dashboard

@JulienMartinez JulienMartinez force-pushed the IMP-18.0-add-exclude-stage-from-count branch 2 times, most recently from 7b84a22 to 0bc38d7 Compare January 21, 2026 12:09
Allow to exclude certain ticket stages from the team dashboard counters.
This is useful for stages like 'Waiting for Customer' where tickets
should not be counted in the 'TODO' counter.

Also fixes missing dependency on ticket_ids.closed in _compute_todo_tickets
which prevented the counter from updating when tickets are closed.
@JulienMartinez JulienMartinez force-pushed the IMP-18.0-add-exclude-stage-from-count branch from 0bc38d7 to 87f16ef Compare January 21, 2026 12:17
Copy link
Member

@flotho flotho left a comment

Choose a reason for hiding this comment

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

Hi,

Thanks for this great improvement, even with tests !
Code review LGTM

Copy link

@DorianMAG DorianMAG left a comment

Choose a reason for hiding this comment

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

Thx for this feature.
Code review and functional test OK.
LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Member

@marcelsavegnago marcelsavegnago left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants