Skip to Content
Menu
This question has been flagged
2 Replies
4098 Views

I meet this error after installed my custom module. When debug with assets, I found that error come from 'web/static/src/js/core/service_mixins.js'.

'''
_deployServices: function () { var self = this; var done = false; while (!done) { var serviceName = _.findKey(this.UndeployedServices, function (Service) { // no missing dependency return !_.some(Service.prototype.dependencies, function (depName) { return !self.services[depName]; }); }); if (serviceName) { var service = new this.UndeployedServices[serviceName](this); this.services[serviceName] = service; delete this.UndeployedServices[serviceName]; service.start(); } else { done = true; } } },
'''

Can anyone tell me why this error occurs and how can I fix it?
My Odoo is on version 12. 
Thank you.


Avatar
Discard
Best Answer

The error message you provided is not specific, so it is difficult to determine the root cause of the issue. However, the code snippet you shared is related to the deployment of services in the Odoo web client.

Here are some general troubleshooting steps you can take:

Check the server logs: Go to the Odoo server logs (usually located in the server's log directory) and look for any error messages related to your custom module. This may provide more information about the cause of the error.

Check the dependencies: Make sure that your custom module has all the required dependencies installed and configured correctly. You can check the dependencies by looking at the __manifest__.py file in your module's root directory.

Check the service code: If the error message is related to service deployment, you may want to check the service code in your custom module. Make sure that the service is defined correctly and that any dependencies are imported and configured correctly.

Try disabling the custom module: If you are unable to resolve the issue, try disabling the custom module and see if the error message disappears. If it does, then the issue is likely related to your custom module and you may need to further investigate the code.

If you are still unable to resolve the issue, If you could provide more details about your custom module and the error message you are seeing, I might be able to help you better.

Avatar
Discard
Author Best Answer

Thanks for your response Geek Boy. I still get stuck in this bug, but I think you are right about the cause of it. It seem like module web.web_client has trouble with its dependency(web.WebClient). You can see more detail below.

  1. web.web_client:
    1. dependencies: ['web.WebClient']
    2. dependents: (3) ['root.widget''web.ChangePassword''website.backend.dashboard']
    3. error: TypeError: Cannot read properties of undefined (reading 'dependencies') at http://localhost:8069/web/static/src/js/core/service_mixins.js
    4. name: "web.web_client"
    5. [[Prototype]]: Object


Avatar
Discard