web_ir_actions_act_multi v16 - problem with 'target'

Aperta
#3,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, python
Ambito
frontend

Direzione di ricerca

Start by locating the web_ir_actions_act_multi implementation in the OCA/web repository and trace how it handles ir.actions.act_url entries with target: 'self'. Compare that path with target: 'new' and check the relevant action tests. Done means multiple attachment downloads run with the current tab retained; the issue does not name a file or test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

web_ir_actions_act_multi

Hello, I noticed problem that if inside "actions", one of the actions has ('target': 'self'), it is running only one action.
Anybody encountered thats too ? When '(target': 'new'), everything is working properly.
I am trying to download multiple attachments but without opening new tabs.

inside "actions" there are list of:

'type': 'ir.actions.act_url',
'url': f"/web/content/{attachment.id}?download=true",
'target': 'self',

My multi action.
return {
'type': 'ir.actions.act_multi',
'actions': actions,
'target': 'self',
}

Did anybody encounter that too ? Is that normal behaviour ?

Lingua principale
JavaScript
Stelle
1.2k
Fork
2.2k
Merge medio
3g 15h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OCA/web

Tutte le issue di OCA/web

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.