Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
Hi,
I want to override the following js function in this path ("Odoo 15" Enterprise: project_enterprise/static/src/js/connector/connector.js)

i tried this code:

odoo.define(
"connector_fixed",
function (require) {
"use strict";

const components = {
Connector: require("project_enterprise/static/src/js/connector/connector.js"),
};
const { patch } = require("web.utils");

patch(
components.Connector,
"connector_fixed",
{
_getPathInfo(source, target, slackness) {
//mycode
},
}
);
}
);

but this code can't handle dependecies
i got this
console.error:

Missing dependencies:
Array [ "project_enterprise/static/src/js/connector/connector.js"]

how should I override this function?
Avatar
Annuleer

I checked the path. I don't find any connector folder under js folder in project_enterprise module...

Auteur

you should check Odoo enterprise repository

i checked all files in module project_enterprise qs you mentioned. no folder called connector.

404: Pages not found..
I hope you resolve your issue.
Best of luck

Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
1535
1
okt. 23
2458
2
jul. 24
1364
2
jun. 23
2191
2
sep. 21
4706