Skip to content

Commit

Permalink
helpdesk_mgmt: Tickets always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo committed Mar 6, 2024
1 parent ff9d29b commit f707e78
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpdesk_mgmt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"views/helpdesk_ticket_views.xml",
"views/helpdesk_dashboard_views.xml",
],
"assets": {
"web.assets_frontend": [
"helpdesk_mgmt/static/src/js/portal.js",
]
},
"demo": ["demo/helpdesk_demo.xml"],
"development_status": "Beta",
"application": True,
Expand Down
15 changes: 15 additions & 0 deletions helpdesk_mgmt/static/src/js/portal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
odoo.define("helpdesk_mgmt.portal", function (require) {
"use strict";

var publicWidget = require("web.public.widget");

publicWidget.registry.PortalHomeCounters.include({
/**
* @override
*/
_getCountersAlwaysDisplayed() {
// We want to always show the tickets entry
return this._super(...arguments).concat(["ticket_count"]);
},
});
});

0 comments on commit f707e78

Please sign in to comment.