summaryrefslogtreecommitdiff
path: root/addons/web_settings_dashboard/static/src/js
AgeCommit message (Collapse)Author
2019-07-26[REM] web_settings_dashboard: Merge module into base_setupaca
Purpose ======= Currently, when we click on “Settings” on the Home Dashboard, we arrive on a new Dashboard with several pieces of information like Installed Apps, invite new users, or translations. Some informations are reachable in several ways, which is not necessary. We would like to remove this page and replace it with the General Settings page directly. That makes more sense to the user who click on “Settings”. The present informations will be dispatched in the menu or in the general settings for a better usability. Specification ============= This commit move code from web_settings_dashboard in order to put the features in settings directly. To do so, we choose to move code to base_setup, and create widget on the settings form view to keep features. Concerned features are: invite users, dev tools, odoo edition number and IAP account link. TaskID: 2006910 closes odoo/odoo#34290 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-06-17[IMP] *: remove 'view_type' on window actions.Hiral Bhavsar
The old tree views don't really exist anymore, this odd pseudo-flag to dispatch between "list" and "tree" tree views has no reason to remain. Task 1937686 closes odoo/odoo#31243 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-06-05[IMP] *: use new helper config.isDebug()Romain Derie
Before this commit, both config and session were aliases to odoo.debug. Now, config.isDebug() should be call, with possibility to pass a parameter to check if we are in a specific debug mode such as 'tests' or 'assets'. task-1934445 Coming with https://github.com/odoo/enterprise/pull/4281 Closes https://github.com/odoo/odoo/pull/33213
2019-03-06[REF] web_settings_dashboard: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2018-12-07[REF] *: adapt all client actionsAaron Bohy
to ControlPanel/Search view refactoring. The ControlPanel being now inside the DOM of client actions, those existing widgets needed to be adapted (in the way they define if and how they want a ControlPanel, and in the way the manipulate their DOM as it slightly changed). Tests needed to be adapted as well. Part of task 1893568 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com>
2018-10-10[FIX] web_settings_dashboard: browse appsAlexandre Kühn
Before this commit, it was not possible to access apps from 'Browse apps' in the Settings menu when at least one app was installed. This is caused by the clickable DOM element being a `<a>` with `href='#'`. This redirects to the 1st app, usually the 'Discuss' app, which prevents opening the kanban view with apps. This commit fixes the issue by preventing the browser to change the URL in the address bar when clicking on 'Browse apps' from the 'Settings' application. Closes #27434 Closes #27442
2018-10-10[FIX] web_settings_dashboard: set up your companyAlexandre Kühn
Before this commit, it was not possible to set up a company. This is caused by the clickable DOM element being a `<a>` with `href='#'`. This redirects to the 1st app in community (usually the 'Discuss' app), which prevents opening the form view to set up information about your company. This commit fixes the issue by preventing the browser to change the URL in the address bar when clicking on 'Set up'. Closes #27434 Closes #27442
2018-10-10[FIX] web_settings_dashboard: load a translationAlexandre Kühn
Before this commit, there was an issue when trying to load a translation from the 'Settings' application. - Go to 'Settings' - Click on 'Load a translation' > It redirects to 1st app (community) or home menu (enterprise) This is not a big issue in enterprise, because the modal is that let the user load a translation is still prompted. This is however not the case in the community version. This issue is caused by 'Load a translation' being a `<a>` with `href='#'`. The purpose of the `href='#'` is to have the pointer cursor on mouse hover. However, when clicking a `<a>` with `href`, the browser changes the URL in the address bar with the content of the `href`, which for the value `'#'` is linked to the top of the main page. In community, this redirects to the 1st installed app (usually 'Apps' or 'Discuss'), whereas in enterprise it redirects to the home menu. This commit fixes this issue by preventing the default browser behaviour when clicking on "Load a translation", so that it does not change the URL in the address bar. Closes #27434 Closes #27442
2018-09-14[MERGE] forward port branch saas-11.4 up to 6c103589c15Christophe Simonis
2018-09-13[MERGE] forward port branch saas-11.3 up to 1e0a92c9962Christophe Simonis
2018-09-10[MERGE] forward port branch 11.0 up to c3ea0a78113Christophe Simonis
2018-09-10[FIX] web_settings_dashboard: give context to search_read plannersLucas Perais (lpe)
Before this commit, the planner section of the settings weren't translated. This was because the context was not sent along with the search_read that fetches planners data After this commit, the planner section is correctly translated OPW 1881092 closes #26766
2018-07-11[IMP] allow installing demo data post db initAdrian Torres
Intended for demo / throwaway databases only Task-ID: 1856493
2018-05-28[FIX] web_settings_dashboard: lessen constraint on email when invitingThibault Delavallée
Even completely valid simple email like alfred+toto@example.com was not considered as valid. As email may contain a lot of characters and strange stuff let us be less strict on validation. This commit is related to task ID 1839609. Closes #24576.
2018-05-04[IMP] auth_signup: change email invitation conditiondip-odoo
Currently if a user has already been invited you cannot invite him again via the web_settings_dashboard as it automatically tries to create a new user. This commit changes that behaviour in case you have the mail app installed odoo will now send an invitation email to the invited user as long as this user has never connected. 1) Mail app not installed: - if user is active > display error (this email is already in use) - if user not active > activate the user - if user doesn't exist > create new user 2) Mail app installed: - if user is active && state confirmed > display popup (this email is already in use) - if user is active && never connected > resend invitation mail - if user is inactive > activate the user - if user doesn't exist > create new user and send invitation mail This commit is related to task #54023 Closes #23081
2018-03-15[IMP] web_settings_dashboard,*: improve UXJigar Patel
*crm,project: css selector adapted in tours This rev. improves the UX of the 'Invite users' and 'Pending invitations' part of the Settings dashboard. Task 32804 Closes #19531 Co-authored-by: Aaron Bohy <aab@odoo.com>
2018-03-09[MERGE] forward port branch saas-11.2 up to 42659dc70c2Christophe Simonis
2018-03-08[REF] web,*: introduce the concept of AbstractActionGéry Debongnie
Before this commit, a client action was simply a subclass of Widget. This is quite simple, but not really enough for the ActionManager. The ActionManager needs to handle client actions in a different way that view actions. Sometimes, it needs to check if a method exists before calling it. With this commit, we introduce a new abstraction: the AbstractAction class, which defines a common API for all actions managed by the web client. Note that the API proposed in this commit is just the beginning. We will introduce other methods in the future, to manage the focus, or the scroll position, for example.
2018-03-07[FIX] web_settings_dashboard: no redirect on social button clickNikunj Ladava
Before this commit, when we click on social tags in the Settings, it opens a pop-up while redirecting to the home page in the main window. The redirection is not intended. This is caused by href="#", which purpose is to show the pointer cursor when hovering on the links. The issue is that href="#" redirects to the index page on click, which is the home page. This commit keeps the href while cancelling the redirection on click in the main window.
2017-10-26[REM] web_planner: Remove the moduleYannick Tivisse
Purpose ======= User tests have been made by the Product Owners team. It showed that the planners are not used by new users on Odoo due to several reasons (They are too static, too heavy to use,...) Specification ============= Remove the module and its different applications. The onboarding on the business flow will be improvement in the weeks to come.
2017-10-04[ADD] iap: In app purchaseAntony Lesuisse
IAP allow app publishers to charge for ongoing services. In that context, Odoo acts mostly as a payment platform between the service user (client) and the service provider (Odoo App developer).
2017-05-10[IMP] web_settings_dashboard: Add a `Translations` and a `Company` settings ↵Jigar Patel
block Add blocks on settings dashboard to: - Load a translations - Set up company information
2017-04-11[REF] web, *: simplify our RPC system (in JS)Géry Debongnie
The RPC system was not completely satisfactory, we decided to prepare the future and do it properly. This commit introduces the new rpc system, which replace the previous new one. We now simply have a method, this._rpc, which takes a dictionary of parameters. The idea is that depending on the parameters, it is able to add correct default value when necessary. For situations where we don't have the this._rpc method, we can use the rpc.query method, which takes the same arguments, but directly calls ajax.rpc instead of triggering up some events.
2017-04-11[REF] *: use _rpc method for all rpcsGéry Debongnie
The _rpc method is now the preferred method to do a rpc, so we need to update all calls.
2017-04-11[REF] web,*: remove 'web.model' and 'web.dataModelGéry Debongnie
Use this.rpc instead of Model object, with web.ajax if necessary. nb: EventDispatcherMixin include now the custom_events managment instead of widget
2017-04-11[FIX] web_settings_dashboard: remove useless importsAaron Bohy
It also allows this module to be loaded in the test environment, where the module 'web.web_client' is missing. Also fixes some linting warnings.
2016-11-15[REF] web_planner, *: refactor planner codeqsm-odoo
* Share code between website and backend * Do not do a [100ms - 500ms] RPC on each app change in the backend but do it only if the planner is asked to be opened * Use the Dialog class so that the planner is not broken * Simplify/optimize code, use standard conventions, lint files, ...
2016-10-05[FIX] web_settings_dashboard: stop depending on old numbering schemeOlivier Dony
2016-08-22[IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboardYannick Tivisse
Fp request: In the user preferences menu, remove "About Us" and put the version number in the Settings dashboard somewhere, as well as the link to switch to developer mode. Odoo is not a desktop application anymore.
2016-08-17Revert "[IMP] web,web_settings_dashboard: Move 'About' menu to settings ↵Yannick Tivisse
dashboard" This reverts commit 328af5dc8608172505fa6761190bf349e7656d89.
2016-08-17[IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboardYannick Tivisse
Fp request: In the user preferences menu, remove "About Us" and put the version number in the Settings dashboard somewhere, as well as the link to switch to developer mode. Odoo is not a desktop application anymore.
2016-07-05[FIX] web_settings_dashboard: email TLDs can be longer than 6 charsDenis Ledoux
This revision is similar to 7f29a231186deb1856098d81703848ab6b24328c opw-682116
2016-06-23[FIX] web_settings_dashboard: Invite new users reloadDenis Ledoux
Before this revision, it wasn't possible to invite new users (in the Settings Dashboard) multiple times without reloading the dashboard e.g. Invite one user, then fill again the textarea, and click again the `Invite` button This is because a new widget is created at each reload, because of: ``` load_invitations: function(data){ return new DashboardInvitations(this, data.users_info).replace(this.$('.o_web_settings_dashboard_invitations')); }, ``` and ``` reload:function(){ return this.parent.load(['invitations']); }, ``` and `this.$('#user_emails').val().` is empty at the second reload, because the textarea retrieved with this selector is the textarea of the previous widget, which is now empty. It should probably be proper to make another mechanism for the reload, that doesn't create a new widget each time, but we don't take the chances in a stable release. Therefore, we just use the event delegate target to retrieve the right textarea. opw-677680
2016-03-14[FIX]web_settings_dashboard: Fix traceback on click of breadcrum, click on ↵Mahendra barad
X-more invitation and click back on breadcrum it will generate error.
2015-11-25[FIX] web_settings_dashboard: merge apps & enterprise panelsDamien Bouvy
- Makes the panel less obtrusive and does not disrupt the layout of the dashboard anymore. - Use the global version info to save an extra RPC call.
2015-11-19[FIX] twice url in tweetFabien Pinckaers
2015-11-17[IMP] web_settings_dashboard: add panel for Odoo EnterpriseMartin Geubelle
This panel fetches the number of active users and redirects to our server with the correct parameters to begin the 'buy' process.
2015-11-05[IMP] web_settings_dashboard: speed up Inviation dashboardChristophe Simonis
Searching on `log_ids` field is slow when there is a lot of users. Count the number of active/pending users directly in sql. Only show the last 10 pending users. Add a link to the full list view.
2015-10-08[FIX] fix and improve res.config views and typosFabien Pinckaers
2015-09-05[IMP] better tweet messageFabien Pinckaers
2015-09-04[ADD] web_settings_dashboard: Settings DashboardParth Gajjar