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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
3540
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
ago 24
|
2438 | ||
|
1
mar 25
|
3959 | ||
|
2
dic 24
|
3759 | ||
|
1
oct 24
|
1975 | ||
|
2
may 24
|
1610 |