Notification System

by
Odoo 1
v 12.0 Third Party 1

150.00 €

You bought this module and need support ? Click here !
Technical name notify
LicenseOPL-1
Websitehttp://www.disastersoftware.net/apps/notify
Read description for v 11.0 v 10.0
Technical name notify
LicenseOPL-1
Websitehttp://www.disastersoftware.net/apps/notify
Read description for v 11.0 v 10.0

The unified notification system

Let the users known what is happening on everything.

Automate notifications in a minute

The most advanced notification systems in a very simple user interface.

  • Create notification without coding, using Odoo Automation.
  • A new Action To Do Send Notify helps you to build you automatic notification system.
  • Choose the Users to notify or leave it empty to just send a broadcast notification.
  • Fully extensible for power user.
  • Use it in your code for custom notifications. Devdoc and examples are bundled inside.
  • Perfectly integrated with any Odoo app. No effort is required for integration with your module, just install and it works.

OneSignal integration

Get the power of push notifications.

Connect with OneSignal to enable push notifications.

Different endpoint for multi-company configuration.

Handle Onesignal applications and connected devices.

Notify Reference Documentation

Installation & users setup

Before installing the module, your python environment must have onesignal-sdk package installed.

pip install onesignal-sdk

Note

If you do not install the library properly, when you run your odoo application, it will return a module not found exception.

After library installation, you can run your odoo application and install notify module.

Once module installed, you have to enable notification for each user. You go in Settings -> Users & Companies -> Users, select the user that must have notification enabled and select Allow Notifications option.

After the user need to refresh client page, in order to see notifications widget into the odoo systray.

Notification setup

In order to get an automatic notification when some events occurs, you need to create an automated action for each event.

To do so, you need to activate developer mode in Settings -> Activate developer mode. Once activated, go in Settings -> Technical -> Automated Actions, you will find an example rule called Notify: Example.

You can create an automated action that will have as Action To Do Send Notify. This kind of action will create a new notification each time the action will trigger. You must choose the model, the trigger condition and two domain: before update and the apply on domains.

Notification Data Tab

In the Notification Data tab you can specify several options.
  • Users to notify: the list of users that will be notificated. You can leave this field empty to send a broadcast notification.
  • Notification Title: you can write your own title (equals for all notifications of this action) or you can specify a field from the model that will be used as a notification title (that will be dinamyc for each notification).
  • Notification Icon: You can choose an icon related to the notification.
  • Notification Summary: The notification message description.
  • Notification Note: An additional note (optional).

Note

This parts is for developers only, this can be used only with server-side code.

This module adds a unified notification system: each record in odoo can send a notification to desired users, without any code extension: simply calling a method notify that this module introduces for any model in odoo.

# notify users when a new invoice is created
invoice = self.env['account.invoice'].create({invoice_vals})
invoice.notify(
    'A new invoice has been created.',
    title=invoice.name + ' created',
    note='Additional note...,
    # use the module name to specify the icon
    icon='account',
    # if the parameter user is not specified,
    # a broadcast notification will be created
    users=self.env.user
)

Onesignal setup

Once you have registered to https://onesignal.com/ go in apps dashboard at https://app.onesignal.com and create a new app with the Add app button. This will start the wizard to configure correctly the app in onesignal. Here are the list of configuration that you must choose:

  • Select Platform: you need to choose Web Push
  • Configure Web Push: You must select Custom Code and fullfill the Site setup form.
  • Code setup: in this section you do not need to do anything, just copy your appId from code snippet. (app id example is ff446789-90e1-4597-bbf3-5ed042abd7e9). Just clic to Finish to end the setup.
  • When you complete the setup just go in Account & API Keys just under you account menu placed at the top right side. Here you can copy your User Auth Key that you will need to put in odoo.

Onesignal client

Once you have completed the setup on onesignal site and have retrieved you user auth key, you can activate onesignal into your odoo application.

Note

This parts is available only if you activate developer mode in Settings -> Activate developer mode

Go under Settings -> Technical -> Notify -> Clients and create a new client. Full fill the form with your name and the user auth key. After that you can save and test you connection with the button Test Connection. If the test will pass, you can activate the client pressing the button activate.

When the client is active, you can load all apps from onesignal with the button Load Apps. After the apps are loaded, you can activate one app at a time, this app will be used for push notifications.

when client and one app is active, on the systray widget will be available the buttons subscribe/unsubscribe push notifications to activate or not push notifications on your browser. If enabled, each time a notification is generated from odoo, it will send a push notification to all devices connected to this user.

Changelog

0.3.1 (Alpha release)

  • fixed widget when no onesignal client available

0.3.0 (Alpha release)

  • ui improvements when onesignal is disabled

0.2.0 (Alpha release)

  • completed all core functions
  • started testing

0.1.0 (Onesignal integration)

  • added models onesignal.client, onesignal.app and onesignal.device to handle onesignal data.
  • integration of ir.notification with onesignal notifications.

0.0.1 (First release)

  • first release of notification module
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • This section is meant to ask simple questions or leave a rating.
  • This author can leave a single reply to each comment.
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Odoo
the installation working fine now
by on

Thank you for your respond. I am still trying to use your notification system and see how it is. it seems everything is working fine right now.

Odoo
Re: the installation working fine now
by on

Thank you for your rating. Contact us if you need some additional support. Regards


Odoo
problem when install this module on version 12
by on

I ask developer about my problem but the answer is very slow, also lack of installation guide that you need to do before it is working.

Odoo
Re: problem when install this module on version 12
by on

We are truly sorry for the time, but we have totally rewritten client side to better suit community and enterprise version of odoo. We advice you to download the new realse of the module: you will find a totally new setup guide for odoo 12 too. Regards.


Odoo
still problem
by on

Hi. i use version 12.0 and also do the pip install onesignal_sdk. but after i installed, it shows: The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made. Could not execute command 'lessc'This error occured while compiling the bundle 'web.assets_backend' containing: - /web/static/lib/bootstrap/scss/_functions.scss - /web/static/lib/bootstrap/scss/_mixins.scss - /web/static/src/scss/utils.scss - /web/static/src/scss/bs_mixins_overrides.scss - /web/static/src/scss/primary_variables.scss - /web_enterprise/static/src/scss/primary_variables.scss - /web_editor/static/src/scss/web_editor.variables.scss - /mail/static/src/scss/variables.scss - /portal/static/src/scss/primary_variables.scss - /web/static/src/scss/secondary_variables.scss - /web_enterprise/static/src/scss/secondary_variables.scss - /account/static/src/scss/variables.scss - /web_enterprise/static/src/scss/bootstrap_overridden.scss - /web_editor/static/src/scss/bootstrap_overridden.scss - /web/static/src/scss/import_bootstrap_part1.scss - /web/static/src/scss/bs_mixins_overrides.scss - /web/static/src/scss/import_bootstrap_part2.scss - /web/static/src/scss/bootstrap_review.scss - /web_enterprise/static/src/scss/webclient.scss - /web_enterprise/static/src/scss/webclient_layout.scss - /web/static/src/scss/webclient.scss - /web/static/src/scss/domain_selector.scss - /web/static/src/scss/model_field_selector.scss - /web/static/src/scss/progress_bar.scss - /web/static/src/scss/dropdown.scss - /web_enterprise/static/src/scss/dropdown.scss - /web/static/src/scss/tooltip.scss - /web/static/src/scss/debug_manager.scss - /web/static/src/scss/control_panel.scss - /web/static/src/scss/fields.scss - /web_enterprise/static/src/scss/fields.scss - /web/static/src/scss/views.scss - /web/static/src/scss/pivot_view.scss - /web/static/src/scss/graph_view.scss - /web/static/src/scss/form_view.scss - /web_enterprise/static/src/scss/form_view.scss - /web/static/src/scss/list_view.scss - /web_enterprise/static/src/scss/list_view.scss - /web/static/src/scss/kanban_dashboard.scss - /web/static/src/scss/kanban_examples_dialog.scss - /web/static/src/scss/kanban_column_progressbar.scss - /web/static/src/scss/kanban_view.scss - /web/static/src/scss/kanban_view_mobile.scss - /web/static/src/scss/web_calendar.scss - /web/static/src/scss/search_view.scss - /web/static/src/scss/search_view_mobile.scss - /web/static/src/scss/dropdown_menu.scss - /web_enterprise/static/src/scss/search_view.scss - /web/static/src/scss/data_export.scss - /base/static/src/scss/onboarding.scss - /web/static/src/scss/base_settings.scss - /web/static/src/scss/report_backend.scss - /web_mobile/static/src/scss/mobile.scss - /base_import/static/src/scss/base_import.scss - /web_cohort/static/src/scss/web_cohort.scss - /web_dashboard/static/src/scss/dashboard_view.scss - /web_diagram/static/src/scss/diagram_view.scss - /web_editor/static/src/scss/web_editor.common.scss - /web_editor/static/src/scss/web_editor.backend.scss - /web_enterprise/static/src/scss/home_menu.scss - /web_enterprise/static/src/scss/home_menu_layout.scss - /web_enterprise/static/src/scss/menu_mobile.scss - /web_enterprise/static/src/scss/menu_search.scss - /web_enterprise/static/src/scss/control_panel_layout.scss - /web_enterprise/static/src/scss/datepicker.scss - /web_enterprise/static/src/scss/kanban_view.scss - /web_enterprise/static/src/scss/touch_device.scss - /web/static/src/scss/navbar_mobile.scss - /web_gantt/static/src/scss/gantt.scss - /web_grid/static/src/scss/grid_view.scss - /mail/static/src/scss/announcement.scss - /mail/static/src/scss/discuss.scss - /mail/static/src/scss/abstract_thread_window.scss - /mail/static/src/scss/thread_window.scss - /mail/static/src/scss/composer.scss - /mail/static/src/scss/chatter.scss - /mail/static/src/scss/followers.scss - /mail/static/src/scss/thread.scss - /mail/static/src/scss/systray.scss - /mail/static/src/scss/mail_activity.scss - /mail/static/src/scss/activity_view.scss - /mail/static/src/scss/kanban_view.scss - /mail/static/src/scss/attachment_box.scss - /calendar/static/src/scss/calendar.scss - /mail_enterprise/static/src/scss/mail_enterprise.scss - /sales_team/static/src/scss/sales_team_dashboard.scss - /stock/static/src/scss/stock_traceability_report.scss - /account/static/src/scss/account_reconciliation.scss - /account/static/src/scss/account_journal_dashboard.scss - /account/static/src/scss/account_dashboard.scss - /account/static/src/scss/section_and_note_backend.scss - /account_online_sync/static/src/scss/online_sync.scss - /payment/static/src/scss/payment_acquirer.scss - /account_reports/static/src/scss/account_financial_report.scss - /sale/static/src/scss/sale_onboarding.scss - /sale/static/src/scss/product_configurator.scss - /documents/static/src/scss/documents_kanban_view.scss - /mass_mailing/static/src/scss/mass_mailing.scss - /app_odoo_customize/static/src/scss/app.scss - /notify/static/src/less/systray.less - /web_settings_dashboard/static/src/scss/dashboard.scss


Odoo
asking for installation
by on

Hi I bought your module and when I click install, it said "Unable to install module "notify" because an external dependency is not met: No module named onesignal" How to fix this?

Odoo
Re: asking for installation
by on

Thank you for buying this module. In order to work this odoo module requires a python package called onesignal. You can find It here: https://pypi.org/project/onesignal-sdk/ Regards, Disaster software support.