تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4211 أدوات العرض
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?
الصورة الرمزية
إهمال

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

الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
1581
1
أكتوبر 23
2482
2
يوليو 24
1376
2
يونيو 23
2206
2
سبتمبر 21
4750