Skip to content
Snippets Groups Projects
  1. Jun 01, 2018
    • Nicolas Martinelli's avatar
      [FIX] website_sale: performance with carousel · 195c2fc0
      Nicolas Martinelli authored
      When the carousel is activated, the following will load all variant ids
      in the cache (cf. `_in_cache_without`):
      ```
      <t t-set="variant_img" t-value="any(product.mapped('product_variant_ids.image_variant'))"/>
      ```
      
      When accessing the `image` field at:
      ```
      <div t-if="variant_img" class="..." itemprop="image" t-field="product.product_variant_id.image" t-options="..."/>
      ```
      All variants in cache will have their image resized by the method
      `_compute_images` on `product.product`. In case of a product with
      hundreds of variants with images, this will take a major amount of time.
      
      If we replace by `product[:1]`, the system uses another cache, and
      doesn't fetch the image of all variants.
      
      opw-1844783
      195c2fc0
  2. May 31, 2018
    • Nicolas Martinelli's avatar
      [FIX] account: manual payment method · 074ec1ae
      Nicolas Martinelli authored
      Commit 5439e72a introduces the automatic creation of a journal
      for a payment provider. However, the journal created doesn't have a
      default payment method, to avoid showing it in the backend.
      
      In the case of the eCommerce with automatic invoice creation, this
      set-up returns a 500 error after an online payment. Solving the problem
      is not obvious for the end-user.
      
      The error comes from the fact that the 'Manual' payment method is not
      available on the journal. We can remove this check.
      
      opw-1853011
      074ec1ae
  3. May 30, 2018
  4. May 29, 2018
  5. May 28, 2018
    • Lucas Perais (lpe)'s avatar
      [FIX] web: o2m editable decorated, paged, ordered supports adds/cancel · 9654f6b8
      Lucas Perais (lpe) authored
      Have a decorated (conditional on field) editable list, with a default_order.
      Have more records than the pager allows.
      
      Add an item, and hit escape to cancel addition.
      
      Before this commit, the cancellation crashed because the first record on the other page
      was trying to evaluate the decoration for its row, which is wrong in the first place.
      This was because creating a record increases the limit of the list, to be able to see the record
      being created.
      At cancellation though, that limit was never decreased.
      
      After this commit, the whole flow happens without problem.
      
      OPW 1844495
      closes #24682
      9654f6b8
    • qsm-odoo's avatar
      [FIX] web_editor: properly save a t-field in a t-ignore environment · ea0fcd52
      qsm-odoo authored
      When a t-field element was in an editable t-ignore environement,
      modifying it was leaving the edit mode style attached to it. This
      was because of:
      1) When the t-field element was changed, it was marked dirty but
         also its parent editable container. Fixing this, only solves
         the case where only the t-field (and not one of its neighbors)
         is changed but it was worth fixing anyway.
      2) Before saving an element, the potential 'o_editable' and
         summernote classes were not removed of its descendant and were
         thus saved.
      
      Bug found with task-38069, merged in stable as it might occur there
      too.
      ea0fcd52
  6. May 27, 2018
  7. May 25, 2018
    • Fabien Meghazi's avatar
      [ADD] http: addons preload opt-out for socket activation · 32c5392f
      Fabien Meghazi authored
      Before this patch, early connections made to a 11.0 Odoo server running
      on Python 3 and deployed in threaded mode with socket activation would
      generate invalid registries.
      With this patch it is now possible, when this deployment mode is used,
      to opt-out addons preload by setting the following environment variable:
      
          ODOO_PRELOAD_ADDONS=no
      
      Note: this environment variable is only available for v11.0 as later
      versions does not preload anymore (cf: 1a39c9b)
      32c5392f
    • Nicolas Lempereur's avatar
      [FIX] mass_mailing: have unsubscribe in multi lang · 7703f1fb
      Nicolas Lempereur authored
      
      Since 953a693d link not corresponding to a route are tought multilang
      by default.
      
      Thus in the mass mailing, if the user had not the default language on
      the website he would have eg. a /fr_FR/unsubscribe_from_list placeholder
      in the mail.
      
      The placeholder is replaced by a real link pinpointing to the items the
      given person would unsubscribe to, but having /fr_FR/ part prevented
      that.
      
      With this PR, there is a dummy route so /unsubscribe_from_list is
      explicitely known as not multilang.
      
      opw-1850696
      closes #24912
      
      Co-authored-by: default avatarGoffin Simon <sig@odoo.com>
      7703f1fb
    • Christophe Simonis's avatar
    • Aaron Bohy's avatar
      [FIX] web: AbstractController: handle concurrent reloads · 04ba755f
      Aaron Bohy authored
      Let's assume the following scenario in a Kanban view with a default
      filter. The user removes the filter, and quickly adds a new one.
      On a slow network, it may happen that the second reload request
      returns before the first one. On odoo.com, this is easy to
      reproduce on the tasks Kanban view.
      
      Before this rev., when this occured, the result of the first
      request was displayed, whereas it should have been ignored as
      another request was done later on.
      04ba755f
  8. May 24, 2018
Loading