I have a custom button on tree view to open a record. It properly opens the record on clicking the button with form view and getting proper breadcrumb(Menu_name / record name) but when i am refreshing the form view it changes the breadcrumb to only record name not menu_name / record_name.
Here is the code for action on button click :-
def button_action(self): return { 'name': ('Test), 'type': 'ir.actions.act_window', 'view_type': 'form', 'view_mode': 'form', 'target': 'current', 'res_model': 'module.name', 'res_id': self.id, # 'action':70 }This is the action i am using when button is clicked. What can be the solution for this? Is there any way i can solve this? Please let me know if any solution is there for this.