web notify addons---show message in wrong window

Open
#3,218 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by locating the web notify addon and tracing how it selects the browser page that receives a notification. Reproduce the report with two open Odoo pages, then check whether the notification is routed to the active page. Done means a notification sent from page A appears only in page A; the issue names no source file or test.

Written by the indexing model from the issue text.

Description

bug

if you open multi web pages, such as A,B.C
now you stay in page A and send a web notify message, it will be send to page B and show message on page B.

Module

web notify

Describe the bug

if you open multi web pages, such as A,B.C
now you stay in page A and send a web notify message, it will be send to page B and show message on page B.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. login odoo and open mutily pages
  2. send a web notify message in page a
  3. the message will be send to page b

Expected behavior
the message should be send only to the page which you are staying now. but not another page.

Additional context
No

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.