summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
AgeCommit message (Collapse)Author
2019-04-12[MOV/IMP] web, mail: update attachment widget and moved the common scss code ↵jpr-odoo
from mail to web with this commit, we have updated the attachment widget view same as like chatter attachment view moved the common scss code from mail to web for many2many_binary widget, which is used for attachment and update test case according to the widget Task ID: 1930087
2019-04-19[IMP] web: consider select tag for o_row classMohammed Shekha
This commit will fix UI glitch when seletion field and any other field kept on same line Using o_row we can put two divs, two inputs side by side but if we have case where from two elements 1 is input and second one is selection widget then we will have glitches in UI, this commit will fix that glitch task-31003 closes odoo/odoo#23914 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-18[MOV] web, project: make cover image generic in kanbanSuraj Shukla
Previously, we could only set cover image on the kanban view of project task. This commit makes the feature generic so now cover image can be added to any kanban view. Technical notes: - field used to display the cover image has to be set as 'data-field' attribute on the kanban dropdown's menu related to cover image - developer will have to take care while designing kanban views with cover image ability in such a way that it does not break the design Task 32108 closes odoo/odoo#31731 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-04-12[MERGE] forward port branch saas-12.3 up to 120359bf0c9Christophe Simonis
2019-04-05[FIX] web: restore handle and remove button width on listMartin Geubelle
Rev. odoo/odoo@9fbb4fb wrongly removed the fixed width on handle and button width on list views. This commit restores it. closes odoo/odoo#32467 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-04-05[MERGE] forward port branch saas-12.2 up to f2be461f090Christophe Simonis
2019-04-05[MERGE] forward port branch saas-12.1 up to f2d0995362cChristophe Simonis
2019-04-09[IMP] web: properly set margin for the kanban dropdownSuraj Shukla
While everything looks pretty perfect without this commit, setting margin on `.dropdown-toggle` and not on its parent `.o_dropdown_kanban` itself will cause glitches in Studio. While selecting the dropdown using Studio, the class responsible for displaying outline (that indicates the selection) is applied on '.o_dropdown_kanban', which is okay, but the actual child is positioned using margin, so the outline on parent div looks ugly. This commit fixes the issue by applying the margin on the proper selector. Task 1916583 closes odoo/odoo#30049 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-04-09[IMP] web: better ModelFieldSelector layoutSuraj Shukla
This commit improves the usability of ModelFieldSelector widget with following points: - add a placeholder on the input for searching fields - add more height to the same input for consistency - properly show 'X' sign within header Task 1916583
2019-04-04[MERGE] forward port branch 12.0 up to 251021796c2Christophe Simonis
2019-04-03[FIX] point_of_sale: background layout header iframeNicolas Lempereur
When a report with header is displayed in iframe with layout "Background", part of the header maybe outside of the page. For example on /my/invoices portal show of an invoice, the max width report iframe can set at 210mm (+/- 793.7px normally), the header in background layout has `min-width: 900px` so is wrongly centered and may have content outside of shown page (eg. company tagline). The same issue happen when using HTML rendering of the report in backend, but depends on the viewport width. This may be the expected configuration when printing (wkhtmltopdf should unzoom if something was too large to fit) but not when displaying html directly. opw-1915807 closes #32373 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-04-02[IMP] web: list: directional keys navigation in readonlyDavid Monjoie
With this rev., it is now possible to navigate with arrows in list views (except when editing, as in this case hitting the arrows moves the cursor in the input/textarea), and to expand/collapse groups with keyboard navigation. Part of task 1915702
2019-04-02[IMP] web,account: editable list: no more position absoluteAaron Bohy
Before this rev., widgets were absolutely positioned in table cells. This cause an undesired effect with text fields, as their textarea overflowed and overlapped the next lines. With this rev., wigdets are now statically positioned, and the cells height and width don't change when switching a row to edit mode. Part of task 1915702
2019-04-02[IMP] web: editable list: table-layout: fixedAaron Bohy
This rev. changes the layout of *editable* list views to a fixed layout. This means that we are now responsible of the width of each column. To do that, we associate with each field type a factor, and the higher the factor is, the larger the column will be (w.r.t. the others). This default value can be overriden in the arch. The fixed layout allows to remove the absolute positionning of widgets inside editable lists (done in the next commit). Part of task 1915702 Co-authored-by: Martin Geubelle <mge@odoo.com>
2019-04-02[IMP] web,base: put buttons in list group headersMartin Geubelle
It is now possible to put buttons in the list view group headers. When the view is grouped by a many2one field, those buttons appear next to the header title when the group is opened. The buttons are specified in the views in a <groupby> tag in the list arch, with the following structure: <groupby name="groupedField"> <!-- must be a many2one --> <button type="object" name="my_method" string="Button1"/> </groupby> It is also possible to add `field`, inside the `groupby` which can be used for modifiers. These fields thus belong on the many2one comodel, like: <groupby name="partner_id"> <field name="name"/> <!-- name of partner_id --> <button type="object" name="my_method" string="Button1" attrs="{'invisible': [('name', '=', 'Georges')]}"/> </groupby> These extra fields are fetched in batch when grouping on the field. Part of task 1915702
2019-03-28[FIX] web: avoid double margins after Many2ManyTags fieldsAdrien Dieudonne
Before this commit, there was too much space after Many2ManyTags fields. This was due to the fact that a many2one is embedded in the many2manytags widget. Therefore, the css rule who add margin-bottom was applied twice. e.g.: Tags field in project task form view To fix this, we remove the margin-bottom from the children widgets. Note: This bug is not a big deal in previous versions but in 12.2 margins between fields has been increased in mobile and we clearly saw this issue. Task ID: 1944884 closes odoo/odoo#32193 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2019-03-19[FIX] lunch: make it work on mobilePierre Paridans
This module didn't worked on mobile: user cannot select the products or see their cart. This commit reworks the LunchKanbanWidget template and introduces a dedicated template for mobile. This template introduces a button at the bottom of the screen to toggle the "cart" widget on mobile (hiding it by default). It tries to make the best use of the existing Bootstrap classes allowing to have a more responsive layout and reducing the custom CSS required by this module (both in desktop and in mobile). This commit adds a decent JS tests-suite (mobile & desktop) to this module as the existing one left substential parts of the UI untested (opening wizard when clicking on a kanban record, cart's lines content, clear cart button, widget structure and content based on the state...). Those tests are also less based on DOM nodes order/tag names and use instead dedicated classnames. It also modifies the LunchKanbanRecord click handling to had a dedicated event handler instead of overriding the default _onGlobalClick() and make it more testable. Task ID: 1945032
2019-03-14[MERGE] forward port branch 12.0 up to a26496b6e79Christophe Simonis
2019-03-14[MERGE] forward port branch saas-11.3 up to f5ab04ce509Christophe Simonis
2019-03-14[MERGE] forward port branch saas-12.1 up to ff1bca32f3aChristophe Simonis
2019-03-12[FIX] web: do not use t-if inside assetsMartin Trigaux
This makes the assets to be recomputed everytime somebody with a different language load the page. closes odoo/odoo#31782 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-03-08[FIX] web: fix kanban css for overflowsNans Lefebvre
If the content is too long, it overflows badly. Since the height is fixed, the flex doesn't work well. opw 1924145 closes odoo/odoo#31717 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-03-11[MERGE] forward port branch saas-12.1 up to 2b3296bbf8bChristophe Simonis
2019-03-08[MERGE] forward port branch 12.0 up to c023d0784f2Christophe Simonis
2019-02-28[FIX] lunch,web: display correctly list's cell with text overflowPierre Paridans
Installing the 'lunch' module add css rules to the generic list view styling, modifying the styling of all the list views by the simple fact of being installed. The goal of those rules is that in list view a table cell with the o_text_overflow class should still be displayed as a table-cell (and not a block/inline-block). Without the lunch module a list view's cell with the o_text_overflow class is narrower and break the alignment between this column and the headers. This commit moves the necessary rule (display property) to the web module and apply them globally. Remark: module's css rules shouldn't override globally the one from 'web'. Original commit: https://github.com/odoo/odoo/commit/855c6dac25fccaf9312543022001ed0b360d6e13 closes odoo/odoo#31506
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to b2db72c9d13Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-21[FIX] web: several columns in line chart tooltips for large dataHiral Bhavsar
Currently tooltip goes out off the screen when the graph view (in line mode) presents a large number of groups. The present commit splits the tooltip content in three columns when the number of groups exceeds 20. This split is not done in mobile mode because it is not an appropriate in that situation. Co-authored-by: Mohammed Shekha <msh@openerp.com> Related to Task: 1917958 closes odoo/odoo#30288
2019-02-21[IMP] web: properly display min and max abs when less that 3 abs.Hiral Bhavsar
In graph line mode, min and max abs are displayed beyond the screen when there are less than 3 abs. This is happening because nvd3 fixes their text-anchor to 'middle'. The present commit fixes correctly their text-anchors to start and end respectively by using the '!important' rule (it seems difficult to do otherwise). Co-authored-by: Mohammed Shekha <msh@openerp.com> Related to Task: 1917958
2019-03-06[FIX] web: hide CopyClipboard widget button when pointlessMartin Geubelle
The widget has been moved in rev. odoo/odoo@15f3bbe but was not very generic. In particular, there was a traceback when clicking on the button if the field had no value (the button was displayed for readonly fields in create mode). The button is now only appended in readonly mode (a `button` inside an `input` or a `textarea` is not very DOM friendly) if the field has a value. Task 1941996 closes odoo/odoo#31635 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-03-05[FIX] web: have link over whole many2oneNicolas Lempereur
The style of a link (color) of a many2one is only applied over the first line (probably for eg. the partner on an invoice that has the partner name and on following lines the address). In some instance this make some sense, but on other (the name of a product is too long from where it is) it makes no sense and seems buggy. With this change, we have the link style over the whole link which seems good enough. opw-1947113 closes #31568 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-04-01[REF] reimplement journal dashboard widget with Chart.jsGéry Debongnie
This commit is one part of the task 'removing nvd3'. We use now Chart.js to draw charts. Task ID: 1946138
2019-04-01[IMP] web: use Chart.js in graph viewMathieu Duckerts-Antoine
It has been decided to use Chart.js instead of nvd3 to render charts. In this commit the graph view has been largely rewritten to benefit from the options offered by Chart.js. Task ID: 1946138
2019-04-01[MERGE] forward port branch saas-12.2 up to 18c735361a6Christophe Simonis
2019-03-25[IMP] web: improve attachment files designeco-odoo
Task: 1893104
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-13[MERGE] forward port branch saas-12.2 up to c9f832d9f03Christophe Simonis
closes odoo/odoo#31790 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-08[FIX] web,*: adapt autocomplete dropdowns after jquery updateAaron Bohy
*partner_autocomplete,test_main_flows In jQuery 3, the active element in autocomplete dropdowns is no longer identified with class 'ui-state-focus' on the <li/>, but with class 'ui-state-active' is on its child <a/>. Moreover, the background color of the active element is now set on the <a/> instead of the <li/>. This rev. adapts scss rules accordingly, and selectors in the main_flow_tour. Issue reported on the jquery update pad. closes odoo/odoo#31693 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-02-14[IMP] web Add widget signature on binary fieldjbm-odoo
Add a new widget for binary fields. It open a dialog box and the user can sign manually, or an signature can be draw automatically or he can upload a picture of his signature. Move fonts, controller, scss,templates about signature from portal to web to avoid redundance closes odoo/odoo#30222
2019-02-14[IMP] web: mobile kanban tabs UXRomain Estievenart
The mobile kanban title tabs required to move from column to column 1-by-1 to go from the first to the last column. Focusing everytime to only the active column has ugly side effects when the titles are long (eg. text overlapping). This commit change the mobile kanban tabs UX by allowing to scroll through them and go directly from a column A to B. It also improve the readability independently of the title's length. This behavior is heavily inspired by Material Design. See: https://material.io/design/components/tabs.html Task: 1893168
2019-02-13[IMP] web: add kanban searchPanelAaron Bohy
This rev. defines a searchPanel widget used in Kanban views to refine search according to specific dimensions. This wigdet is displayed as a sidebar to the left of the kanban view. Part of task 1892462 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Raphael Collet <rco@odoo.com>
2019-02-11[MERGE] forward port branch saas-12.1 up to 93d736e905eChristophe Simonis
2019-02-11[FIX] web: improve visual glitch for 'many2many_tags' field widget on ↵shreya thakrar
settings view - For 'res.config.setting' view, when there is a field with 'many2many_tags' widget, a drop-down is not displayed properly. (For example, see 'default_cashbox_lines_ids' field from point_of_sale module) - This commit fixes the above visual glitch by properly displaying the field having 'many2many_tags' widget on settings view. Task id - 1935608 closes odoo/odoo#30956
2019-02-08[IMP] web: mobile calendar today button alignmentRomain Estievenart
The "today" button should be aligned (both size and position) with the view switcher icon. Task ID: 1891955
2019-02-08[REF] web: extract calendar mobile stylingRomain Estievenart
Extract mobile calendar styling into dedicated SCSS file. Task ID: 1891955
2019-02-08[IMP] website, *: add new logo sizing optionqsm-odoo
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-07[MERGE] forward port branch 12.0 up to a46138cb019Christophe Simonis
2019-02-27[FIX] web: do not show BS deprecation warningsqsm-odoo
Part of https://github.com/odoo/odoo/pull/31401 task-1944790
2019-02-06[MERGE] forward port branch saas-11.3 up to 0c42a607eceChristophe Simonis