Skip to content
Snippets Groups Projects
  1. Jul 27, 2018
    • qsm-odoo's avatar
      [REF] *: BS4, adapt input-group structure · b437808f
      qsm-odoo authored
      The input-group-addon class has been replaced by a combination of the
      input-group-text and the input-group-append/prepend classes. The
      input-group-btn class is replaced by the input-group-append/prepend
      classes.
      b437808f
    • qsm-odoo's avatar
      [REF] *: BS4, review panel and well structure · 59237ea8
      qsm-odoo authored
      Panels and wells were dropped and replaced by the "Card" component.
      59237ea8
    • qsm-odoo's avatar
      [REF] *: BS4, adapt col-related classes · ed1b18f1
      qsm-odoo authored
      col-lg-* -> col-xl-*
      col-md-* -> col-lg-*
      col-sm-* -> col-md-*
      col-xs-* -> col-*
      
      col-lg-offset-* -> offset-xl-*
      col-md-offset-* -> offset-lg-*
      col-sm-offset-* -> offset-md-*
      col-xs-offset-* -> offset-*
      
      col-lg-pull-* -> order-xl-1
      col-md-pull-* -> order-lg-1
      col-sm-pull-* -> order-md-1
      col-xs-pull-* -> order-1
      
      col-lg-push-* -> order-xl-2
      col-md-push-* -> order-lg-2
      col-sm-push-* -> order-md-2
      col-xs-push-* -> order-2
      ed1b18f1
    • qsm-odoo's avatar
      [REF] *: BS4, review breadcrumb structure · 66289d63
      qsm-odoo authored
      Now, the 'breadcrumb-item' class has to be put explicitely on
      breadcrumb items.
      66289d63
    • qsm-odoo's avatar
      [REF] *: use 'light' color and reset 'gray' palette · 318b10cc
      qsm-odoo authored
      See previous commit for more explanation.
      318b10cc
    • qsm-odoo's avatar
      [REF] *: BS4, review color system · d8c217a6
      qsm-odoo authored
      Odoo used to declare two main colors: primary and optional (which are
      purple and turquoise in enterprise). Those were respectively assigned
      to the 'primary' bootstrap variable and the 'btn-primary' bootstrap
      variable.
      
      BS4, however, does not allow to have a different primary color for
      buttons. Instead, the 'primary' color is used for all 'primary' related
      components and utility classes, same as for all other colors. So, if we
      want to keep our enterprise buttons green, our 'optional' colors had to
      become our 'primary' color. The old odoo primary is then renamed to the
      'odoo' color.
      
      The palette of grays is now larger by default and is numbered from 100 to
      900 alongside the $black and $white variables. The equivalence for older
      variables and the way we used them is:
      
      $gray-darker          ->  gray 900 (unused before)
      $gray-dark            ->  gray 900
      $gray                 ->  gray 700
      $gray-light           ->  gray 600
      $gray-lighter-darker  ->  gray 400 (the old variable was created by us)
      $gray-lighter-dark    ->  gray 300 (the old variable was created by us)
      $gray-lighter         ->  gray 200
      
      Fortunately, the 'lighter' variations we created fit well in the default
      BS4 system ! Unfortunately, our $gray-lighter which carried the same
      function as $gray-200 (see above) is very close to the new default
      $gray-100 and quite distant from the new $gray-200. This will be handled
      in the next commit.
      d8c217a6
    • qsm-odoo's avatar
      [REF] *: BS4, rename border-radius related variables · cba48da7
      qsm-odoo authored
      $border-radius-base -> $border-radius
      $border-radius-large -> $border-radius-lg
      $border-radius-small -> $border-radius-sm
      cba48da7
    • qsm-odoo's avatar
      [REF] *: BS4, review the 'nav' and 'navbar' components · 09f40036
      qsm-odoo authored
      Now the nav structure is more declarative: the 'nav-item' and 'nav-link'
      classes have to be put on related nav item and links. Also, the 'active'
      class has to be put on links instead of items.
      
      Same as for the navbar component:
      - The navbar structure was simplified and meant to be more declarative.
      - The navbar colors are also now handled by a different set of classes.
      
      The 'nav-stacked' class was removed and replaced by flex utilities.
      
      The set of classes for colors and nav styles also changed.
      09f40036
    • qsm-odoo's avatar
      [REF] *: BS4, 'img-responsive' -> 'img-fluid' · de214e37
      qsm-odoo authored
      de214e37
    • qsm-odoo's avatar
    • qsm-odoo's avatar
      [REF] *: BS4, adapt font-size and padding variables · 4ac446e3
      qsm-odoo authored
      BS variables were renamed or changed and all (most) variables now
      use 'rem' units instead of 'px' unit.
      4ac446e3
    • qsm-odoo's avatar
      [REF] *: BS4, adapt dropdowns and carets · 1c1c0897
      qsm-odoo authored
      - 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
      1c1c0897
    • qsm-odoo's avatar
      [REF] web, mail: get rid of the btn-icon class · 220e49f9
      qsm-odoo authored
      That was pretty useless, better use the btn-secondary class and add
      particular rules to `.btn.fa` if necessary.
      220e49f9
    • qsm-odoo's avatar
      [REF] *: BS4, rename btn-default to btn-secondary · c59380ba
      qsm-odoo authored
      BS4 "btn-default" class was replaced with "btn-secondary", which makes
      more sense.
      c59380ba
    • qsm-odoo's avatar
      [REF] *: BS4, remove the use of btn-sm · 81f359c8
      qsm-odoo authored
      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.
      81f359c8
    • qsm-odoo's avatar
      [REF] *: BS4, adapt display classes · 7f10b55a
      qsm-odoo authored
      The system completely changed. I also had to adapt classes to new
      screen breakpoints.
      
      hidden/hide -> d-none
      show -> d-block
      hidden-xs -> d-none d-md-(block/inline/...)
      hidden-sm -> d-md-none d-lg-(block/inline/...)
      hidden-md -> d-lg-none d-xl-(block/inline/...)
      hidden-lg -> d-xl-none
      visible-xs-* -> d-* d-md-none
      visible-sm-* -> d-none d-md-* d-lg-none
      visible-md-* -> d-none d-lg-* d-xl-none
      visible-lg-* -> d-none d-xl-*
      hidden-print -> d-print-none
      visible-print-* -> d-none d-print-*
      ...
      and all possible combination of those had to be handled too.
      7f10b55a
    • qsm-odoo's avatar
      ea7c3f4a
    • qsm-odoo's avatar
      [REF] *: BS4, adapt container variables · 193d8515
      qsm-odoo authored
      The variables are now an unique map. As the screen sizes' names changed,
      the container names changed accordingly.
      193d8515
    • qsm-odoo's avatar
      [REF] web, *: BS4, update JS media queries · f2a1ca1f
      qsm-odoo authored
      * website_quote, website_sale
      f2a1ca1f
    • qsm-odoo's avatar
      [REF] *: BS4, adapt media queries · 0ca6d397
      qsm-odoo authored
      media queries that target a specific screen size handled by bootstrap
      have now a more convenient way to be defined:
      
      ```
      @​media (min-width: $screen-sm-min) { ... }
      ->
      @​include media-breakpoint-up(sm) { ... }
      ```
      
      ```
      @​media (max-width: $screen-sm-max) { ... }
      ->
      @​include media-breakpoint-down(sm) { ... }
      ```
      
      ```
      @​media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { ... }
      ->
      @​include media-breakpoint-only(sm) { ... }
      ```
      
      ```
      @​media (min-width: $screen-sm-min) and (max-width: $screen-md-max) { ... }
      ->
      @​include media-breakpoint-between(sm, md) { ... }
      ```
      
      Also, bootstrap has changed the values for its default screen sizes:
      
      ------------------
           | BS3 | BS4 |
      ------------------
      0    | XS  | XS  | -> Portrait Mobile
      576  | /   | SM  | -> Landscape Mobile
      768  | SM  | MD  | -> Portrait Tablet
      992  | MD  | LG  | -> Landscape Tablet / Small Desktop
      1200 | LG  | XL  | -> Desktop
      ------------------
      
      While it is possible to configure BS variables to behave as BS3, we took
      the decision to keep the BS4 variables untouched. BS4 system seems
      indeed better and having the purest bootstrap possible is better for
      Odoo to be used as a framework.
      0ca6d397
    • qsm-odoo's avatar
      4a0a41d9
    • qsm-odoo's avatar
    • qsm-odoo's avatar
      [FIX] web: restore datepicker lib patches · 43d2db94
      qsm-odoo authored
      Patches were introduced by Odoo in the lib and have been removed
      while updating it to "tempus dominus". This commit restores them.
      
      See:
      - https://github.com/odoo/odoo/commit/3741603495532e218b66f3cfa0272e4536f1cf2c
      - https://github.com/odoo/odoo/commit/ab42507d460125c5ee81bb6b4b859146494339ac
      43d2db94
    • qsm-odoo's avatar
      [REF] web, *: update bootstrap-datetimepicker to tempusdominus · 6692919d
      qsm-odoo authored
      * website_form, debian
      
      Our old library for datetimepicker for bootstrap 3 is deprecated and
      an updated version is developed by the same team under the new name
      "tempusdominus", for bootstrap 4.
      
      The lib is imported by taking the *unminified build* JS and the *src*
      scss. Odoo is also bundling the lib better by putting the scss file
      in both backend and frontend assets instead of only in common (so that
      the scss is compiled differently for the frontend and the backend).
      
      Note: the lib also needed to be patched inline to solve a bug at one
      line.
      6692919d
    • qsm-odoo's avatar
      [REF] theme_bootswatch: update current themes to bootstrap v4.1.3 · 05e62cf0
      qsm-odoo authored
      Note 1: unsupported themes were already removed in a previous commit.
      Note 2: we should maybe add the new themes.
      05e62cf0
    • qsm-odoo's avatar
      2d5595fc
    • qsm-odoo's avatar
      [REF] *: get rid of vendor prefixes · 770aec39
      qsm-odoo authored
      BS4 do not provide vendor prefixes scss mixins anymore as it is meant
      to be used with the 'autoprefixer' library. As we only support the last
      version of every major browsers in Odoo, we took the decision to not
      use the library as it was also complex to integrate in Odoo. We decided
      to do the library's work by hand if it ever become necessary.
      770aec39
    • qsm-odoo's avatar
      [REF] web: add the 'popper' library · a991a579
      qsm-odoo authored
      Since bootstrap 4.0.0, the 'popper' library is a dependency.
      a991a579
    • qsm-odoo's avatar
      [IMP] base, web: update bootstrap 3.3.7 to 4.1.3 · 9d90c7ea
      qsm-odoo authored
      Simply updating the lib, the assets bundle content and the assets bundle
      compiler.
      9d90c7ea
    • Arnold Moyaux's avatar
      [FIX] stock: corssdock rules not update · 8ed8b46f
      Arnold Moyaux authored
      It happens when the route is already set on the warehouse.
      In this the system will only active the route however the rules
      inside this route still inactive.
      
      This commit set active the rules in both case when the route is created
      or set as active.
      8ed8b46f
    • Jaykishan Solanki's avatar
      [IMP] mrp: rename lalbel and hide variant columns · 10edfc75
      Jaykishan Solanki authored
      When a product variant is set on a BOM, the column 'Variant' of bom
      lines is hidden as all lines will be applied for the specific variant.
      
      If there was any variant were set in this column, they are removed as it
      doesn't mean anything because we are working to a specific one.
      
      TASK-36708
      10edfc75
    • Christophe Monniez's avatar
      [FIX] packaging: fix docker file for src tests · 4293a27b
      Christophe Monniez authored
      Since bf3193ac libsass is needed but is named libsass0 in Debian.
      With this commit, the docker source image used for tests will build again.
      Unverified
      4293a27b
  2. Jul 26, 2018
Loading