I need to realize this function for backend form view:
inherited XML:
<div id="target">Click here</div>
Javascript:
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Thanks in advance for example or link.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I need to realize this function for backend form view:
inherited XML:
<div id="target">Click here</div>
Javascript:
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Thanks in advance for example or link.
I found a solution:
Javascript:
openerp.my_module= function(instance) {
instance.web.FormView = instance.web.FormView.extend({
events: {
'click #target': 'button_clicked',
},
button_clicked: function() {
alert('Handler for .click() called.')
},
});
}
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Ara 22
|
2469 | ||
|
1
Kas 19
|
18385 | ||
|
0
Ara 21
|
3879 | ||
|
0
Haz 25
|
340 | ||
|
1
Haz 25
|
651 |