summaryrefslogtreecommitdiff
path: root/addons/web/static/src
AgeCommit message (Collapse)Author
2015-10-26[FIX] web: error on change value in o2m after an other field onchange if the ↵Christophe Matthieu
o2m contains o2m o2m editable list open a form view and can put command as default value (record[this.name] for o2m in a o2m) for the editable fields. When the onchange is triggered, get_value create a wrong command of command. step to reproduce issue: * edit a quotation with at least on sale order line * change the pricelist * change the quantity of the sale order line todo : remove _on_load_record in version > 9.0 and use new dataset implementation with to_delete attribute
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-13[FIX] web: action_manager: restore internal state on rejected actionAaron Bohy
When an error occured while executing an action (e.g. access rights), the action manager's state was inconsistent as inner_action, inner_widget and action_stack were all updated before trying to execute the action. Then, if the user tried to open another action, the screen was split into two because the reference of the previous action was lost, and thus it couldn't be detached. We now restore inner_action, inner_widget and action_stack to their previous state in the case of a rejected deferred. A better fix would be to update all three variables once the deferred is resolved, but it would require a refactoring of the way the action manager and the view manager communicate to perform the do_push_state and to compute the breadcrumbs. Indeed, those operations directly rely on the internal state of the action manager, and they are performed before the callbacks in push_state are called. Such a refactoring should probably not be done in stable. Partly fixes #8886.
2015-10-13[FIX] web: view_manager: correctly return rejected deferredAaron Bohy
The problem was that the action manager wasn't notified at all when something went wrong with the view manager as the deferred returned by appendTo was in that case never resolved nor rejected.
2015-10-12[FIX] web: export terms of communityMartin Trigaux
not enterprise + community Fix typo in description string (was already done in enterprise)
2015-10-12[FIX] web: many2many_tags: blacklist selected ids in the dropdownChristophe Matthieu
Issue: already selected ids are not filtered in the many2one and appear in the dropdown (but can't be select because the item are already selected)
2015-10-08[FIX] fix and improve res.config views and typosFabien Pinckaers
2015-10-07[IMP] web: more fun on wow buttonMartin Geubelle
Change the icon once in a while randomly
2015-10-07[FIX] web: set the formatted date in the datepickerDanimar Ribeiro
Fixes #8867 Closes #8905
2015-10-06[FIX] web: groupby -> group byMartin Trigaux
Hopefully "group by" is already translated somewhere else so does not break trads
2015-10-02[FIX] web: DomainEditorDialogqsm-odoo
(backport of enterprise version) In readonly mode, the selected domain was not correct when click on "see selection".
2015-10-02[IMP] web(_editor): translate icon compatibilityqsm-odoo
Add the $translate variable for enterprise compatibility and hide it in web editor widgets (these had already no translate icon in community).
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: inverse extend attributes to use the overwrite of render_cellChristophe Matthieu
2015-10-01[FIX] web: use _.clone to avoid change of 'default_value'Christophe Matthieu
2015-10-01[MERGE] forward port of branch saas-6 up to e9f1ee4Christophe Simonis
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[FIX] web: increase log timerGéry Debongnie
boot loader waited for only 100 ms before logging failed modules. However, modules can now wait for deferred before completing their loading, so this delay is increasingly getting too short.
2015-10-01[FIX] web,website: bundle utils.less to assets frontedAaron Bohy
2015-10-01[FIX] enterprise settings upgrade widgetsAdrien Dieudonne
2015-10-01[FIX] web: dataset aware of m2m tags color changeMartin Geubelle
Use case: create a new tag, change its color and create another new tag. The m2m field was rendered again but the dataset was not aware of the color change on the first new tag. We need to invalidate the cache after changing the color in a tag in edit mode.
2015-10-01[IMP] enterprise settingsAntony Lesuisse
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-30[FIX] web: reintroduce ChangePassword templateqsm-odoo
The template had been previously dropped by mistake. + the validation buttons were not correctly handled and so changing his password was not possible (these buttons must be in the modal footer).
2015-09-30[IMP] web: menu.js: add hook for top menu changeAaron Bohy
2015-09-30[FIX] web: web_client: do_action: add missing returnAaron Bohy
2015-09-30[FIX] web: formview secondary labels font-weightqsm-odoo
The settings views are now using radio buttons which are using labels. These were set to bold by bootstrap. Now force font-weight normal for labels which are not labels inside an oe_form_group_cell_label (field main label).
2015-09-29[FIX] web: geater and less than or equal toRay Carnes
Correction for properly English grammar Refer to: http://www.fileformat.info/info/unicode/char/2265/index.htm http://www.fileformat.info/info/unicode/char/2264/index.htm https://msdn.microsoft.com/en-us/library/ms181567.aspx https://msdn.microsoft.com/en-us/library/ms174978.aspx https://en.wikipedia.org/wiki/Inequality_(mathematics) https://www.mathsisfun.com/equal-less-greater.html Closes #8742
2015-09-29[FIX] web,account: client actions layout (height)qsm-odoo
Like view manager containers, client action containers needed the overflow:auto property to compute their correct height inside their flex context. This also allows client action as the reconcilation in accounting to not care about their height.
2015-09-29[FIX] web: listview editable tab key to go to next lineqsm-odoo
This was not working if the last field of the line was a DOM element without any descendant (example: a simple input element).
2015-09-25[FIX] web : attachment controller got unexpected argsJérome Maes
On webclient, on 'Attachment(s)' dropdown (form view) when clicking on an attachment to download it, a request is sent to /web/content/ with a param 't' containing the current date. This param wasn't used neither before the new controller, but the old one accept additional kwargs. The new controller crashes, and since the t parameter is not used, removing it seems better.
2015-09-24[FIX] web: propagate context for graph view fieldsNicolas Lempereur
The fields loaded for the graph view used for measure and legend were not translated. opw-649918
2015-09-24 [REF] web: datepicker widgetqsm-odoo
(backport of enterprise version) * JS/XML refactoring * Allow user to override default options for the picker
2015-09-24[IMP] web, web_planner: add wow effect on buttonMartin Geubelle
* As the animations were already defined in web_planner, they are now moved in web (animations.less)
2015-09-24[FIX] web: record selector state in listview editableqsm-odoo
Before this commit, when editing a line in a listview editable, the record selector (checkbox) lost its state after the line edition.
2015-09-24[FIX] web: invisible element position in a listview editableqsm-odoo
Elements which are not displayed (display: none) cannot be positionned correctly by jQueryUI in a listview editable. Therefore, the solution is to make them visible (but opacity: 0) during the time their position is being computed. This was a problem because a listview editable field may become visible under some conditions AFTER their position was already computed.
2015-09-24[FIX] web: trigger onchange only once when write re-order sequencesChristophe Matthieu
2015-09-24[FIX] web: don't trigger remove then add the record to re-order list viewChristophe Matthieu
To re-order the list view remove the record and add the same record after. (If an onchange is called, the user can have a message to avoid remove a one2many item) Add an silent option on remove function of collection, the trigger is already call when write the sequence.
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-24[IMP] web, web_planner: move 'Help' in systrayMartin Geubelle
* 'Help' has now its own dropdown, directly accessible in the systray, instead of being hidden in the Administrator dropdown * 'About' has been moved there also * We can access the planner through this dropdown, even if the planner is hidden (complete)
2015-09-24[FIX] web: propagate context for pivot view fieldsNicolas Lempereur
On the "+" in the pivot views to group by given fields, these field were not translated in the user choosen language. closes #8656 opw-649918
2015-09-23[MERGE] forward port of branch saas-6 up to a669433Christophe Simonis
2015-09-22[FIX] web: m2m tags, wait for deferredNicolas Lempereur
We have to wait that the request getting the fields data is resolved before using it. Completing 655b13b0
2015-09-22[FIX] web: kanbanSelection widget : labels are not mandatoryYannick Tivisse
Coming from hr_recruitment, where kanban_state is displayed, but without the customization Also, remove lingering options in view, and missing fields for project_issue
2015-09-22[FIX] web_kanban, web: KanbanSelection widget refactoringYannick Tivisse
- Change the widget behavior from asynchronous to asynchronous, by adding 3 related fields on the project.task model, which are the custom labels defined for the stage - Instead of making a rpc call, we are taking directly the labels on the parent for the kanban view, or on the view datarecord for the form view - There are now 2 templates for the kanban view or the form view - The development has been backported in the community version - The options attribute has been removed on the project_view.xml file for the kanban_state field
2015-09-21[FIX] web: field radio empty valueqsm-odoo
The get_value method of field radio returned sometines an undefined value (while it is expected to return false is there is no value). This caused traceback for siblings fields trying to access the value of an empty field radio (onchange, ...).
2015-09-21[FIX] web: Tour test: remove false positiveChristophe Matthieu
re-test (element, waitFor, waitNot) because if click on a link to change page, don't want to click again after
2015-09-17[FIX] web: autofocus in autocomplete popup on a m2x fieldRavi Gadhia
* When the autocomplete popup list appears, the focus should be on first element in list, in order to quick create a new record if no match * Tour.js has been modified because jquery ui autocomplete needs a mouseenter event to be notified that this element will be set
2015-09-15[FIX] web,project: kanban_selection widget positionqsm-odoo
Move the project kanban_selection widget out of h1 and make it as direct child of form sheet. This allows to put it on the right of oe_title no matter what (+ enterprise compatibility).
2015-09-15[FIX] web: m2m tags glitch on some resolutionsMartin Geubelle