Skip to content
Snippets Groups Projects
  1. May 11, 2021
    • Jérôme Vanhaudenard's avatar
      [FIX] expression: Better Binaries logs · d54b30bb
      Jérôme Vanhaudenard authored
      
      When building a domain `(=|!=)` with
      a Binary field stored in attachment and
      the right part of the domain is not null,
      the full binary content is logged, giving
      the logs a huge size.
      
      Now, the content of the binary is cropped to
      20 chars as it is useless to log more.
      
      opw-2527629
      
      closes odoo/odoo#70640
      
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      d54b30bb
    • Victor Feyens's avatar
      [FIX] *: update documentation links · 716f36b1
      Victor Feyens authored
      
      Following the recent reorganisation of the documentation in 12.0+, the majority
      of the documents have been moved and their old links are no longer valid.
      
      Some redirection rules will soon be deployed, but those rules might be dropped in some
      years and we want the links to still work, which is why we still replace the links to the
      new ones.
      
      closes odoo/odoo#70639
      
      Related: odoo/enterprise#18259
      Signed-off-by: default avatarAntoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
      716f36b1
  2. May 07, 2021
  3. May 10, 2021
    • Goffin Simon's avatar
      [FIX] hr_expense: Wrong tax in multi companies · 91fb0209
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider two companies C1 and C2 where C1 is the parent of C2
      - Let's consider an expense product P with T1 as tax in C1 and T2 as tax in C2
      - Let's consider an expense alias A defned for C1 and C2
      - Let's consider an employee E in C2 with work email address W
      - Send from W to A an email with subject [internal reference of P] Test Expense 1000€
      
      Bug:
      
      An expense is created in C2 with T1 and T2 as supplier taxes instead of only T2
      
      Inspired from function _compute_tax_id defined in model sale.order and purchase.order
      
      opw:2507162
      
      closes odoo/odoo#70370
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      91fb0209
  4. May 09, 2021
  5. May 05, 2021
  6. May 07, 2021
  7. May 04, 2021
  8. May 02, 2021
  9. Apr 30, 2021
    • Adrien Widart's avatar
      [FIX] point_of_sale: use lot's location for SML's location source · dd62f84e
      Adrien Widart authored
      
      When selling a tracked product that comes from a specific place in the
      warehouse, the module will ignore this information and set the parent
      warehouse as source location.
      
      To reproduce the error:
      (Use demo data)
      1. In Settings, enable "Multi-Warehouses"
      2. Create a product P:
          - Product Type: Storable Product
          - Available in Pos: True
          - Tracking: By Unique Serial Number
      3. Update its quantity:
          - Location: WH/Stock/Shelf 1
          - Serial Number: USN01
          - Qty: 1
      4. Start a POS session
      5. Sell P
          - Enter the same serial number
      6. Go back to quantity update page for product P
      
      Error: The quantity for "WH/Stock/Shelf 1, USN01" is still 1, it should
      be 0. Moreover, a new line appeared: "WH/Stock, USN01, -1" which is
      incorrect. The POS module considered that the product sold came from
      WH/Stock instead of WH/Stock/Shelf 1.
      
      OPW-2473002
      
      closes odoo/odoo#69750
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      dd62f84e
  10. Apr 29, 2021
  11. Apr 23, 2021
  12. Apr 29, 2021
    • Stéphane Debauche's avatar
      [FW][IMP] website_event: avoid issue when registering as portal · 72ce1b86
      Stéphane Debauche authored
      
      A computed field on event may crash if current user is a portal user as it
      tries to access registrations to know if current user is already participating
      to the event.
      
      We also fix ACL on the registrations as most code already use it as sudo and
      do not access it directly. Only the event users or admins should access it
      directly.
      
      Task ID-2322411
      PR odoo/odoo#68699
      
      closes odoo/odoo#69939
      
      closes odoo/odoo#69965
      
      X-original-commit: odoo/odoo@f7c95d959520675fe11a345c3d9b1b85a675f9fa
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      72ce1b86
    • Stéphane Debauche's avatar
      [FW][FIX] event: keep default values when registering from frontend · 62aa4887
      Stéphane Debauche authored
      Purpose
      =======
      
      When creating an attendee from frontend some fields may be added in
      parameters, notably through inheritance (questions, ...). We want the
      defaults values to have the priority on those parameters (e.g. barcode code).
      
      Task ID-2322411
      PR odoo/odoo#68699
      
      X-Original-Commit: odoo/odoo@5391df9a81a42d2ec783e505d8e98f4c75abf13d
      62aa4887
  13. Mar 10, 2021
    • david's avatar
      [FIX] mail: tracking_value_ids field group · 8930e082
      david authored
      
      Give a coherent group as otherwise we could have access errors. Simple
      case: an Admin Rights user goes into a mail message form which is only
      available in debug mode which sets `group.no_one` into such user. This
      model is only readeable by `base.group_sytem` so an AccessError will
      raise.
      
      closes odoo/odoo#67621
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      8930e082
  14. Apr 28, 2021
    • Aaron Bohy's avatar
      [FIX] web: make test pass on chrome 90 · 5222faad
      Aaron Bohy authored
      
      The changed test uses the drag&drop helper, and an operation does
      not work as expected with the given params on chrome 90. The runbot
      currently uses chrome 80, so it is not an issue, but if your chrome
      is up-to-date, and you try to run the test suite, this test would
      fail.
      
      closes odoo/odoo#69964
      
      Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
      5222faad
  15. Apr 27, 2021
  16. Apr 25, 2021
  17. Apr 22, 2021
    • nie's avatar
      [FIX] payment_stripe_sca, *: use setup_future_usage when saving card · 5945806c
      nie authored
      *: account_payment, payment, sale
      
      Steps:
      - Install eCommerce
      - Go to Website / Configuration / eCommerce / Payment Acquirers
      - Configure Stripe:
        - Save Cards: Always
        - Payment Flow: Redirection to the acquirer website
      - Go to /shop
      - Add a product to the cart
      - Process Checkout
      - Select Stripe
      - Pay Now
      - Enter test data in Stripe Checkout form (https://stripe.com/docs/testing#cards)
      - Pay
      - Go to /shop
      - Add a product to the cart
      - Process Checkout
      - Select your saved card
      - Pay Now
      
      Bug:
      Stripe Error:
      The provided PaymentMethod was previously used with a PaymentIntent
      without Customer attachment, shared with a connected account without
      Customer attachment, or was detached from a Customer. It may not be used
      again. To use a PaymentMethod multiple times, you must attach it to a
      Customer first.
      
      Explanation:
      https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
      
      
      > Indicates that you intend to make future payments with the payment
      > method collected by this Checkout Session.
      
      According to this doc, `setup_future_usage` must be set in order to use
      the saved card afterwards.
      
      opw:2452452
      opw:2498571
      opw:2509897
      
      closes odoo/odoo#69692
      
      Signed-off-by: default avatarbackspac <backspac@users.noreply.github.com>
      5945806c
  18. Apr 16, 2021
  19. Apr 21, 2021
  20. Apr 22, 2021
    • Dharmraj Jhala's avatar
      [FIX] {test_}mail: set bounced alias in bounce autoreply · 899ae3e0
      Dharmraj Jhala authored
      
      Before this commit
      
      When someone tries to send a mail to a restricted alias (which can be
      anywhere in 'To', 'CC' or 'BCC') and if the sender is not allowed to do
      so, the mail bounces. However bounced mail shows info as if it bounced due
      to address provided in 'To', even though it is not always the case.
      
      Example you send a message to
      
        * 'To': 'valid@gmail.com' (okay)
        * 'Cc': 'myalias@odoo.com' (not allowed for you)
      
      Mail bounces because you are not allowed to send a mail to alias provided
      in 'Cc', but it shows the message that: `The following email sent to
      valid@gmail.com cannot be accepted because [...]`.
      
      After this commit
      
      Boucing alias is shown in message body. Above example becomes `The following
      email sent to myalias@odoo.com cannot be accepted [...].`
      
      Note: Because the alias can be present in `Bcc` too (which will not available
      in the message values we get in `message_route_verify` method), we simply use
      display name of the alias instead of finding mail address matching with alias
      from the message values.
      
      Task ID-2390310
      
      closes odoo/odoo#66654
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      899ae3e0
  21. Apr 21, 2021
    • Goffin Simon's avatar
      [FIX] website_sale: Display discounted price with included tax · 379f1490
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a company in $
      - Let's consider two sales taxes T1 (10% included) and T2 (0%)
      - Define a fiscal position FP that maps T1 to T2
      - Define a product P with T1, price = 11$ and available in the shop
      - Define a pricelist PL in € such as 1€ = 2$, show discount to customer and discount P with 50%
      - Define a portal user PU with FP and PL
      - Log with PU
      - Add P in the cart
      
      Bug:
      
      The unit price of P was 2,75€ instead of 2,5€ and the discounted price was 10€ instead of 5€
      
      PS: Before adding P in the cart, the correct unit price and discounted price were displayed.
      
      opw:2472528
      
      closes odoo/odoo#69502
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      379f1490
  22. Apr 20, 2021
  23. Apr 19, 2021
    • Anh Thao Pham (pta)'s avatar
      [FIX] mass_mailing: fix untranslated text on unsubscribe page · 0910f8e2
      Anh Thao Pham (pta) authored
      This is a cherry-pick of commit: https://github.com/odoo/odoo/commit/72a5e2b273e5faeccf49c0ef3fbb9f470e1a1c71
      
      
      
      - Install Website and Email Marketing
      - Go to Settings
      - Click on "Manage Languages" and activate French
      - Click on "Activate and Translate" and check the websites to translate
      - Go to Preferences and set user language to "French"
      - Go to Website > Configuration > Settings and make sure that French is in the languages list
        and that it is default
      - Go to Email Marketing
      - Create a new mailing
      - Make sure that current user is in the Recipients list
      - Send the mailing (it will be scheduled)
      - In debug mode, go to Settings > Technical > Scheduled actions to run the action manually
      - Check the received mail and click on the "unsubscribe" link
      On the unsubscribe page there is text that is not translated.
      
      Some of the translations on this page is done in JS.
      But the translations are not available at that moment.
      
      The translations have to be loaded manually before letting the JS doing its work.
      
      opw-2501708
      
      closes odoo/odoo#69457
      
      Signed-off-by: default avatarAnh Thao PHAM <kitan191@users.noreply.github.com>
      0910f8e2
    • Jason Van Malder's avatar
      [FIX] mail: handle server error in the front-end part · 612e660b
      Jason Van Malder authored
      
      Issue
      
          - Install Time Off
          - Marc Demo > Create leave request
          - Admin > Validate the leave request
          - Marc Demo > Add an attachment
      
          Nothing happens
      
      Cause
      
          There is a access right issue that is not handled in the
          JS.
      
      Solution
      
          Handle it by doing a do_warn.
      
      OPW-2171791
      
      12.0 backport of #43464
      
      note: backport for 12.0
      
      opw-2500564
      
      closes odoo/odoo#69463
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      612e660b
  24. Apr 18, 2021
  25. Apr 15, 2021
    • Nicolas Lempereur's avatar
      [FIX] web: chrome 89 event delegation · 35f39cf0
      Nicolas Lempereur authored
      In windows chrome 89 (seemed ok at version 89.0.4389.90 (13 march 2021)
      and broken at version 89.0.4389.114 (29 march 2021)), clicking on a
      select option doesn't trigger jQuery events if they are delegated.
      
      For example this happen when selecting a field for custom group or
      custom filter in the search view and when selecting a field the dropdown
      closes.
      
      This happens because:
      
      - chrome now sends MouseEvent.button[^1] with value -1 instead of
        previousvalue of 0.
      
      - jquery in odoo 12 and under is version 1.11.1 and only executes the
        delegated event if the button value is 0
      
      Reproduction case of the issue [^2]: clicking to choose an option only
      logs "non-delegated click".
      
      So for version 12.0 and only 12.0, this commit is cherry-picking
      jquery's commit that is fixing the issue:
      
      https://github.com/jquery/jquery/commit/c82a6685bb9
      
      [^1]: https://developer.mozilla.org/docs/Web/API/MouseEvent/button
      [^2]: http://jsfiddle.net/cox4gzae
      
      
      
      opw-2497859
      opw-2499415
      opw-2499305
      opw-2466991
      opw-2506676
      
      fixes #66848
      
      closes odoo/odoo#69274
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      35f39cf0
  26. Apr 14, 2021
  27. Apr 12, 2021
  28. Apr 13, 2021
Loading