Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1782 Vizualizări

Is it possible to create a window action to automatically apply a filter where origin is either 1 or 2? Something like:

{
            'name': 'Window',
            'type': 'ir.actions.act_window',
            'res_model': 'stock.picking',
            'target': 'current',
            'view_mode': 'tree,form',
            'domain': domain,
            'context': {'search_default_origin': ['1','2']
}

I'm trying to ultimately add a filter to a view so if a use creates a custom filter, I can replicate it on the next screen.

When I run the above context with the window action, Odoo seems to be searching for origin to contain the literal string 1,2.

I can use a domain but I'd like to use a filter so that the user can remove the filter if they choose.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
oct. 22
3431
1
sept. 22
3635
0
aug. 22
3307
1
ian. 24
2265
0
mai 22
1774