summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
AgeCommit message (Collapse)Author
2020-04-14[IMP] web: add a <Popover> componentDamien Bouvy
Using bootstrap popover with owl is possible, but with a lot of friction. This commit adds a Popover element to ease developments that require a popover. This component takes 2 props: - position='bottom' (optional): 'top', 'bottom', 'left', 'right' - title (optional) Its usage requires setting an `opened` slot for the content of the popover, whilst the 'trigger' of the popover uses the default slot. E.g. ```xml <Parent> <Popover> <t t-set="opened"> <p>You have opened the popover, congratulations!</p> <button t-on-click='_handlerOnParent'>Dispatch cake</button> </t> <button class="btn btn-primary">Click me!</button> </Popover> </Parent> ``` Note that: - only one popover can be opened at a time (opening a popover will close any previously opened popover) - `Popover` uses `Portal` under the hood, so events are propagated correctly even though the popover is teleported elsewhere in the dom (see example in this commit message with `_handlerOnParent`) - `<Popover>` is registed as a global component in QWeb and does not need to be added to a Component's subcomponents list closes odoo/odoo#47710 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-31[ADD] web: add CustomCheckbox owl componentMichael Mattiello (mcm)
This commit adds an owl component for the Odoo custom checkbox. task id: 2193996
2020-03-30[IMP] web: adapt multi edit feature to list selection changesAaron Bohy
We don't change the multi edit mechanism for now: it still only applies to the selected records, limited to the current page. However, we add the information in the confirm dialog to make it clear for the user. Part of task 2185145
2020-03-30[IMP] web: selection in list viewsAaron Bohy
This commit allows the user to apply actions to all records matching the current domain in list views. It also ensures that the user is aware of the set of records actually selected. The number of selected records is now displayed in the control panel, and the user can, with an additional click, select all records matching the current domain instead of the ones of the current page. Task 2185145
2020-03-30[FIX] web: Make company switcher widget usable with the keyboardLuis González
Background ========== After the refactor on the multi-company behavior performed for v13, now there are two possible actions per company, depending on where they're clicked: switch to the company or toggle it. Such actions were handled by `<div>` elements, which aren't keyboard-reachable by default. The Issue ========= Because of the above, the company switcher was neither reachable nor usable when using the keyboard. Solution ======== To solve this, the following is performed: - Add HTML attributes required to make elements reachable, along with their corresponding aria attributes - Actions that are currently triggered when clicking on an element, now are also triggered when the keyboard focus is on the element and `ENTER` or `SPACE` are hit Closes #47650 closes odoo/odoo#48627 X-original-commit: 33a7238d0b03ccb89e4c4d2f0d7380b5649dc4d4 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Luis González [Vauxoo] <luisg123v@users.noreply.github.com>
2020-03-25[FIX] web: Add missing aria attributes to selectable menu itemsLuis González
Some menus contain items that are selected/checked when they're activated, e.g. when a filter is applied, the menu item corresponding to that filter is checked. However, that information of what items are checked and what don't, is not reported correctly using aria attributes. To solve the above, the following is performed: - Attribute `aria-checked` is set accordingly, usually using the same logic as the clas `selected` - Attribute `role` is set to `menuitemcheckbox` or `menuitemradio` instead of `menuitem`, so `aria-checked` is applicable This applies on the following cases: - Standard topbar's menus: Filter, Group by and Favorites - The company switcher widget closes odoo/odoo#48301 X-original-commit: 64c0b47c0e8e8fdd3fa9b1bc13f2b49b6f49f4e1 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-03-25[FIX] web,mail: Harmful or incomplete aria-label attributesLuis González
Some elements contain superfluous `aria-label` attributes, which overrides any default useful information. For instance, some dropdown menus contain the `aria-label` "Dropdown menu" (e.g. the company switcher), which doesn't add any useful information, as dropdown menus are already labelled correctly using `aria-expanded`. This change applies on the following buttons: - Schedule an activity - View attachments - View followers - Switch company - Open user options from systray - The widget `state_selection` closes odoo/odoo#48317 X-original-commit: e3c7f66e89d7be39dfa4cc3d6b038c6f4a114aa5 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-03-13[REF] web: Control panel OwlJulien Mougenot
Refactoring of the control panel with the Owl framework. The MVC structure of the control panel has been changed to a 'component <-> model' relationship. As such: - Removed the old control panel: view/model/controller/renderer - Created a new Owl Component (ControlPanel) - Created a new class: the Model (an Owl Store did not fit here) and a newly designed ControlPanelModel extending it Refactored all inner subcomponents, including: - Pager - ActionMenus (peviously SideBar) - Filter menu > Custom filter item - Group by menu > Custom group by item > Removal of groupby_menu_mixin (and refactored graph controller in sibling commit) - Time range menu - Favorite menu > Custom favorite item > Moved the favorite menu registry to the favorite_menu file - Search bar > Removed and splitted auto-completion dropdown logic between the new SearchBar Component (descriptions) and to the new ControlPanelModel (domains). The templates (all in web/base.xml) have been adapted to the new standards. Most of the DOM structure remains unchanged with some occasional improvements (replace hiding with not rendering, removed pointless wrapper divs, etc.). Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-03-13[IMP] web: Dialog: add option to stop click propagationJulien Mougenot
There are situations where we don't want clicks to be detected behind an opened dialog: for example, when a dialog is opened by a dropdown, we may want to keep the dropdown open while we interact with the dialog. There is now an option (default: true) to stop clicks propagation when they arrive at the dialog container.
2020-03-04[IMP] web: remove caret from systray itemsAaron Bohy
The UserMenu and CompanySwitcher still had a caret, whereas all other items don't. For the sake of consistency, this commit removes the caret for every items. Task 2186309
2020-01-28[IMP] web: change pivot download file from xls to xlsxMohammed Shekha
before this commit: file was downloaded in xls format, which supports maximum 256 columns and 65536 rows. after this commit: pivot returns xlsx file when table printed and downloaded, we have support of xlsxwriter, xlsx file supports 16384 columns and 1048576 rows task-2127388
2020-01-10[FIX] web: burger menu isn't automatically closedAdrien Dieudonne
This commit reverts a previous fix because we found a better one in enterprise. So we don't need this line anymore. opw-2071605 Task ID: 2152160 closes odoo/odoo#43102 Related: odoo/enterprise#7647 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-01-06[ADD] web: Custom File InputJulien Mougenot
New component: the custom file input. Its purpose is to define a input of type file with a custom trigger (button, link, etc.). Its construction is the following: - attributes: behaviour of the actual input (route to call, multifile, allowed extensions etc.) - inner template: the trigger that will fire the upload prompt when clicked Once a file has been uploaded, the component will emit a 'uploaded' custom event containing the files. closes odoo/odoo#38423 Related: odoo/enterprise#6031 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2020-01-06[ADD] web: Owl DialogJulien Mougenot
New Owl component: Dialog. It does not rely on Bootstrap but behaves the same and does not conflict with legacy dialogs. To call this component, you need to define it in the XML parent template instead of calling it in the JS file, and put a flag in the parent state to toggle the dialog. Old dialog file has also been slightly updated to ensure compatibility between both versions. This commit also updates a list view test which did not wait for click events to properly trigger and would cause the new dialog system to crash.
2020-01-08[MOV] web: move the widget ``color_picker`` from "planning" to webDebauche Stéphane
Task #2088538
2019-12-17[FIX] web: my profile opens in background on mobileVishnu Thuletiya
Purpose of the task is, in mobile view when you click on my profile button it open profile in back ground and menu(burger menu) will stay open. so close the burger menu in mobile when clicks on my Profile or Preferences. Task: 2152160 Closes: #41899 Enterprise PR: https://github.com/odoo/enterprise/pull/7275 Related: odoo/enterprise#7275 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-18[FIX] web: Changed mobile message html element in multi-company dropdownAlexandre Díaz
Without this commit the multi-company dropdown breaks the page on mobile closes odoo/odoo#42080 X-original-commit: e074dca861bedb89952d3788e711e261ce903295 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-12-09[REF] web: rewrite pivot view renderer with OWLPierre Rousseau
Because the webclient and other higher level components such as the actionManager are not yet rewritten in OWL, we cannot make a complete migration of the controller and the model to a more OWL-ish code. We have rewritten the renderer completely in OWL, it uses more extensively a template and manages its own state and its sub-components. We did not rewrite the controller, however we have made it inherit from `web.ControllerAdapter` which is a thin compatibility layer used when a odoo controller uses a OWL renderer. In the tests, the only changes are that all the events triggered by the test and handled by OWL must be triggered on DOM nodes directly and not on JQuery elements. closes odoo/odoo#39491 Related: odoo/enterprise#7135 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com> Co-authored-by: VincentSchippefilt <vsc@odoo.com> Co-authored-by: pro-odoo <pro@odoo.com>
2019-12-09[IMP] web: no content helperPierre Rousseau
Duplicate the template of no content helper so it is available both in Odoo legacy QWeb and in OWL QWeb templates
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-19[FIX] web: fix big dropdown menu out of screenjvm-odoo
Reproduce the issue - Install CRM - Go in CRM > Reporting > Pipelines - Click on the first "Group by" button The dropdown menu is out of the screen at 100% zoom. If we want to see the whole menu we have to dezoom ("Ctrl" + "-") Cause We are using bootstrap to handle dropdowns. Bootstrap uses a library named "popper.js" to compute the position of the dropdown according to the remaining space. In this case, there is no space left to place the dropdown below the button, so popper.js flip it above the button and this cause the issue. This commit disable the flip from popper.js and set the max height of the dropdown menu to 140px: - navbar: 42px - control panel: 82px - some margin: 6px OPW-2116974 closes odoo/odoo#40530 X-original-commit: 9def02699d96f4dfd8dd806d2bec86a872a0c6eb Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com> Co-authored-by: aab-odoo <aab@odoo.com>
2019-10-31[FIX] web: dropdowns can't be in a relative-positioned elementLucas Perais (lpe)
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container https://github.com/twbs/bootstrap/issues/26512 https://github.com/twbs/bootstrap/issues/28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at https://github.com/odoo/odoo/pull/37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121938552d3f88289d2e5fcd1d57a0dd01bb closes odoo/odoo#39541 closes odoo/odoo#39636 Original-signed-off-by: Aaron Bohy (aab) <aab@odoo.com> X-original-commit: 7f72b837473f68a1dcd6a303ac1bf355dddcc2b1 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-10-28[IMP] web: add widget signaturesvs-odoo
Adding a new widget to display a sign button in the form view. task-1878607
2019-10-16[IMP] web: many2many_binary, binary, image, add the option ↵Debauche Stéphane
``accepted_file_extensions`` Purpose ======= We want to add an option on the widgets - many2many_binary, - binary, - image This option specifies what file extensions the user can pick from the file input dialog box. Examples ======== ```xml <field widget="many2many_binary" options="{'accepted_file_extensions': 'image/*'}"/> <field widget="many2many_binary" options="{'accepted_file_extensions': '.png,.jpeg'}"/> <field widget="many2many_binary" options="{'accepted_file_extensions': 'application/pdf'}"/> <field widget="image" options="{'accepted_file_extensions': '.png,.jpeg'}"/> <field widget="binary" options="{'accepted_file_extensions': '.pdf,.svg'}"/> ``` How === Add an option (accepted_file_extensions) in the template ``HiddenInputFile`` (the widget many2many_binary is using this template) So, we can also use this new option in others widgets using ``HiddenInputFile`` In the many2many_binary, read the ``nodeOptions`` and set the widget attribute ``accepted_file_extensions`` We also have to fix some other widget, because an property ``image_only`` was already existing in the template ``HiddenInputFile`` (we just need to replace ``image_only=True`` to ``accepted_file_extensions='image/*'`` The widget ``FieldPdfViewer`` (pdf_viewer) now use the new option to filtrate PDF (instead of removing the <input/> and adding <input accept='.pdf'/>). Tests ===== We also test if the option is correctly set on the <input/> - binary - image - many2many_binary Impacted widgets =============== - many2many_binary - image: this widget use ``options="{accepted_file_extensions='image/*'}"`` instead of ``image_only=True`` - tablet_image: same as ``image`` Task #2082815 closes odoo/odoo#38351 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-10-01[FIX] web: repair keyboard navigation in filter menuMathieu Duckerts-Antoine
Before this commit, invisible filters were rendered by QWeb but hidden in the filter menu. This used to break the keyboard navigation in the filter menu. Now we don't render at all those filters since they were completely useless anyway. This fixes the original problem. Task ID: 2057012 closes odoo/odoo#37567 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-10-07[FIX] web: dropdown boundary overflowLucas Perais (lpe)
Open a search view modal ("search more" on a m2o) Select a filter that will make records fall to zero The modal will shrink Trigger the opening of a dropdown (Filters), and make sure that there are many many menu items there (many filters) Before this commit, the dropdown was bigger than the modal which had a scroll bar, however, the dropdown itself was not scrollable properly So, clicking in it to select a menu item will fail when scrolled all the way down, because elements did not actually followed the scroll After this commit, the dropdown follows the scroll, and it is possible to use it even way down We use a behavior of bootstrap 4 itself: FIX: https://github.com/twbs/bootstrap/pull/24976 ISSUE: https://github.com/twbs/bootstrap/issues/24251 OPW 2076337 closes odoo/odoo#38080 X-original-commit: c3273b7a1c0c09aeef23df4ba4be8d68fd46a6f3 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-10-04[FIX] base: access button apply with keyboardLuis González
The button to apply a custom group (Group By -> Add Custom Group -> Apply) was unreachable when using the keyboard. Remove the unnecessary attribute `tabindex="-1"` probably added for no apparent reason. closes odoo/odoo#37982 X-original-commit: 373c69bca366180601b760f05f219a4698e3c014 Signed-off-by: Luis González [Vauxoo] <luisg123v@users.noreply.github.com>
2019-09-25[IMP] web: list multi edition confirmation modalJulien Mougenot
Changed the information dipslayed by the confirmation modal in multi edition in list views. Before this commit, the modal simply showed a one-line message with the amount of valid records. Now, there are 3 elements: - If all of the fields cannot be changed, a first line warns the amount of valid records. - A second (or first if all fields can be updated) line ensuring that the user is aware of the occuring changes. - A table displaying the affected field and the updated value (readonly widget with the new value). Part of task 1967602
2019-09-20[MERGE] web: Re-implement the XLS grouped exportOdoo's Mergebot
Purpose ======= The commit 2849b5c introduces a new export mechanism of grouped list views to xls files. The issue with this development is mainly that the displayed records are exported, instead of all the records that match the search parameters. To export all the records we cannot rely on the data from the web client. This implies to revert 2849b5c, and implement it in a better way. Functional Spec =============== Add the support of grouped exports. Allow the user to export all records in one click from the listview, without having to go through the export modal, taking into account the domain, groupbys, and visible fields. Technical Spec ============== When exporting (whether it is from the modal or from the shortcut), any groupby(s) set on the listview should be taken into account (all unfolded) - UNLESS the export is import-compatible - each subgroup header has an indentation compared to its parent - the 'group headers' in the exported file should contain the same info (label, field aggregates) as it has in the listview. New secondary button on the tree view with label 'EXPORT' (to be confirmed...) - the export shortcut disregard the selected records, it exports all records according to the domain. - the button is visible even if there is no selected records. - essentially the export shortcut does the same thing as the following: - select all records - hit 'action' then 'export' - hit 'export' Define a boolean attribute on <tree> to specify whether or not the export shortcut should be displayed Task 2072910 closes odoo/odoo#37087 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-20[IMP] web: Export grouped list view in xls fileLucas Lefèvre
PURPOSE ======= Add the support of grouped exports. Allow the user to export all records in one click from the listview, without having to go through the export modal, taking into account the domain, groupbys, and visible fields. SPECIFICATION ============= When exporting (whether it is from the modal or from the shortcut), any groupby(s) set on the listview should be taken into account (all unfolded) - UNLESS the export is import-compatible - each subgroup header has an indentation compared to its parent - the 'group headers' in the exported file should contain the same info (label, field aggregates) as it has in the listview. New secondary button on the tree view with label 'EXPORT' (to be confirmed...) - the export shortcut disregard the selected records, it exports all records according to the domain. - the button is visible even if there is no selected records. - essentially the export shortcut does the same thing as the following: - select all records - hit 'action' then 'export' - hit 'export' Define a boolean attribute on <tree> to specify whether or not the export shortcut should be displayed Task 2072910
2019-09-19Revert "[IMP] web: Export list view as XLS file"Lucas Lefèvre
This reverts commit ac00548b28c0c384b5b1423f65405e4918101872.
2019-09-20[FIX] web: field color: adapted for viewsJulien Mougenot
The FieldColor widget had been designed exclusively for the document layout configurator. Because of this, the widget would not display/behave correctly in other views. Before this commit: - in list views, the widget had a "white-space" attribute adapted for char fields, which gave it much more space than it needed - there was no handling of the widget in readonly state: it was always editable - its size in list views was a bit too large Now: - all styling problems have been adjusted for list views (unchanged for forms) - the widget is disabled when in readonly mode Task 2072466 closes odoo/odoo#36949 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-09-18[FIX] web: readonly many2one in list viewsJulien Mougenot
Let's assume an editable list with a many2one and a char, the many2one being readonly. Before this rev., if the user clicked on the many2one, the row was switched in edit more, and the many2one link was given the focus. Now, in the same scenario, the focus is given to the char field which can be edited (i.e. its input). Task 2068280
2019-09-17[IMP] web: SearchView: "see result" button should be over the opened dropdownJigar Patel
In mobile search view, filter dropdown was overlying upon 'see result' button. This button should be over the opened dropdown to make it visible properly. Task ID : 1987223 closes odoo/odoo#34022 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-16[IMP] web: SearchView: Allow user to quickly search on mobileAdrien Dieudonne
Currently the search panel is nice for a search with filters but that was not 100% efficient for simple research without filters. The Search is now integrated in the form view, with the ability to open the Search panel to apply filters or group by. Task ID : 1924760
2019-09-16[REF] web: control_panel: breadcrumb and cp_searchview flexible widthAdrien Dieudonne
1) The size of the left part of the control panel will take free space left. Normally, the width is always fixed to 50/50 but now the breadcrumb can take more or less space if needed. It will be useful on mobile where the search bar is dynamically sized. 2) Control panel elements are split into two divs; - breadcrumb and search bar are grouped to be in the top. - buttons (o_cp_left) and pager (o_cp_right) in the bottom. Now we can easily add antoher elements in the top or bottom part of the control panel. 3) Control panel template is likely the same on mobile so they are now merged. 4) Before this commit, we always had an empty parent even if the search bar wasn't rendered. Removing it makes the DOM cleaner. Because of this, we are not able to expose this area used to add custom elements. Some code need to be adapted. Task ID : 1924760
2019-09-16[IMP] web: Export list view as XLS fileLucas Lefèvre
Purpose ======= Have a quick export feature. The current export wizard is quite complex. We want to be able to quickly export a tree view, with the group by correctly represented, depending on the fields visible in the list view. Specification ============= Add an "EXPORT (XLS)" button in the list view (a little download icon) - export only columns visible in list view - export all the records - while respecting the group by This should be a generic feature but should be applied to all the account.move.lines list views. account.view_move_line_tree_grouped_sales_purchases account.view_move_line_tree_grouped_bank_cash account.view_move_line_tree_grouped_misc Task 2031835 closes odoo/odoo#36943 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-14[MERGE] forward port branch saas-12.4 up to 98a55917a60Christophe Simonis
2019-08-13[MERGE] forward port branch saas-12.3 up to 499d3efa7ceChristophe Simonis
2019-08-09[FIX] web: add support for TRUE_LEAF and FALSE_LEAF in ModelFieldSelectorJinal Patel
before this commit, domain selector widget does not support TRUE_LEAF and FALSE_LEAF i.e. [(1, '=', 1)] and [(0, '=', 1)] respectively, the reason is the chain part of the domain i.e. field name has value 1/0 and we don't have field name like 1 and 0 in domain and hence ModelFieldSelector don't accept it after this commit, domain selector can handle this special two domains which is [(1, '=', 1)] and [(0, '=', 1)], add support for chain with 1/0 in ModelFieldSelector task- 1998145 closes odoo/odoo#35603 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-08-13[IMP] web: review date filters and groupbys functioningMathieu Duckerts-Antoine
This commit modifies the functioning of date filters in the control panel Filters and Group By submenus. For a filter with date attribute set, the list of proposed options is shorter but allows a bigger set of domains to be quickly created (through combinations of the options). The resulting list of domains is different of the previous one: domains like "Today" or "Last Week" are left aside but many others (and their unions) are now accessible. The domains generated in that way are no more dynamic but it is still possible to save dynamic filters in general. This commit also reintroduces the multi selection of options for groupbys of type date/datetime in the groupby menu. Task ID: 2028787
2019-08-12[IMP] web: export improvementsKishan Gajjar
* remove center buttons, corresponding features either moved to fields list (handle / bin on exported, etc...) or removed entirely (e.g. clear) * replace XLS to XLSX format, increases rows# to 1048579 * add FAYT filtering of available fields * sort available fields alphabetically (CI) always * change export templates UI: remove buttons TaskID: 1910953 closes odoo/odoo#32339 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-08-07[IMP] web: add new many2many_tags_avatar field widget to show avatar with tagsJigar Patel
2019-08-07[IMP] web: allow `invisible` filters to be usedDharmang Soni
Before this rev. `invisible` filters in the search view were not considered at all. Now the filters are still invisible from the user POV, but they are still accesible via context and can be applied on search. Related of task 2036392
2019-08-02[REF] *: pivot view refactoringMathieu Duckerts-Antoine
The main aim of the present refactoring is twofold: - simplify the code that was largely complexified at the time of the introduction of comparisons in the pivot view (Time Ranges menu), - factorize the method expandHeader and _loadData that were too much complex. Along the way, the pivot model structure has been simplified and many tests have been added. Performances in mobile mode have been improved by avoiding unecessary operations due to useless column groupbys in that mode. It should now be easier to understand and modify the pivot view in future. Co-Authored-By: Aaron Bohy <aab@odoo.com> closes odoo/odoo#33615 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-06-25[MERGE] forward port branch saas-12.3 up to 793933a1287Christophe Simonis
2019-06-21[MERGE] forward port branch saas-12.2 up to 8747d72f1efChristophe Simonis
2019-06-17[FIX] web: highlight clickable pivot cells on hoverAnshuman Sharma
After a recent reorganization of the web client's components tree, the class 'o_enable_linking' was added on the wrong element. This made the css rule responsible of the highlighting of the clickable pivot cells impossible to satisfy. This commit fixes the issue by adding the class directly in the template 'PivotView'. Additionally, this commit also makes visually clear when a field selection menu-items is disabled (because it is already used) using a 'not-allowed' cursor (which was removed in bs4). It is now again possible to open a list view by clicking on a cell with zero value (like in Odoo 11). task-1916889 closes odoo/odoo#34165 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-06-05[IMP] *: add debug manager in frontendRomain Derie
Now that the debug mode is stored in session, we need a clear indication that debug mode is activated. In backend, the 'fa-bug' is doing the trick but in frontend there is no visible clue that debug mode is enabled. This commit separate the debug manager code/feature so we can instanciate it in frontend only with usefull options (such as enable assets, leave debug mode..). Now, in frontend, people having access to the navbar (o_main_navbar) will see the same 'fa-bug' icon with minimal options as mentioned above. Also, in the footer, there will be another 'fa-bug' icon without any options. It will be usefull when the navbar is not shown, typically the case for public user, or for portal (without website installed)). Clicking on it will simply leave debug mode as hinted in tooltip. task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213