d6cc18cfdf3a9392a110cdfce539306de9e791a9
BEFORE THIS COMMIT : When using the action "grant portal access" on contact, it opens a wizard. When trying to granting access, an error is raised if email is not properly formatted or already used by another user, in a modal. The modal of error message is superimposed on the one of the wizard. This looks very unpleasant and not very readable. AFTER THIS COMMIT : Therefore, the error messages due to an invalid email (bad format or already used) are simplified and displayed inline in portal wizard user tree view instead in the form of colored fa-icons buttons, with details as title. In order to have the tooltip service detect mouse events, we make them non-disabled: if clicked, the modal will simply be refreshed. Also, there will be no display of reinvite / grant access buttons as long as an error on email remains. To do so, a new selection field sets the email validity status for each portal_wizard_user : 'ok' / 'ko' / 'exist'. Errors are still thrown if method is called directly, except for the revoke access method. Indeed, we want to be able to revoke access, independantly of the email status. However, the partner's email is only updated if the email is valid. TESTS : Tests are updated accordingly. The last assert of test_portal_wizard_error is repaired. The previous one raised an error as expected but not the good one. As the email had a wrong format, it was detected and error was raised, and not because the user was internal, as supposed to. The portal user is updated as it should be. --- LINKS --- Task Id - 2613780 COM PR - odoo/odoo#74911
…
…
…
…
…
…
…
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%