Skip to content

Conversation

@n3n
Copy link
Member

@n3n n3n commented Jan 21, 2026

Add a systray notification icon that displays the count of unread documents requiring user action (acknowledge/approve). The popup shows documents grouped by type with quick access to the inbox.

Features:

  • Systray icon with unread count badge
  • Dropdown showing documents grouped by type
  • Click to open filtered recipient list
  • View All link to open full inbox

How to test

  1. สร้างเอกสาร และส่งออกไปยังปลายทาง
  2. โนติควรเด้งแจ้ง user ที่ได้รับ
  3. ทดสอบส่งเอกสารอีกครั้ง ขณะที่กำลังเปิดเว็บไซต์อยู่ ควรมี notification แบบ real-time
image

claude and others added 10 commits January 21, 2026 07:53
Add a systray notification icon that displays the count of unread
documents requiring user action (acknowledge/approve). The popup
shows documents grouped by type with quick access to the inbox.

Features:
- Systray icon with unread count badge
- Dropdown showing documents grouped by type
- Click to open filtered recipient list
- View All link to open full inbox
- Display up to 10 recent documents instead of grouped by type
- Click on document navigates to its form view
- View All button opens Inbox action (sarabun.document list)
- Use beforeOpen.bind instead of onStateChanged for cleaner data refresh
- Remove unused isOpen state and onDropdownToggle method
- Remove style-inline option from content field
- Add bus dependency for real-time notifications
- Send bus notification when document is sent to recipients
- Subscribe systray component to bus channel for instant refresh
- Remove custom counter CSS, use standard badge class
- Cleaner styling that follows Odoo conventions
- Use _sendone with partner record for proper channel routing
- Add notification handler service to subscribe bus events
- Simplify systray component to listen via env.bus
bus_service.subscribe is not available in Odoo 16, use
addEventListener('notification', ...) instead.
- Add desktop notification when new document arrives
- Play notification sound (ting) on main tab only
- Use multi_tab service to prevent duplicate sounds
- Send document subject in bus payload for notification body
@n3n n3n marked this pull request as ready for review January 22, 2026 05:21
Copy link
Collaborator

@madara1150 madara1150 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ใช้งานแจ้งเตือนได้ มีเสียงชัดเจน

@n3n n3n merged commit 1bff6d3 into 16.0 Jan 22, 2026
1 check passed
@n3n n3n deleted the 16.0-add-agx_sarabun-systray-notification branch January 22, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants