I cant the load js on odoo17

I try to upgrade module from odoo14 to odoo7 but when I try to do upgrade I have Issue in js I cant loaded Js even I define the path in manifest
I need Help

We have a custom JavaScript module in Odoo that is responsible for handling notifications via a bus service and displaying them in a dialog. This setup was functioning correctly in Odoo 14 but is now encountering issues after migrating to Odoo 17.

Problem Description
The JavaScript module does not seem to load or function as expected in Odoo 17. We suspect there might be changes in how Odoo 17 handles JavaScript modules and their dependencies.
odoo.define(‘announcements.NotificationManager’, function (require) {
“use strict”;

// Require necessary dependencies
var AbstractService = require('web.AbstractService');
var core = require('web.core');
var Dialog = require('web.Dialog');
var rpc = require('web.rpc');

// Define a new service called SHNotificationManager that extends AbstractService
var SHNotificationManager = AbstractService.extend({
    dependencies: ['bus_service'], // Declare dependency on bus_service

    /**
     * @override
     * Start the service and register a listener for notifications
     */
    start: function () {
        this._super.apply(this, arguments); // Call the parent start method
        this.call('bus_service', 'onNotification', this, this._onNotification); // Register notification listener
    },

    /**
     * Callback function for handling incoming notifications
     * @param {Array} notifs - Array of notifications
     */
    _onNotification: function (notifs) {
        var self = this;
        _.each(notifs, function (notif) {
            var options = {
                model: notif[0][1], // Notification model name
                type: notif[1].type, // Notification type
                title: notif[1].title || 'Notification', // Notification title (default if null)
                message: notif[1].message || 'No message', // Notification message (default if null)
                id: notif[1].id, // Notification record ID
            };

            // Check if the notification is for the res.partner model and has the 'announcements_dialog' type
            if (options.model === 'res.partner' && options.type === 'announcements_dialog') {
                self._showDialog(options); // Show the dialog with the notification details
            }
        });
    },

    /**
     * Show a dialog with the notification details
     * @param {Object} options - Notification options
     */
    _showDialog: function (options) {
        var dialog = new Dialog(this, {
            title: options.title, // Dialog title
            message: options.message, // Dialog message
            size: 'medium', // Dialog size
            $content: $('<div>').html(options.message), // Dialog content
            buttons: [{
                text: 'Close',
                classes: 'btn-primary',
                close: true,
            }],
        });

        dialog.on('closed', this, function () {
            rpc.query({
                model: 'user.notify',
                method: 'close_notify',
                args: [options.id],
            });
        });
        dialog.open(); // Open the dialog
    },
});

// Register the SHNotificationManager service with the core service registry
core.serviceRegistry.add('announcements_notification_service', SHNotificationManager);

// Return the SHNotificationManager service
return SHNotificationManager;

});

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật