summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
AgeCommit message (Collapse)Author
2017-10-03[FIX] web: The model "ir.values" has been renamedGoffin Simon
The model "ir.values" has been renamed in "ir.default" by this commit: 60d9f6fef9e15c96cb710a17318a56c1cc1c33dc
2017-09-13[MERGE] forward port branch saas-17 up to 1e17035f71fChristophe Simonis
2017-09-13[MERGE] forward port branch saas-16 up to 268cf9d04abChristophe Simonis
2017-09-12[FIX] web, account: display partner in reconciliationMartin Geubelle
When selecting a partner in the reconciliation widget, using the SelectCreateDialog (Search More), the partner wasn't correctly displayed. This was due to a difference between the change format of the many2one ; when using the dialog, only the `id` is sent (while the `id` and `display_name` are sent when using the many2one dropdown). These two behaviours are now standardized and both now send `id` and `display_name`. It has the advantage of sparing some `name_get`s called by the model because the `display_name` was missing. This change implies some refactoring where the SelectCreateDialog was used.
2017-09-12[MERGE] forward port branch saas-17 up to d08b4407be3Christophe Simonis
2017-09-11[MERGE] forward port branch saas-16 up to 3ac2a1106c8Christophe Simonis
2017-09-11[MERGE] forward port branch saas-15 up to ec15765eecfChristophe Simonis
2017-08-24[MERGE] forward port branch saas-17 up to 877e7098719Christophe Simonis
2017-08-23[MERGE] forward port branch saas-16 up to aec6248bb37Christophe Simonis
2017-08-23[FIX] web: reimplement conditions in the "Set Default" dialogMartin Geubelle
The rev. https://github.com/odoo/odoo/commit/49f0413290821cb123e75b4546873cf98edf1d25 reintroduced the "Set Default" dialog but forgot the conditions part. This rev. reintroduces the missing part.
2017-08-18[FIX] web: debug manager: open the set_default dialogfwi-odoo
Before this commit, the function opening the set_default dialog was not declared anymore. This commit redefines this function in the debug manager.
2017-07-24[IMP] web, *: lazy load dialog xml templateqsm-odoo
* web_editor, web_planner, website The 'Dialog' class is used in both backend and frontend. Also, lots of actions can be done without the use of any modal. It thus makes sense to lazy load its related xml only when a first modal is opened. This change also allows to get rid of the "base_common.xml" file as the dialog template is the only remaining one in there and, in the future website update, it will allow to not load any static XML file on website page loadings.
2017-07-11[FIX] web,odoo: Remove remaining workflow related codeMehul Patel
2017-06-21[FIX] web: remove "Edit Workflow"Nicolas Martinelli
Since all workflows have been removed, remove the menu to edit it, since it generates a traceback and confuse users.
2017-05-16[MERGE] Forward-port saas-15 up to 878fbc75ff9ebade92f43748500e64350367a824Olivier Dony
2017-05-16[MERGE] Forward-port 10.0 up to 1545995b393a1d347c6c1988da03dd1c6f1ea037Olivier Dony
2017-05-16[MERGE] Forward-port saas-11 up to 0570033ae7c5b4e0efa4a1ee9fd90dcb9675f890Olivier Dony
2017-05-11[FIX] web: DebugManager: open view: search and qweb viewsAaron Bohy
can't be opened that way. For now, only views that can be opened with a view manager are supported, i.e. views like form, list, kanban, graph... So this fix filters out the views of type qweb and search from the list.
2017-04-24[FIX] web: debugmanager view metadata should not crashGéry Debongnie
In general, I think that we can safely consider that crashes are not the intended behaviour. In this case, viewing metadata crashed because we tried to format a date which was not parsed (so, a string), instead of a moment object. We simply just parse the date before, and it works as intended.
2017-04-11[FIX] web: fix two small crashes in debug managerGéry Debongnie
- remove edit workflow link in debug manager. The workflow feature was removed, but there was still a link in the debug manager. Clicking on that link was a crash. - the rpc to fetch a view was wrongly updated, so the return value was not properly used.
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[REF] web,*: improve the way field_utils are doneGéry Debongnie
We replace a bunch of formatting and parsing functions by an object (parse or format) which can be used to dispatch on the correct type. It allows us to remove the format_field and parse_field functions. Also, we camelcase our new code and add some comments.
2017-04-11[REF] web: remove format.jsChristophe Matthieu
use 'web.field_utils' instead of 'web.formats'
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2016-12-02[REF] web: Remove is_admin key in session infoYannick Tivisse
Because of its redundency with is_system key.
2016-10-10[FIX] web: remove "Disable/Enable Technical Features"Nicolas Martinelli
This link was useful when the "Technical Features" group was not linked to the "?debug" parameter. This is not the case anymore, and this button has no effect.
2016-09-28[IMP] web: trigger event when changing actionMartin Geubelle
This comportement was added in the DebugManager to trigger an event. As this event could be useful in other situations (e.g. studio), we trigger the event directly in the ActionManager. By default, the WebClient does not use this event but an handler is added to be overwritten. This handler is overwritten in some widgets (DebugManager, Studio, etc.) that requires the Systray items instances so we add them in ´widgets´ in the Systray Menu. As the module dashboard uses multiple ActionManager, the event bubbling should be avoided in this case.
2016-09-02[IMP] web, website: adapt tour launching to new systemqsm-odoo
* The debug manager contains a feature to launch tours, adapt it to new web_tour.tour system * The website help menu allowed to relaunch tutorial tour in debug mode. This feature is not adapted to new tour system and was useless in the first place (debug mode in frontend is barely used anyway). -> remove the website help menu and the feature
2016-07-15[MERGE] forward port branch saas-11 up to a62b8cfChristophe Simonis
2016-07-12[FIX] web: debug_manager: update when coming back with breadcrumbsAaron Bohy
Before this rev., the debug manager's state was only updated when pushing a new action but not when coming back to a previous action using the breadcrumbs. So when the latter case happened, the debug manager was desynchronized with the action manager and it allowed to edit an action that wasn't the current action.
2016-06-16[ADD] web: is_admin key of session_info into page sourceAaron Bohy
2016-05-09[FIX] web: fix bug introduced by fwp of #8aee65 and merge web clientJeremy Kersten
2016-04-25[MERGE] forward port of branch saas-10 up to bb8f0f1Christophe Simonis
2016-04-21[REF] web: stop duplicating webAaron Bohy
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files
2016-04-15[FIX] web: don't display view metadata for new recordJeremy Kersten
Close #11584
2016-03-09[IMP] base,openerp,web: add debug mode === 'assets' and don't split assets ↵Géry Debongnie
by default This is a rather large change for developers: from this commit on, we need to use debug=assets instead of just debug to split assets. The About menu has been slightly improved as well (the link does not appear when we are already in debug mode), and an option has been added in the debugging menu to activate the assets debugging mode.
2016-01-20[FIX] web: technical translations menuMartin Trigaux
The action "Technical Translations" was not retrieving the correct translations. Since 9.0, the translations names no longer contains the name of the model (in the form "field:<model>,<name>") but are records on ir.model.fields (in the form "model:ir.model.fields,field_description:<model>_<name>"). The translations of type selection are style a different type (type 'selection'). Create a method that will find the linked fields and retrieve the correct translations. Fixes tw:reis_pt/status/687419541199187969
2015-08-17[FIX] web: debug manager: view metadataAaron Bohy
the modal content should now be given in the options
2015-06-17[IMP] web, web_*, mail, board : New modals and dialogsqsm-odoo
2015-04-17[FIX] *: correct previous forward portChristophe Simonis
Due to files renaming, some patched should be applied manually to the correct files. Forgot to `git add` these files when committing the forward port...
2015-03-20[REF] Web: Actions, ActionManager, ViewManager, Controlpanel refactoringAaron Bohy
Big refactoring of Action, WidgetAction and ViewManagerAction to clean their API. Mainly, renamming from State to Action and removal of unused functions (or functions that are only used by the DebugManager, for which we tolerate introspection). Some logic has also been moved from the ActionManager to the Actions themselves. The specific behavior of each type of Action is now handled in the implementation of those Actions. In ActionManager, this.states is renammed to this.action_stack to be consistent with view_stack in ViewManager. The setup_search_view() and render_switch_buttons() functions have been moved from ControlPanel to ViewManager as it was before, since actual design allows it and it makes more sense. The ControlPanel API has also been simplified as some functions were not used anymore. The ControlPanel is now updated directly by the widgets using it, bypassing the ActionManager. The control panel elements are stored by the widgets themselves to allow restoring them later.
2015-03-20[IMP] Web: views.js, view_editor.js: DebugManagerAaron Bohy
Creation of a widget for the DebugManager and move it from the ControlPanel to the Systray. Refactoring of the widget to improve/facilitate the way of adding options in the DebugManager as the view_editor does. Add a do_action() function in the WebClient that forwards the action to the main ActionManager so that widget that are not in the scope of the ActionManager (e.g. Menu) can performed actions as well. Note: The DebugManager is currently in the Systray but it will finally be moved to a dedicated spot above the ControlPanel.