summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_list.js
AgeCommit message (Collapse)Author
2015-03-18[REF] web: add module system to the web clientGéry Debongnie
This commit introduces a new module system for the javascript code. Instead of using global (namespaced) variables everywhere (like openerp.web.whatever, ...), each file declare one (or more) module with its dependencies. Each module will be loaded after its dependencies, and will be given a reference to the return values. This change is a massive departure from the way the client worked previously. It will sadly break some/most history, but I am sure that the future git ecosystem will allow you to easily browse the history past this revision (one can dream). This commit feature: * main namespace is now odoo instead of openerp * a way to define modules and dependencies (inspired by requirejs) * many files have been splitted in simpler subfiles * basic support for debugging in odoo.__DEBUG__ * no global variable (i.e. nothing in window.openerp) * many bug fixes, many new bugs Future vision: this modularization should simplify future code development, simplify debugging and will allow a serious testing effort
2015-03-09[MERGE] forward port of branch 8.0 up to 948befbChristophe Simonis
2015-03-09[MERGE] forward port of branch saas-3 up to 4a3c471Christophe Simonis
2015-03-09[MERGE] forward port of branch 7.0 up to 209ce6fChristophe Simonis
2015-02-26[FIX] Web: ListView and ListView.Groups: pagersAaron Bohy
* Fixes the pager on grouped list views for which there was no specific behavior (except of doing +1 or -1) for next and previous actions on last and first pages respectively. * Hides the previous and next buttons of the main pager on grouped list views as these buttons have no effect in grouped mode.
2015-02-25[FIX] Web: view_list.js: pager next and previous actionsAaron Bohy
When the number of records n and the limit l were such that n%l = 0 (e.g. 16 records total, 8 displayed per page), clicking on the previous button on the first page, or on the next button on the last page produced a bug because the total number of pages computed for this edge case was incorrect.
2015-02-11[MERGE] forward port of branch 8.0 up to 33a8989Christophe Simonis
2015-02-09[FIX] web: do not apply default_order if list groupedDenis Ledoux
If the list view is grouped (with a groubpy filter), the default order must always be the order of the groupby
2015-02-05[REV] 54e75b02: excessive breadth makes all falsy values disappear from listsXavier Morel
Empty checkboxes are supposed to be displayed. Fix specifically and only in the binary field.
2015-02-05[ADD] py.js: len() and truthiness on lists, tuples and dictsArthur Maniet
* use new support to colorize reconciled bank statement lines * fixes tokenization of ``is not`` to not blow up on ``not foo`` * improves calling code to get truthiness of evaluated expression instead of truthiness of javascript-equivalent objects: an empty list is falsy in Python but truthy in javascript, since the evaluated expression is in Python one would expect Python truthiness rules without having to manually convert to boolean closes #5070
2015-02-03[MERGE] forward port of branch 8.0 up to 4af53deChristophe Simonis
ignore .po and .pot changes
2015-01-29[FIX] Empty binary column download errorkevin wang
In case of an empty inline column, a Download link inviting the user to click would still be rendered (erroring out if the user eventually clicked on it) fixes #3684
2015-01-27[FIX] Web: views.js and view_pivot.js: sidebarAaron Bohy
The sidebar in view pivot was not hidden when switching from view pivot to another view. Thus, the sidebar content of view pivot was still in a dropdown of the sidebar of the new view (when this new view has a sidebar as well). Also changed the way of switching between views: we now first hide the current view before creating and displaying the new one. This prevents weird rendering in the header as well. Moreover, the task of hidding/showing the view's buttons is left to the view instead of the ViewManager.
2015-01-27[FIX] Web : add fontawesome in list handle widgetYannick Tivisse
2015-01-26[IMP] URL widget for list view columnsHarrison Hubbell
closes #4338 closes #3592
2015-01-06[MERGE] forward port of branch 8.0 up to ea54d4aChristophe Simonis
2014-12-19[FIX] web: reordering in editable list viewsJulien Legros
Broaden the set of conditions where reordering is allowed. Lists can be reordered when they are sorted by sequence (or sequence ASC) opw-619465
2014-12-03[MERGE] forward port of branch 8.0 up to 31a01eaChristophe Simonis
2014-12-03[MERGE] forward port of branch 7.0 up to d6daf5fChristophe Simonis
2014-12-03[IMP] web: do not fully hide pager in grouped viewMartin Trigaux
When the list view is grouped, the page count should be hidden as irrelevant. However if it's fully hidden, the limit can no longer be changed. Instead of hidding the pager, this commit hides the arrows and replaces the content by the current limit to allow to be changed.
2014-12-03[FIX] display pager in listview after ungrouping (web)Géry Debongnie
list view hide the pager when it is grouped, but it should show it again after it is ungrouped.
2014-12-02[MERGE] forward port of branch 8.0 up to 591e329Christophe Simonis
2014-12-01[MERGE] forward port of branch saas-3 up to e1e7dc0Christophe Simonis
2014-12-01[MERGE] forward port of branch 7.0 up to 419d934Christophe Simonis
2014-12-01[FIX] fix editing one2many in some cases (web)Géry Debongnie
See issue #3964 for more detail. Main problem was caused by commit f0e331e005d8. It set the key name+'__display' to false when reloading a record for all field types, but it was only concerned with many2many.
2014-11-27[MERGE] forward port of branch 7.0 up to 2080ea0Denis Ledoux
2014-11-26[FIX] correctly update many2many in listview (web client)Pierre Verkest
Fixes the issue #1216 (follow the link for more information). The issue was caused by a hack in list view: the magical suffix __display is used in render_cell to determine if a many2many field should be updated. This commit simply makes sure that old many2many fields + __display keys are cleared. A better way would be to redesign/refactor the list view to avoid that hack in the first place. But this would be a much more complex task.
2014-11-05[FIX] web: fix remarks from prCedric Snauwaert
2014-11-05[FIX] web: remove datejs and replace by momentjsCedric Snauwaert
2014-10-31[FIX] fix bouncing buttons (when no content)Géry Debongnie
i am aware that this is an interesting hack, and that i do not resize correctly the $buttons after the bouncing effect, but at least, it solves the problem.
2014-10-29[FIX] fix bouncing problem on create/import buttonsGéry Debongnie
the bouncing is supposed to occur when clicking on the area in view list with no content. Problem was that the Create button was separated from the import button while bouncing. This commit fixes the issue in a not really subtle way: it instead bounces the whole row. I tried to find a better fix, but I don't like jqueryui and i don't want to spend too much time on this.
2014-10-21[FIX] a few bugs in view_form/view_listGéry Debongnie
some small stuff...
2014-10-21[IMP] readd pager functionality to web clientGéry Debongnie
The pager was removed in the refactoring of view manager. This commit readd the pager, and improves its rendering to avoid flickering
2014-10-01[MERGE] forward port of branch 8.0 up to e883193Christophe Simonis
2014-10-01[IMP] fields: allow sorting on inherited field in list viewsRaphael Collet
2014-09-16[IMP] hr_holidays: toogle button for leaves mgmtParamjit Singh Sahota
2014-09-05[MERGE] forward port of branch 8.0 up to ed1c173Christophe Simonis
2014-08-25[IMP] web_tip: add support for list viewsJulien Legros
2014-08-22[ADD] doc: new documentation, with training tutorials, and new scaffoldingRaphael Collet
2014-08-13[MERGE] Forward-port of saas-5 up to 20cc18dOlivier Dony
2014-08-13[MERGE] forward port of branch saas-3 up to 591326cDenis Ledoux
2014-08-12[MERGE] forward port of branch 7.0 up to 60ab6f1Denis Ledoux
2014-08-12[FIX] web: on switch form (from list & kanban) do not load record if empty ↵Denis Ledoux
dataset
2014-07-23[FIX] web: correct rev 680f955Martin Trigaux
Missing backport of commit f652402 for buffered dataset Again, should not be forwardported
2014-07-22[FIX] web: reload after wizard when record has been removed cause exceptionAnaël Closson
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883) This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
2014-06-27[MERGE] forward port of branch saas-5 up to 8dfd5eaChristophe Simonis
2014-06-27[MERGE] forward port of branch saas-3 up to bdc4dd4Christophe Simonis
2014-06-27[MERGE] forward port of branch 7.0 up to 95cff0bChristophe Simonis
2014-06-27[FIX] view_list: hide pager in view groupMartin Trigaux
Displaying the pagert in view group does not make sense as it's not updated when changing filter and every group (even if more than 80) is displayed in view group
2014-06-25[MERGE] forward port of branch saas-5 up to 9e8e365Christophe Simonis