summaryrefslogtreecommitdiff
path: root/addons/board/static/src
AgeCommit message (Collapse)Author
2019-04-10[MERGE] forward port branch saas-12.2 up to 2694174b410Christophe Simonis
2019-04-09[MERGE] forward port branch saas-12.1 up to af313858b4bChristophe Simonis
2019-04-09[MERGE] forward port branch 12.0 up to c1c322dd401Christophe Simonis
2019-04-09[FIX] board: fixed height for graph svg containerLucas Perais (lpe)
Commit 9214d7815267d6bdad954f7e94a4bf187cea35bc is a bit old and made huge white spaces between graphs Commit 89931d1749e35231cc054428e1c43801d5ef3ffa introduces a dedicated svg container, on which we can set a fixed height The 250 px comes from what is being done in the web_dashboard app with commit odoo/enterprise@1638e5d4818cd459279b6040a711e259156b6f4a OPW 1944857 closes odoo/odoo#32522 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-04-04[FIX] board: action domainJulien Castiaux
The board created out of a tree view wasn't taking the default domain of the view. opw-1958349 closes odoo/odoo#32240 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-02-28[MERGE] forward port branch saas-12.1 up to f9d3b5b7dfeChristophe Simonis
2019-02-26[FIX] board: clicking on a pivot cell in dashboardAaron Bohy
Before this rev., it crashed when the user clicked on a pivot cell in the dashboard, whereas it should have performed a do_action to open the records in a list view. This was due to a leftover event handler (with the handler function being actually removed) in commit 38dc5c18b. Issue reported on the saas-12.1 migration pad. closes odoo/odoo#31367
2019-03-06[REF] board: 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>
2019-02-14[FIX] board: dashboard app mobile layoutRomain Estievenart
Follow-up of task 1904747 closes odoo/odoo#30853
2019-01-31[IMP] board: single column layout on mobilePierre Paridans
Improve the dashboard app on mobile by : - Hide the change layout button - Force one column view layout Task Id: 1904747
2018-12-07[REF] board: adapt code to search refactoringMathieu Duckerts-Antoine
This rev. adapts the code of the 'Add to Dashboard' entry of the Favotires menu, according to the large SearchView refactoring. It also does some tweaks for the dashboard app due to the move of the ControlPanel from the ActionManager to the controllers. Part of task 1893568
2018-11-29[MERGE] forward port branch 12.0 up to 82a1e1dcc33Christophe Simonis
2018-11-06[MERGE] forward port branch 12.0 up to dd70c684268Christophe Simonis
2018-11-06[FIX] board: use correct context in sub board viewsGéry Debongnie
Before commit 60f143c8e7b7ea2387031c968dfa0f31a288afb2, the dashboard parameters did not use the parameters from the action, so some important information could be lost. However, in this same commit, the action context overrides the context from the user defined views, which means that some information is lost. For example, customized group bys are ignored. This commit fixes the issue with some careful context manipulation. Some special care was done to remove the groupby from the action context if it is not empty, because that same logic is used in views.
2018-10-22[MERGE] forward port branch saas-11.4 up to 3c108977c1eChristophe Simonis
2018-10-17[MERGE] forward port branch saas-11.3 up to 0de06a41326Christophe Simonis
2018-10-16[MERGE] forward port branch 11.0 up to b29b545fe84Christophe Simonis
2018-10-16[FIX] board: translate custom views according to current userLucas Perais (lpe)
forward port of 62cbc5f Have a user in English, put a sale report as "favorite" (pinned to dashboard app) Change the user's language Before this commit, the pinned view was in English (because it was recorded that way) After this commit, the pinned view is in the user's language. OPW 1890664 closes #27799
2018-10-10[MERGE] forward port branch 11.0 up to a69f117bbf5Christophe Simonis
2018-10-12[FIX] board: translate custom views according to current userLucas Perais (lpe)
Have a user in English, put a sale report as "favorite" (pinned to dashboard app) Change the user's language Before this commit, the pinned view was in English (because it was recorded that way) After this commit, the pinned view is in the user's language. OPW 1890664 closes odoo/odoo#27574
2018-11-27[FIX] board: do not display the no_content_create divlen-odoo
That div has been given an absolute position, which does not work inside another div on the dashboard. If there are other dashboard elements below, there are unusable since they are covered by the no_content_create div. Moreover, there is no create button on the dashboard, so we shouldn't even see it. It also spares us from seeing that hideous clippy-inspired smiling paper sheet. opw 1907650 closes odoo/odoo#29076
2018-11-20[FIX] board: fix the domain of consecutive 'add to dashboard' operationslen-odoo
Add a search containing a domain to dashboard. Remove that domain. Do a new search with a different domain. Add that search to dashboard; the domain sent would be the concatenation of the two domains. We make it so that only the last domain is sent, with a test. opw 1907650 closes odoo/odoo#28843
2018-10-08[FIX] board: handle actions with no view_modeAaron Bohy
The view_mode attribute is automatically set to the 'action' nodes when the action is added to the dashboard using the 'Add to dashboard' button in the searchview. However, other dashboard views can be written by hand (see openacademy tutorial), and in this case, we don't want to hardcode action's params (like context or domain), as the dashboard can directly retrieve them from the action. Same applies for the view_type, as the first view of the action can be used, by default. Before this rev., the second usecase wasn't handled, and it crashed when no view_mode was specified. This rev. also ensure that the context and domain are correctly retrieved from the action. Closes #24088 closes odoo/odoo#27519
2018-10-08[FIX] board: handle actions with no view_modeAaron Bohy
The view_mode attribute is automatically set to the 'action' nodes when the action is added to the dashboard using the 'Add to dashboard' button in the searchview. However, other dashboard views can be written by hand (see openacademy tutorial), and in this case, we don't want to hardcode action's params (like context or domain), as the dashboard can directly retrieve them from the action. Same applies for the view_type, as the first view of the action can be used, by default. Before this rev., the second usecase wasn't handled, and it crashed when no view_mode was specified. This rev. also ensure that the context and domain are correctly retrieved from the action. Closes #24088 closes odoo/odoo#27517
2018-08-10[MERGE] forward port branch saas-11.4 up to edd586002e9Christophe Simonis
2018-08-06[MERGE] forward port branch saas-11.3 up to ff80efd71eaChristophe Simonis
2018-08-06[MERGE] forward port branch saas-11.2 up to 932b2299416Christophe Simonis
2018-08-06[MERGE] forward port branch 11.0 up to b29e053436bChristophe Simonis
2018-08-06[FIX] board: fallback to default view when not found in actionChristophe Simonis
This can happen when action is modified after dashboard creation.
2018-07-27[REF] *: BS4, adapt dropdowns and caretsqsm-odoo
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-07-19[MERGE] forward port branch saas-11.4 up to 1f7a39964b3Christophe Simonis
2018-07-19[MERGE] forward port branch saas-11.3 up to 0c42dcfc229Christophe Simonis
2018-07-18[MERGE] forward port branch saas-11.2 up to 02f38beffbbChristophe Simonis
2018-07-18[FIX] board: remove undesired attribute overwriteChristophe Simonis
Oversight of previous forward-port
2018-07-17[MERGE] forward port branch 11.0 up to 44b77d3702bChristophe Simonis
2018-07-13[FIX] board: open form view of given actionNicolas Lempereur
It is possible in a dashboard item to open a form view of a record. The view did not take into account the action used to display the item, so for example: from a customer invoice clicking on a record would display the "Vendor Bill" instead of "Customer Invoice" view. With this fix, when a view is being loaded to be displayed in the dashboard, we save a reference to a possible form view and if the form view is displayed, we use this reference. opw-1865454 closes #25718
2018-07-06[REF] *: rename web.pyeval into web.py_utilsGéry Debongnie
The pyeval name is quite confusing, given that there is already an eval and an evaluate function in py.js, and that the web.pyeval exports two evaluate functions. Since this file is more about odoo specific customization to py.js, it is renamed in py_utils to better express its intended use.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-06-15[MERGE] forward port branch saas-11.3 up to 50860317ccdChristophe Simonis
Note: 1aacc962620982528a3dfc90d2c1dd0027359375 has been ignored and will be forward-ported later
2018-06-15[MERGE] forward port branch saas-11.2 up to b170a753e18Christophe Simonis
2018-06-12[MERGE] forward port branch 11.0 up to e3658d6f568Christophe Simonis
2018-06-07[FIX] board: add extra infoNicolas Martinelli
When an element is added to the dashboard, it is unclear to the user that he needs to refresh the browser for the changes to take effect. opw-1853242
2018-05-29[MERGE] forward port branch saas-11.3 up to 37eed7c509fChristophe Simonis
2018-04-27[FIX] board: action executed with option keepSearchViewAaron Bohy
Rev. 69c9500e recently added option 'keepSearchView' to doAction in the ActionManager. When set to true, the searchview of the current action is re-used by the executed action. This caused issues with the dashboard, as the wrong action id was used to save the current action to the dashboard (it was the one of the action for which the searchview was instantiated, not the one of the current action, executed with option keepSearchView set to true). For instance, go to Website (in enterprise), in the new dashboard (view) expand the graph view, try to add the graph action to the dashboard (board). Task 1835670.
2018-04-19[MERGE] forward port branch saas-11.3 up to 204935119d1Christophe Simonis
2018-04-18[MERGE] forward port branch saas-11.2 up to fed775bc0c2Christophe Simonis
2018-04-18[MERGE] forward port branch 11.0 up to 8c64159b884Christophe Simonis
2018-04-18[REF] *: convert less content to scss contentqsm-odoo
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.