Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] web_notify: Migration to 18.0 #2956

Merged
merged 73 commits into from
Oct 23, 2024

Commits on Oct 14, 2024

  1. New module web_notify

    This technical module allows you to send instant notification messages from the server to the user in live.
    lmignon authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7b60962 View commit details
    Browse the repository at this point in the history
  2. [MIG] Make modules uninstallable

    pedrobaeza authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a99b7f2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2be1034 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5733994 View commit details
    Browse the repository at this point in the history
  5. Update web_client.js

    JayVora-SerpentCS authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    5bb1e7c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5a1285d View commit details
    Browse the repository at this point in the history
  7. [10.0][FIX] web_notify tests: Fix an arg check

    Fix a check when comparing a user count with items within a mock call.
    
    The previous method was succeeding by pure luck because OCA test
    databases contain 2 users, which happens to be the amount of items
    within a mock "call_args" (it contains args + kwargs).
    houzefa-abba authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ed2e6f0 View commit details
    Browse the repository at this point in the history
  8. [MIG] web_notify: Migration to 11.0

    - Use the 'session' class of the JS Framework (session no lounger bound
    to web client)
    - Test change: compare emitted & received messages based on content, not
    order. Using string comparison raises false positives.
    bouvyd authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    687baa8 View commit details
    Browse the repository at this point in the history
  9. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100,0% (5 of 5 strings)
    
    Translation: web-11.0/web-11.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_notify/pt_BR/
    Rodrigo Macedo authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6d8243a View commit details
    Browse the repository at this point in the history
  10. Translated using Weblate (Danish)

    Currently translated at 40.0% (2 of 5 strings)
    
    Translation: web-11.0/web-11.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_notify/da/
    hhgabelgaard authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    678fdf6 View commit details
    Browse the repository at this point in the history
  11. Prevent to send web notifications to other users

    Only the admin user (sudo) is allowed to send notifications to other
    users. The normal users can only send notifications to themselves.
    
    This is to prevent attackers to craft malicious notifications and send
    them to other users using RPC.
    
    Correction based on the idea of @hbrunn
    guewen authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    619e5fe View commit details
    Browse the repository at this point in the history
  12. [MIG] web_notify: Migration to 12.0

    Add self-test buttons in demo environment,
    Updated readme to show how to test it.
    Add buttons to users form
    Do not rely on SUPERUSER_ID and avoid getattr usage
    aitorbouzas authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0e736e6 View commit details
    Browse the repository at this point in the history
  13. Update translation files

    Updated by Update PO files to match POT (msgmerge) hook in Weblate.
    oca-transbot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cd0a6c9 View commit details
    Browse the repository at this point in the history
  14. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    869bc3c View commit details
    Browse the repository at this point in the history
  15. [12.0] web_notify: improve popup UI (OCA#1231)

    * [ADD]: all available bootstrap notifications (success/danger/warning/info/default)
    * [IMP] use black color for text for default notification.
    * [FIX] reverted require string for `bus.Longpolling` and rename `on_message_received` to `on_message` to prevent collisions.
    shepilov-vladislav authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    246bf34 View commit details
    Browse the repository at this point in the history
  16. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-12.0/web-12.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_notify/
    oca-transbot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    55b5d41 View commit details
    Browse the repository at this point in the history
  17. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-12.0/web-12.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_notify/
    oca-transbot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d10cef9 View commit details
    Browse the repository at this point in the history
  18. [FIX] web_notify attempt to fix void messages (OCA#1249)

    It seems besides the custom channels provided in this addon it also catches messages from other channels. E.g. in this case it seems the void popup is triggered by these activity creation bus messages.
    
    **Steps to reproduce**
    
    Odoo commit: could reproduce on 5e8b667951 and 4da82776ff
    OCA/web commit: 2465278
    
    * Install crm and web_notify modules
    * Create an activity for yourself (tried for admin user)
    * Empty popup appears
    
    **Attempt to solve**
    
    It seems the bus handles all messages non exclusively. I've hacked in a conditional to handle only messages from web_notify addon, but its unclear wether this does not break something else.
    kkarolis authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ee4ee80 View commit details
    Browse the repository at this point in the history
  19. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    faf4fda View commit details
    Browse the repository at this point in the history
  20. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-12.0/web-12.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_notify/pt_BR/
    Rodrigo Macedo authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    dec1235 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1de1e41 View commit details
    Browse the repository at this point in the history
  22. Translated using Weblate (Chinese (Simplified))

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-12.0/web-12.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_notify/zh_CN/
    liweijie0812 authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4f336af View commit details
    Browse the repository at this point in the history
  23. [REF] web_notify: Black python code

    laurent.corron authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9cde71a View commit details
    Browse the repository at this point in the history
  24. [MIG] web_notify: Migration to 13.0

    laurent.corron authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2cf6728 View commit details
    Browse the repository at this point in the history
  25. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-13.0/web-13.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_notify/
    oca-transbot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f4da78d View commit details
    Browse the repository at this point in the history
  26. [IMP] pre-commit run after update

    Includes some manual fixes to silent ESLint warnings.
    Jairo Llopis authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    44718dc View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8fc51f3 View commit details
    Browse the repository at this point in the history
  28. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7306d3a View commit details
    Browse the repository at this point in the history
  29. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6496afe View commit details
    Browse the repository at this point in the history
  30. Translated using Weblate (German)

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-13.0/web-13.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_notify/de/
    didierdonze authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a7f57e2 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    3870973 View commit details
    Browse the repository at this point in the history
  32. web_notify 13.0.1.0.1

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    397241d View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    295eb28 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4ea425f View commit details
    Browse the repository at this point in the history
  35. Added translation using Weblate (Dutch)

    bosd authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0bab031 View commit details
    Browse the repository at this point in the history
  36. Translated using Weblate (Dutch)

    Currently translated at 42.8% (9 of 21 strings)
    
    Translation: web-14.0/web-14.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_notify/nl/
    bosd authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    abcb9b3 View commit details
    Browse the repository at this point in the history
  37. web_notify: bump dev status

    It exists since many version and is actively maintained.
    sbidoul authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4dc7148 View commit details
    Browse the repository at this point in the history
  38. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    300ac76 View commit details
    Browse the repository at this point in the history
  39. web_notify 14.0.1.0.1

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8fb3984 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    5c6085d View commit details
    Browse the repository at this point in the history
  41. [IMP] web_notify: migration improvements

    - Use ES6 in js files
    - Update screenshots
    - Clean old lint exceptions
    - New icon
    
    TT38350
    chienandalu authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    304f519 View commit details
    Browse the repository at this point in the history
  42. [UPD] Update web_notify.pot

    oca-ci authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    55a5624 View commit details
    Browse the repository at this point in the history
  43. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    37e0678 View commit details
    Browse the repository at this point in the history
  44. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-15.0/web-15.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_notify/
    weblate authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    48a4ada View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    43d9c74 View commit details
    Browse the repository at this point in the history
  46. Translated using Weblate (Italian)

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-15.0/web-15.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_notify/it/
    rbellanova authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3517b85 View commit details
    Browse the repository at this point in the history
  47. [MIG] web_notify: Migration to 16.0

    baimont authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f306abc View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    8b231a5 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    136c186 View commit details
    Browse the repository at this point in the history
  50. [UPD] Update web_notify.pot

    oca-ci authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9390395 View commit details
    Browse the repository at this point in the history
  51. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    41c2fb1 View commit details
    Browse the repository at this point in the history
  52. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/
    weblate authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a4287fa View commit details
    Browse the repository at this point in the history
  53. Translated using Weblate (Italian)

    Currently translated at 94.4% (17 of 18 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/it/
    mymage authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b214276 View commit details
    Browse the repository at this point in the history
  54. Translated using Weblate (German)

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/de/
    NICO-SOLUTIONS authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    aa5d0a6 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    b61c8b8 View commit details
    Browse the repository at this point in the history
  56. Translated using Weblate (Spanish)

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/es/
    Ivorra78 authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f46585e View commit details
    Browse the repository at this point in the history
  57. [UPD] README.rst

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f63f786 View commit details
    Browse the repository at this point in the history
  58. Translated using Weblate (Italian)

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/it/
    mymage authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cb5e526 View commit details
    Browse the repository at this point in the history
  59. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (18 of 18 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/pt_BR/
    adrianojprado authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    573b591 View commit details
    Browse the repository at this point in the history
  60. [IMP] web_notify

    When trying to use the notify function that comes from a normal user with sudo flag enabled, it wasn't letting the user access it. Adding the su flag to the check should allow sudo users using this feature.
    DavidJForgeFlow authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    80f755c View commit details
    Browse the repository at this point in the history
  61. [BOT] post-merge updates

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    aeff55a View commit details
    Browse the repository at this point in the history
  62. [UPD] Update web_notify.pot

    oca-ci authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2a3c6f9 View commit details
    Browse the repository at this point in the history
  63. [BOT] post-merge updates

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cad90ef View commit details
    Browse the repository at this point in the history
  64. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/
    weblate authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7342526 View commit details
    Browse the repository at this point in the history
  65. Translated using Weblate (Italian)

    Currently translated at 100.0% (19 of 19 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/it/
    mymage authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    810ceb7 View commit details
    Browse the repository at this point in the history
  66. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (19 of 19 strings)
    
    Translation: web-16.0/web-16.0-web_notify
    Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/pt_BR/
    Rodrigo Macedo authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    09d8445 View commit details
    Browse the repository at this point in the history
  67. [IMP] web_notify: action button name and close

    - We can now set a button name to the notification action.
    - We can set an icon button as well.
    - After the button is clicked, the notification gets closed.
    chienandalu authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8a0c623 View commit details
    Browse the repository at this point in the history
  68. [BOT] post-merge updates

    OCA-git-bot authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c77fa3a View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    0a7dbf5 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    decbb91 View commit details
    Browse the repository at this point in the history
  71. [MIG] web_notify: Migrated in v17

    Nikul-OSI authored and trisdoan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    51412c2 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    6997e59 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    5161619 View commit details
    Browse the repository at this point in the history