cc0ca704280ffc6d77ac742695df066c74fde4e0
The NotificationItem component has been modified to support a new slot allowing to display some content at the right of the notification item. It is used in this commit to display an additional 'Install button', inviting the user to click on the notification. Note that the entire notification is still clickable, it is only a visual indicator. Once the notification is clicked, the installation process is triggered: - In case the system supports the native installation prompt, we now display it, and the user is free to install the PWA from there. - On Apple devices, a custom popup is displayed to the user, explaining the steps to install the website as an application, since iOS and macOS don't support a native prompt, and won't be using one anytime soon, since it's a design decision from their side. Some tests have been added to mock and test the display of the notification. patchBrowserWithCleanup has been adapted to also remove any BeforeInstallPromptEvent for every tests by default. This allows to test without the risk of issues with messaging tests reading the number of notifications, or clicking the first notification item when the service checks whether the prompt can be shown or not (depending the availability of a native prompt, the OS, or the localStorage, etc.). To test the service correctly, you need to patch the test accordingly. task-3275275 closes odoo/odoo#135866 Related: odoo/enterprise#48968 Signed-off-by: Pierre Paridans (app) <app@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%