Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1597 Lượt xem

How do I change the url ( onclick ) for Documentation, Support , Shortcuts when I click on the profile Icon of the user.


https://ibb.co/S7Fr78y

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
odoo.define('module_name.UserMenu', function (require) {
"use strict";
var UserMenu = require('web.UserMenu');
var support_url = 'https://www.xyz.com';
var account_url = 'https://www.xyz.cn';
var documentation_url = 'https://www.xyz.com';

UserMenu.include({
_onMenuAccount: function () {
window.open(account_url, '_blank');
},
_onMenuDocumentation: function () {
window.open(documentation_url, '_blank');
},
_onMenuSupport: function () {
window.open(support_url, '_blank');
},
})});

Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
    

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you.

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
2651
0
thg 8 25
201
1
thg 8 25
2161
2
thg 7 25
8060
2
thg 7 25
4519