Skip to content

[17.0][ADD] helpdesk_mgmt_partner_dashboard: New Module - #1093

Open
cgarcia-solvos wants to merge 1 commit into
OCA:17.0from
solvosci:17.0-add-helpdesk_mgmt_partner_dashboard
Open

cgarcia-solvos wants to merge 1 commit into
OCA:17.0from
solvosci:17.0-add-helpdesk_mgmt_partner_dashboard

Conversation

@cgarcia-solvos

@cgarcia-solvos cgarcia-solvos commented Aug 25, 2026 •

Copy link
Copy Markdown

Replace the Helpdesk team dashboard with one grouped by partner.

imagen

@OCA-git-bot OCA-git-bot added series:17.0 mod:helpdesk_mgmt_partner_dashboard Module helpdesk_mgmt_partner_dashboard labels Aug 25, 2026
@cgarcia-solvos
cgarcia-solvos force-pushed the 17.0-add-helpdesk_mgmt_partner_dashboard branch 3 times, most recently from 412abee to cce5c5c Compare August 25, 2026 10:36

@dalonsod dalonsod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only code review, see initial comments.

And also, grouping partners attending at their hierarchy could be a better option. Only partners with no parent should be displayed, and for a certain partner, tickets count should include their tickets and for their childrens as well.

@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="utf-8" ?>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are two different models with views here, please separate them (a view file for each model)


<record id="helpdesk_ticket_partner_kanban_view" model="ir.ui.view">
<field name="name">helpdesk.ticket.partner.kanban</field>
<field name="model">res.partner</field>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In order to prevent that this view is used as normal kanban view from other res.partner actions, set a low priority.

<field name="name">helpdesk.ticket.partner.kanban</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<kanban class="oe_background_grey o_kanban_dashboard" create="0">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to add partner avatar/image to this view?

<record id="helpdesk_ticket_partner_tree_view" model="ir.ui.view">
<field name="name">helpdesk.ticket.partner.tree</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regarding view priority, the same as above

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

All done!

@cgarcia-solvos
cgarcia-solvos force-pushed the 17.0-add-helpdesk_mgmt_partner_dashboard branch 7 times, most recently from c015b8b to e844929 Compare August 26, 2026 11:10
"version": "17.0.1.0.0",
"license": "AGPL-3",
"category": "After-Sales",
"author": "Odoo Community Association (OCA)",

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.

Its author is missing.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

True, thanks!

@cgarcia-solvos
cgarcia-solvos force-pushed the 17.0-add-helpdesk_mgmt_partner_dashboard branch from e844929 to 6ca99cc Compare August 26, 2026 12:02

@dalonsod dalonsod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Functional review, see comment

todo_ticket_count = fields.Integer(
string="Number of tickets",
compute="_compute_todo_tickets",
store=True,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

By default, compute method for stored fields is executed as sudo (compute_sudo=True); when the field is not stored user's permissions are taken in account, because sudo is not used.

Then, store=True here has an undesired effect: users see that there are some tickets to do, and when are trying to access them, they're gone (e.g. those tickets that belong to other users, for a user with limited access to its own tickets). For these count fields store=True should be avoided.

Please take a look and try to move this field back to store=False, in order to be applied again user's permissions.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done!

@cgarcia-solvos
cgarcia-solvos force-pushed the 17.0-add-helpdesk_mgmt_partner_dashboard branch 3 times, most recently from 9c97ce8 to c361ecc Compare August 27, 2026 07:43

@dalonsod dalonsod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Search technique for todo_ticket_count is a little strange for me, but it seems to work, for the desired purpose is ok.

@dalonsod

Copy link
Copy Markdown
Contributor

@ChristianSantamaria @IriaAlonso could you review? Thanks!

@IriaAlonso IriaAlonso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@cgarcia-solvos
cgarcia-solvos force-pushed the 17.0-add-helpdesk_mgmt_partner_dashboard branch from c361ecc to 3dd1714 Compare September 21, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:helpdesk_mgmt_partner_dashboard Module helpdesk_mgmt_partner_dashboard series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants