Skip to content
Snippets Groups Projects
  1. Oct 15, 2019
    • David Beguin's avatar
      [REF] website_slides : refactor share_modal to use same template(s) in all case · bb358113
      David Beguin authored
      This commit prepares the next one. It creates generic main and sub templates
      for slide share modal.
      
      In order to be usable for all cases, header and body sub template have been added.
      Also and in the same purpose, as the website url can be another url
      than the record to share (or if the record doesn't have website_url), this website_url
      can be specified separately from the record. Otherwise, the standard behaviour is to
      use the record.website_url.
      
      Task ID: 1950396
      PR #31776
      bb358113
  2. Oct 21, 2019
  3. Oct 18, 2019
  4. Oct 21, 2019
    • Odoo's Mergebot's avatar
      [IMP] web: force desktop mode on mobile · c3335a0d
      Odoo's Mergebot authored
      
      Before this commit, some views appeared broken on mobile.
      We don't consider this as a bug because Odoo is not supposed
      to be responsive in Community edition. This feature is only
      available on Enterprise.
      
      This commit aims at clarifying this situation by clearly moving
      the base requirements to support browsers' responsive to the
      Enterprise edition and stating that the Community edition only
      targets desktop.
      
      It's important to note that, for technical reasons, some
      responsive-related JS/CSS code may still be present in the
      Community codebase but they are not meant to provide any
      explicit or implicit support for responsive/mobile devices.
      
      Technically speaking, this commit removes the viewport meta tag.
      This change will then force the "desktop-like" rendering even on
      small screens for the Community edition and will keep the current
      behavior (scaling/zooming on small screens) for the Enterprise edition.
      
      By doing this we do not let the users think that something is broken
      and must be fixed.
      
      So,
      in Community edition, desktop is always displayed;
      In Enterprise edition, Responsive Web Design is available.
      
      We also had to adapt a test to be able to apply XPath adding
      viewport meta tag in enterprise.
      
      Task ID: 2090202
      
      closes odoo/odoo#38768
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      c3335a0d
  5. Oct 18, 2019
    • Thibault Delavallée's avatar
      [IMP] test_mail: add performance test for composer creation and send_mail · 0d2f0468
      Thibault Delavallée authored
      
      Currently there are some high-level tests that trigger composer creation,
      call or send_mail action. However it is always a good idea to have some
      performance tests only for some parts of mail application.
      
      In this commit we also fix some naming and remove unnecessary variables
      as a side dish.
      
      closes odoo/odoo#38475
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      0d2f0468
    • Thibault Delavallée's avatar
      [IMP] mail, portal: use formataddr to format email · 2535a521
      Thibault Delavallée authored
      Somehow followup of dbb6cfdb . Purpose is
      to use formataddr from tools instead of manually handcrafting the full
      email address format. Indeed the tools one correctly encapsulates and
      format name and email.
      
      Task ID 2068986
      2535a521
    • Thibault Delavallée's avatar
      [FIX][IMP] mail: update all notification status before sending bus notifications · 20c49e80
      Thibault Delavallée authored
      Otherwise status of notifications is not correctly updated when sending them
      on the bus.
      
      Task ID 2068986
      20c49e80
    • qsm-odoo's avatar
      [FIX] website_mail_channel: adapt snippet option to new UI · aee7283d
      qsm-odoo authored
      
      closes odoo/odoo#39062
      
      X-original-commit: f097f07f
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      aee7283d
    • Pierre Rousseau's avatar
      [FIX] partner_autocomplete: do not crash on empty logo · 47f64af9
      Pierre Rousseau authored
      
      Before this commit, if the user clicked on a company which have no company logo, the system did not let him create a contact.
      
      opw-2086824
      
      closes odoo/odoo#39054
      
      X-original-commit: e3fe7a9af00b7afa5b03d5dcaac1d8f135cb1ea5
      Signed-off-by: default avatarPierre Rousseau (pro) <pro@odoo.com>
      47f64af9
    • Romeo Fragomeli's avatar
      [FIX] web: virtual keyboard is always showing during navigation · 56b91ccd
      Romeo Fragomeli authored
      Before this commit, the search bar auto focus was already disable
      on mobile based on media queries.
      But "isMobile" equals false since we force the desktop mode.
      
      To fix this, we use isMobileDevice which doesn't depend on the
      resolution.
      
      Task ID: 2090202
      56b91ccd
    • Romeo Fragomeli's avatar
      [REF] web,barcodes: simplify mobile device detection · 78b9dad5
      Romeo Fragomeli authored
      In this commit, we introduce "isMobileDevice".
      Do not confuse with isMobile.
      
      isMobile:
      A frequent use case is to have a different render in 'mobile' mode,
      meaning when the screen is small.  This flag (boolean) is true when
      the size is XS/VSM/SM. It is also updated dynamically.
      
      isMobileDevice:
      Mobile device detection using userAgent.
      This flag doesn't depend on the size/resolution of the screen.
      It targets mobile devices which suggests that there is a virtual keyboard.
      
      Task ID: 2090202
      78b9dad5
    • Romeo Fragomeli's avatar
      [IMP] web: force desktop mode on mobile · 9831ed08
      Romeo Fragomeli authored
      Before this commit, some views appeared broken on mobile.
      We don't consider this as a bug because Odoo is not supposed
      to be responsive in Community edition. This feature is only
      available on Enterprise.
      
      This commit aims at clarifying this situation by clearly moving
      the base requirements to support browsers' responsive to the
      Enterprise edition and stating that the Community edition only
      targets desktop.
      
      It's important to note that, for technical reasons, some
      responsive-related JS/CSS code may still be present in the
      Community codebase but they are not meant to provide any
      explicit or implicit support for responsive/mobile devices.
      
      Technically speaking, this commit removes the viewport meta tag.
      This change will then force the "desktop-like" rendering even on
      small screens for the Community edition and will keep the current
      behavior (scaling/zooming on small screens) for the Enterprise edition.
      
      By doing this we do not let the users think that something is broken
      and must be fixed.
      
      So,
      in Community edition, desktop is always displayed;
      In Enterprise edition, Responsive Web Design is available.
      
      We also had to adapt a test to be able to apply XPath adding
      viewport meta tag in enterprise.
      
      Task ID: 2090202
      9831ed08
  6. Oct 17, 2019
  7. Oct 15, 2019
  8. Oct 18, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] event, website_event: timezone timestamp to compute one day · bdc8e948
      Lucas Perais (lpe) authored
      
      Have an event in Mexico timezone
      As a begin date, choose something in the morning
      As a end date, choose 18:00 in that timezone (or later)
      in the same day
      The end date will be written as the day after at 00:00 in UTC
      
      Before this commit, the event was considered taking more than one day
      Also, the rendering on the website took the wrong widget, and did not
      transform the UTC dates into their TZ value
      
      After this commit, the event is considered taking place in the same day
      The rendering on the website is correct
      
      OPW 2087828
      
      closes odoo/odoo#39060
      
      X-original-commit: 4514ff30
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      bdc8e948
  9. Oct 20, 2019
  10. Oct 15, 2019
  11. Oct 19, 2019
  12. Oct 18, 2019
  13. Oct 17, 2019
    • Xavier-Do's avatar
      [IMP] base: avoid invalidate cache on first assets · fbfae7ef
      Xavier-Do authored
      
      Assets bundle creation will try to find previous version of assets and unlink them.
      This needs to invalidate ormcache to notify other workers.
      
      Since assets are never commited during test, assets will be generate at each request if request is
      not commited (cursor closed) whtch is the case with 404.
      
      Invalidating the orm cache only when a previous attachement was existing will help to
      mitigate the problem, and slightly improve HTTPCases test speed.
      
      closes odoo/odoo#38979
      
      X-original-commit: d4d63549
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      fbfae7ef
    • Xavier-Do's avatar
      [FIX] web: avoid expensive 404 during js tests · d65fcfec
      Xavier-Do authored
      A 404 will take 3 to 5 seconds to be resolved and execute +- 1900 query, to return
      a rendered page which is quite expensive, especially when multiple missing images
      are rendered in a view.
      
      Catching static route and marking them as not frontend will help to avoid to handle miss
      on static resources. In this case server returns a standard 404.
      
      This commit also fix a iframe src in order to avoid a 404 on
      /web/(test )/report/html/some_report (thx to aab-odoo)
      
      X-original-commit: 818d0cb5
      d65fcfec
  14. Oct 18, 2019
  15. Oct 17, 2019
Loading