Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2456 Ansichten

I open an action window from python. The breadcrumb seems fine when I run the action.

The problem raises when I refresh the page, the upstream route is disappeared form the breadcrumb, and the page only shows the current page name that I've set in python.


Here is my code

def open_invoice(self):

self.ensure_one()

return {

'name': 'Customer Invoice',

'type': 'ir.actions.act_window',

'view_mode': 'list,form',

'res_model': 'invoice_module.invoice',

}

Any help would be appreciated.
Avatar
Verwerfen

This is normal in Odoo.

Beste Antwort

Hi, try this. Hope it helps :)
def open_invoice(self):

self.ensure_one()

return {

'name': 'Customer Invoice',

'type': 'ir.actions.act_window',

'view_mode': 'list,form',

'res_model': 'invoice_module.invoice',

'target': 'main'

}

Avatar
Verwerfen
Autor Beste Antwort

Thanks for your answer,

I doubt it is normal, since switching between list and form works as expected.

However, I can confirm that there are a lot of pages that suffer from the same issue. Even in the Enterprise version!


Regarding target: main, it totally removes the breadcrumb.

Avatar
Verwerfen