summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
AgeCommit message (Collapse)Author
2015-11-25[MERGE] forward port of branch 9.0 up to b293953Christophe Simonis
2015-11-25[MERGE] forward port of branch saas-6 up to dade7e3Christophe Simonis
2015-11-25[FIX] web: local var parent typoNicolas Lempereur
fixes #8516 note: was already solved in enterprise with 7ab5075
2015-11-23[FIX] web: method `BufferedDataSet._update_cache` must purge `changes` from ↵Raphael Collet
useless changes
2015-11-02[IMP] web: add a generic notification feature inside form viewsRaphael Collet
The notification box remains on the form until either: - the user closes it explicitly, or - the user edits the record, or - the form view is refreshed (switch to another record, or refresh form). Add a method `once` to `EventDispatcherMixin`, as it is convenient. Make `FormView` trigger events `to_view_mode` and `to_edit_mode`.
2015-10-30[MERGE] Forward-port 9.0 up to 9a3e9291ffa1509f4afa0f35f9d8d71b6e0932d1Olivier Dony
2015-10-29[FIX] web: can remove record in many2many kanban viewChristophe Matthieu
Wrong underscore method called. Issue: go on customer form view, remove a contacts in the many2many kanban view and save. The record is not unlink.
2015-10-27[MERGE] Forward 9.0 up to 2ec9a9cOlivier Dony
2015-10-26[IMP] web: show translation icon only when multiple languages are installedRavi Gadhia
2015-10-26[FIX] web: proper update of the datasetNicolas Martinelli
The method evict_record calls _update_cache with an empty dictionary, which will not replace any cached value. Therefore, the cache is never cleaned. opw-652393
2015-10-02[FIX] web: backport module web.config for enterprise compatibilityAaron Bohy
Addon mail needs to know if we are using a touch device to set or not the focus on the chat composer. However, this information was not available in the community webclient.
2015-10-01[FIX] web: use _.clone to avoid change of 'default_value'Christophe Matthieu
2015-10-01[FIX] bus: disable longpolling in test modeGéry Debongnie
In test mode, only one cursor is available, and longpolling will take it, and not give it back before 60s, causing a phantomjs timeout. This commit simply return an error when the server is in test mode. Sadly, I had to patch the web client to prevent logging the error in this case, because that's the way phantomjs detect if there is a problem.
2015-10-01[ADD] client-side CSRF supportXavier Morel
* add CSRF token as core.csrf_token * add CSRF tokens to client-generated and/or JS-submitted forms * remove broken "compatibility" mode of web.ajax.post /cc @dmo-odoo I've no idea how that was supposed to work, from looking things up all modern browsers seem to support FormData, and old IEs which don't don't support fallbacks either and would require submitting an actual form as fallback so...
2015-09-24[FIX] web: clone values in read_ids (avoid external changes)Christophe Matthieu
Some widgets like list editable use and change values dictionary. When the write is called, the values in the cache is equal to the changes send => field no dirty => no change triggered.
2015-09-14[IMP] web: improve Widget.proxy's error reportingXavier Morel
Provide a more informative error message than "undefined is not a function" when a method passed by name to the events object is missing on the widget.
2015-09-01[FIX] im_livechat : fix session binding. Required to bind session on server ↵Jérome Maes
url from livechat to male it work outside odoo server. In website_livechat, the web.session js namespace is redifined, and i'm still not sure this is a good idea
2015-09-01[ADD] web: backport of function getPosition()Aaron Bohy
to compute the offset of a DOM element
2015-09-01[IMP] web: dialog: wait for button's onclick handler to closeAaron Bohy
When a button in the modal's footer has an onclick handler and closes the modal, the action of closing the modal should wait for the potential deferred returned by the handler. For instance, if an handler performs an asynchronous call and, when resolved, triggers a notification, the notification doesn't reach the webclient if the modal is already closed because the widgets hierarchy is broken.
2015-08-28[FIX] web: BufferedDataSet must update the cache when reset_ids is calledChristophe Matthieu
2015-08-28[IMP] web: add attribute searchview_hidden to views.Martin Geubelle
This attribute can be used when the view needs a searchview but wants it to be hidden.
2015-08-27[REF] web: data.js: refactoring of BufferedDataSet (less code and speed up)Christophe Matthieu
2015-08-26[ADD] website_form: generic form controllerDavid Monjoie
Contains a new ajax post function that comes from mdo's original code and that I was not able to get rid of.
2015-08-21[IMP] web: use css to display attachment mimetypeChristophe Matthieu
Widgets and website display images or display the type with icon like pdf, doc...
2015-08-21[IMP] web: increase tooltip delay timerGéry Debongnie
from 500 to 1000, as requested by fp
2015-08-19[FIX] web: many2one try to read a creating record but the cache doesn't yet ↵Christophe Matthieu
contain the record
2015-08-17[FIX] web: need to initialize values into the cacheChristophe Matthieu
2015-08-16[FIX] ajax.js: stringify error for debugging helpChristophe Simonis
2015-08-14[FIX] web: make the web client process the new output format of `onchange`Raphael Collet
The dataset implementation has been improved to handle the result of a `read` on ids that are already modified in the dataset: the lists `to_create` and `to_write` are updated properly.
2015-08-07[REF] web(_*): views: view_switcher iconAaron Bohy
Add a key icon in the view's prototype corresponding to the font-awesome icon to display in the view switcher.
2015-07-30[REF] web: move barcode_events to module barcodesArthur Maniet
If the module barcodes is installed, a BarcodeEvents singleton is automatically instanciated. It listens to keypresses and, when a sequence of keys represents a barcode, it broadcasts a 'barcode_scanned' event on core.bus containing the barcode string.
2015-07-29[FIX] web,mail: widgets: replace $el.toggle() by do_toggle()Aaron Bohy
Since rev. 16eb36ff, do_show() and do_hide() on widgets toggle the classname o_hidden on which the rule 'display: none' is defined, instead of calling jQuery's show() and hide(). The method do_toggle(), sharing the same logic, has been introduced in rev. 74c5f772. From now on, every widgets should call do_toggle() instead of $el.toggle() as it will have undesiderable effects (they should call do_show() and do_hide() instead of $el.show() and $el.hide() as well, this as been done in 16eb36ff). This rev. replaces all calls to $el.toggle() by do_toggle(). It also adds an optional argument to do_toggle() to force hidding or showing the widget.
2015-07-29[IMP] web: alert/confirm dialogs default titlesqsm-odoo
Add "Alert" and "Confirmation" as default titles for alert and confirm dialogs
2015-07-27[IMP] Add Dialog.alert featureqsm-odoo
This allows to open a simple message dialog with potential action when the unique "ok" button is clicked
2015-07-23[ADD] web: framework: do_toggle on widgetSimon Lejeune
2015-07-23[IMP] web: New notification systemqsm-odoo
Backport of the Notification system
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-17[IMP] web: use a classname to show/hide widgetsAaron Bohy
The problem of $el.show()/hide() is that calling show() on a jQuery element on which there is no display rule in the stylesheet automatically sets 'display: block'. However, when a jQuery element is not yet in the DOM, the rules defined on it are not yet applied, meaning that calling show() will set its display to block (in inline style), even if there is different a css rule (e.g. 'dislay: flex'). As the inline style takes the priority over the stylesheet, the correct display won't be applied, even when the widget will be appended in the DOM, resulting in a possibly broken layout.
2015-07-15[IMP] web: trigger an event when webclient is readyAaron Bohy
The main purpose of this commit is to be consistent with the enterprise edition, in which the event 'DOM_updated' is triggered when new content is inserted in the DOM. This way, addons that need to know when a view has been attached in the DOM (e.g. web_tip) can listen to this event and will work fine with both editions of the web addon. With the actual structure of the webclient (action_manager, view_manager), there is no easy way to decide whether or not a view is attached in the DOM, because every rendering is performed in a detached element. For instance, when a view_manager instantiates a new view, it appends it in its $el once the view is ready, but it can't know if its $el is attached in the DOM (it is only the case if the view_manager is the current action of the action manager). This rev. introduces utility functions to centralize the appending/prepending of content, so that an event can be triggered (at a unique place) when the content is really in the DOM. These functions are used by the the action_manager and the view_manager. Another change is that the action_manager keeps the view_manager informed when they are attached in/detached from the DOM, through the variable is_in_DOM.
2015-07-10[IMP] web_editor: adapt css, js and xml to use web_editorChristophe Matthieu
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-07-10[IMP] web: split model.js into model.js and data_model.js. Web js modules ↵Christophe Matthieu
must call web.DataModel.
2015-07-01[IMP] web,web_kanban: Dialog.confirm apiAaron Bohy
takes now an object of options for the Dialog, containing two possible callbacks (for confirm and cancel).
2015-06-30[REVERT] web,point_of_sale: cordova integrationAaron Bohy
introduced by forwardport: a3041949364141eaa66b22ab0d72227b675df324 initial commit in 8.0: 19eda68547917cfabe923ea41edb8ac7beb141b6
2015-06-25[MERGE] forward port of branch saas-6 up to 81b5c60Christophe Simonis
2015-06-18[IMP] web: pager: editable feature + documentationAaron Bohy
Pager's state can now be edited (mainly to change the limit, but the range of values as well).
2015-06-17[FIX] web: one2many listChristophe Matthieu
Error when click on other record after an update on a one2many record in list editable which have an 'add an item' by checkbox selection
2015-06-17[IMP] web, web_*, mail, board : New modals and dialogsqsm-odoo
2015-06-15[FIX] web: various tweaks to make web_kanban view workGéry Debongnie
2015-06-12[IMP] web: split misc.js into misc.js and session_instance.jsChristophe Matthieu