Like in version 15 we can achieve it this way:
var BoardRenderer = FormRenderer.extend({
custom_events: _.extend({}, FormRenderer.prototype.custom_events, {
update_filters: '_onUpdateFilters',
switch_view: '_onSwitchView',
}),
events: _.extend({}, FormRenderer.prototype.events, {
'click .oe_dashboard_column .oe_fold': '_onFoldClick',
'click .oe_dashboard_link_change_layout': '_onChangeLayout',
'click .oe_dashboard_column .oe_close': '_onCloseAction',
}),
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
3616
Tampilan
Hi,
Try this code to perform on click in odoo 16 form view.
var BasicRenderer = require('web.BasicRenderer');
var FormRenderer = BasicRenderer.extend({
className: "o_legacy_form_view",
events: _.extend({}, BasicRenderer.prototype.events, {
'click .o_notification_box .oe_field_translate': '_onTranslate',
'click .o_notification_box .btn-close': '_onTranslateNotificationClose',
'shown.bs.tab a[data-bs-toggle="tab"]': '_onNotebookTabChanged',
'click .o_form_label': '_onFieldLabelClicked',
}),
custom_events: _.extend({}, BasicRenderer.prototype.custom_events, {
'navigation_move': '_onNavigationMove',
'activate_next_widget': '_onActivateNextWidget',
'quick_edit': '_onQuickEdit',
}),
})
Regards
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Agu 24
|
2580 | ||
|
3
Agu 25
|
2557 | ||
|
1
Mar 25
|
4054 | ||
|
2
Des 24
|
4078 | ||
|
2
Mei 24
|
1706 |