I am using a button on the sales order which makes a change and refreshes the form view. The functionality works exactly how I want except it adds an identical breadcrumb each time.
I end up with something like this:
The button I'm using returns the following code:
return {
'name':_("Quotes"),
'type': 'ir.actions.act_window',
'res_model': 'sale.order',
'res_id': order.id,
'view_mode': 'form',
'view_type': 'form',
'view_id': False,
'nodestroy': True,
'domain': '[]'
}
How can I prevent this from adding a new breadcrumb each time?