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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
4181
Lượt xem
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 11 24
|
1532 | ||
|
1
thg 10 23
|
2454 | ||
|
2
thg 7 24
|
1359 | ||
Create function problem
Đã xử lý
|
|
2
thg 6 23
|
2183 | |
|
2
thg 9 21
|
4697 |
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.
my problem is on this page: https://github.com/odoo/enterprise/blob/15.0/project_enterprise/static/src/js/connector/connector.js
the path in odoo master is here: https://github.com/odoo/enterprise/blob/master/web_gantt/static/src/js/connector/connector.js
404: Pages not found..
I hope you resolve your issue.
Best of luck