web_ir_actions_act_multi v16 - problem with 'target'

Open
#3,138 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, python
Domain
frontend

Research direction

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.

Written by the indexing model from the issue text.

Description

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 ?

Dominant language
JavaScript
Stars
1.2k
Forks
2.2k
Avg merge
3d 15h
Merged PRs (30d)
30

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OCA/web

All issues in OCA/web

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.