I have a wizard in a custom module.
When I click on the main button, it redirects me to my custom view and the breadcrumb is updated well, but the problem is that the previous links remain in the breadcrumb. I do not want to keep the previous links in the breadcrumb.
Is it possible to "clean" the breadcrumb after the wizard? (And put only the new link)
More info:
This is the code for the main button action of the wizard:
def custom_main_button_action(self):
...(my stuff)...
return {
'type': 'ir.actions.act_window',
'name': _('My_Name)'),
'res_model': 'my_model',
'view_type': 'form',
'view_mode': 'tree, form',
'target': 'current',
'views': [(tree_id.id, 'tree'), (form_id.id, 'form')],
}
Try this: https://learnopenerp.blogspot.com/2020/08/hide-breadcrumb-in-odoo.html