Skip to content
Snippets Groups Projects
  1. Oct 18, 2021
  2. Oct 17, 2021
  3. Oct 15, 2021
    • Pierre Masereel's avatar
      [FIX] point_of_sale: use correct rate date in test · 83873965
      Pierre Masereel authored
      Since changes made in currency rate default value made in this PR
      https://github.com/odoo/odoo/pull/76513
      
       the date is stored based on user
      timezone, and so doesn't work if the test runs around midnight with the
      belgian timezone on the servers.
      
      closes odoo/odoo#78452
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      83873965
    • Thibault Libioulle's avatar
      [FIX] sale_timesheet: fix multiple issues in project profitability · ba234ff5
      Thibault Libioulle authored
      
      This commit fixes issues with downpayment and credit notes in project
      profitability report.
      
      Steps to reproduce opw-2596224:
      - Go to sale
      - Make a RFQ for a service product with service_policy set at
      delivered_timesheet (Timesheets on tasks), set quantity as 10
      - Confirm order and create two invoices for 15%, confirm the two
      invoices
      - Create a credit note for one of the invoice and confirm it
      - Go back to the Sale Order and click on Project Overview
      => Inconsistencies (Downpayment reported twice)
      - Add an expense
      => Inconsistencies in expense amount untaxed invoiced
      
      This issue is fixed by :
      - Excluding downpayments which are linked to a reversed invoice line
      - Use expense amount to invoice and expense amount invoiced separetely
      in the project overview.
      - Do not report not invoiced SOLs in the expense amount invoiced.
      - Exclude negative amounts in analytic account which are linked to
      credit notes.
      
      opw-2596224
      
      closes odoo/odoo#78310
      
      Signed-off-by: default avatarLTU-Odoo <IT-Ideas@users.noreply.github.com>
      ba234ff5
    • Florian Damhaut's avatar
      [FIX] stock: Product Search in stock picking · d0090ee0
      Florian Damhaut authored
      
      This commit makes the picking search by product more consistent with
      the general product search as the following case could happen:
      
        - Have a product with two variants;
        - Each variant has the following internal reference:
          - Variant 1: 'SoMething'
          - Variant 2: 'SomethingElse'
        - Create two pickings, each one containing one of the variant;
        - Then filter pickings by product and the result will vary:
          - Searching for 'SoMething' -> Found one picking
          - Searching for 'Something' -> Found two pickings
      
      The expected behavior is to find the two pickings in both cases.
      
      opw-2646214
      
      closes odoo/odoo#78085
      
      Signed-off-by: default avatarSteve Van Essche <svs-odoo@users.noreply.github.com>
      d0090ee0
    • Guillaume (guva)'s avatar
      [FIX] mrp: Delivered quantity with kit · 4289d173
      Guillaume (guva) authored
      
      Steps to reproduce:
      
      - Set the Decimal Accuracy at 5 digits for Product UoM
      - Create a product X
      - Create a kit BOM for X with a component Y, and qty 0.08600
      - Create a Sale Order for 10 product X, confirm and deliver all
      
      Issue
      
      - On the SO, quantity delevered is 9.00000 instead of 10.00000, same
        issue occur with the same flow with a Purchase Order.
      
      Cause
      
      As the quantity per kit was rounded when calling _compute_qty,
      the calcul of quantity ratio was not well computed.
      
      Solution
      
      Avoid rounding the quantity per kit, as the quantity ratio is rounded
      a few steps after.
      
      opw-2590126
      
      closes odoo/odoo#78400
      
      Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
      4289d173
  4. Oct 14, 2021
  5. Oct 13, 2021
  6. Oct 12, 2021
    • Raphael Collet's avatar
      [FIX] core: one2many linking non-existing lines · d3484cd5
      Raphael Collet authored
      
      The processing of the LINK command in a one2many should fail when the
      line being linked does not exist.  However, there is one case where it
      should not fail: when that line existed and was linked before applying
      the commands.  That use-case may seem strange, but it actually exists:
      deleting a line in a sales order automatically deletes the corresponding
      reward lines.
      
      closes odoo/odoo#78014
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      d3484cd5
    • Xavier Morel's avatar
      [FIX] auth_signup: bulk signup_url generation · 4d9b23f6
      Xavier Morel authored
      
      When calling `_get_signup_url_for_action` on more than one partner,
      because the `url` input parameter was re-used for the actual signup
      URL before assigning to the partners map (in
      559bdc97), from the second iteration
      onwards the signup URL will almost certainly get misgenerated to
      redirect to the previous signup URL (accumulating).
      
      As `signup_url` is not normally accessed in bulk this should not
      usually be an issue.
      
      Reported by Andreas Brückl
      
      closes odoo/odoo#78196
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      4d9b23f6
  7. Oct 11, 2021
    • Raf Geens's avatar
      [FIX] point_of_sale: Wait for cancellation to finish before starting a · 3df563d0
      Raf Geens authored
      new transaction
      
      Previously, when cancelling an Ingenico transaction, the cancellation
      was considered done from the POS' point of view even though it hadn't
      actually finished on the terminal yet. Starting a new transaction from
      the POS meant it would fail and the POS and terminal's states would get
      out of sync.
      
      In an enterprise PR for the pos_iot module, a fix was made so the
      cancellation request is only considered done when the terminal has
      confirmed that.
      
      In the case of pressing cancel on a payment line, this means that the
      button will block and remain in a loading state with a spinner until
      the operation finishes. After this the user can press the retry button
      the payment line.
      
      There are two other workflows where waiting for the cancel operation to
      finish wasn't done until now, and that's what this PR is for.
      
      The first is when a transaction was requested and the
      back button was pressed in the UI. This cancels the active transactions.
      If you wait a while after pressing the back button, the UI will be
      notified when the cancellation finishes, and the payment line's state
      will be updated in the local db, even if it's not visible on screen.
      When you go back to the payment screen, you'll be able to retry the
      transaction again. However, if after pressing the back button you
      immediately go back to the payment screen, you'll see the spinner of the
      wait for the cancellation, but it would never update. That's because
      while the local db gets updated when the cancellation finishes, the
      payment screen lines didn't get refreshed. Hence a call was added to
      `stop_electronic_payment` that re-renders the payment lines (if we are
      present on the payment screen) once the cancellation finishes. In this
      way, the payment state in the UI will correctly update.
      
      The second case is when a transaction is requested and the user deletes
      the payment line. This used to happen immediately without waiting for
      anything. This PR changes that so the line goes to the `waitingCancel`
      state instead, and will only be deleted once the operation finishes. If
      there's nothing to be cancelled, the line will get deleted immediately
      like before.
      
      opw-2525010
      
      closes odoo/odoo#77585
      
      Related: odoo/enterprise#21342
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      3df563d0
    • Younn Olivier's avatar
      [FIX] website: correctly display overlay on a new slide · 5d10eec0
      Younn Olivier authored
      
      Before this commit, selecting elements on a newly added slide of the
      carousel was not displaying the editor overlay.
      It was due to the fact that adding a new slide to the carousel was done
      making a deep clone of the slide, and therefore of its editor.
      Now, the slide is cloned without its editor.
      
      task-2657532
      
      closes odoo/odoo#77335
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      5d10eec0
    • prro-odoo's avatar
      [FIX] website_slides: build a correct form in Courses · f783e238
      prro-odoo authored
      
      How to reproduce the problem:
      - Install the website_slides modules
      - Go to the website -> Courses -> choose a course -> Add Content (Webpage)
      - In the new Webpage -> Edit -> Drag and drop a Form Builder -> Save
      The form is unusable: you can't write in the form's fields.
      
      Cause of the problem : usefull attributes and values of the form were
      removed due to the sanitizing of the HTML component.
      
      Solution : the HTML components in slide are not sanitized anymore,
      in order to keep valuable information for building forms.
      
      opw-2588089
      
      closes odoo/odoo#77128
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      f783e238
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: unposted move not proposed for reconciliation · 96fc1bf3
      Andrea Grazioso (agr-odoo) authored
      
      1. Have Bank journal with 'Post At' is set to 'Bank Reconciliation'
      2. Create and validate a bill with reference and register a payment.
      3. For said payment create a bank statement line.
      4. Be sure to have other posted account.move.line's with a similar
      reference so they could be considered for this payment (if that's not
      the case reconcile will work but only because it will fall back to
      checking any move lines for the partner with matching amount regardless
      of the reference).
      5. Try to reconcile.
      
      The proper move line of the payment will not be selected. This occure
      because it's not correctly detected the communication flag of the draft
      move, thus not giving the correct priority.
      
      opw-2657393
      
      closes odoo/odoo#78090
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      96fc1bf3
  8. Oct 10, 2021
  9. Oct 08, 2021
  10. Oct 05, 2021
    • Swapnesh Shah's avatar
      [FIX] account: disable group create from AML Kanban · 9d72e8cf
      Swapnesh Shah authored
      
      This commit removes `Add a column` from Grouped
      Kanban view of Journal Items.
      
      Creating new Records from `Add a column` should not be supported
      from Journal Items and also it is not working for Journal/Account
      as required fields are not set. (and also gives Traceback)
      
      closes odoo/odoo#77219
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      9d72e8cf
    • ijas ahammed's avatar
      [FIX] website_crm_partner_assign: hide activity types of other models · eda10ddc
      ijas ahammed authored
      
      Right now when editing the opportunity, all the activity types are listed in
      the drop-down, even those which are specific to other models.
      
      After this commit  while editing the opportunity, we now display
      only activity types which are either specific for 'crm.lead', or those
      which are not linked with any models (common for all).
      
      TaskId-2443894
      
      closes odoo/odoo#76567
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      eda10ddc
    • Loan (lse)'s avatar
      [FIX] Commit transient model vacuuming directly · 1d7589af
      Loan (lse) authored
      
      Before this commit:
      If the "Base: Auto-vacuum internal data" is archived since a long time, auto-vacuuming models may timeout. As the commit was previously done at the end of the cron, the process wouldn't have been applied. As a consequence the Scheduled action will timeout every time
      
      After this commit:
      The commit is done right after each model vacuuming
      
      OPW-2638706
      
      closes odoo/odoo#77832
      
      X-original-commit: 1c9e998b
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      1d7589af
    • Romain Derie's avatar
      [FIX] website_sale_stock: use correct qty to show warning/error · 7823155d
      Romain Derie authored
      
      Without this commit, if you had:
      - 3 Qty for product P in WH1
      - 10 Qty for product P in WH2
      - no warehouse set on website
      - set show stock and prevent sales if not enough stock enabled
      
      And then:
      - Add 3 P in your cart
      - In cart, add more P, it would let you do it, while it shouldn't
      
      You would then be stuck on payment step as it would tell you only 3 are
      available.
      
      This commit improves 6b05fb2b by ensuring the warehouse_id used is the
      correct one (the one that will be used on the SO (required field)).
      That commit was fixing a case that was not supposed to happen[1], it is that
      case that should have been fixed (which is fixed by previous commit of this PR)
      
      [1]: it would fix the 'issue' when you add a product which has no stock
           available for the warehouse that will be used when creating the SO, by
           letting you through the warning, but you would then be stuck on the
           payment step as the qty check would be correctly done.
           The fix should have been to display the correct qty and prevent the add to
           cart in that case.
      
      closes odoo/odoo#77308
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      Co-authored-by: default avatarRomain Derie <rde@odoo.com>
      Co-authored-by: default avatarAdrien Widart <awt@odoo.com>
      7823155d
    • Romain Derie's avatar
      [FIX] website_sale_stock: always select a warehouse · e1fb4f69
      Romain Derie authored
      
      In multi-warehouses, the available quantities shown on product page is not the
      same one used to compute the max quantity that can be bought in the checkout.
      
      Indeed, a sale order has a required `warehouse_id` field, and the quantity that
      can be bought is computed based on that warehouse.
      But if the website has no warehouse set to it (in settings), the shown quantity
      on product page will be computed based on all available warehouses.
      
      It will then show an error on payment step, if the user has selected more
      quantities than there is available on the warehouse used for his order.
      
      Considering the structure of `sale.order`, displaying the quantities in
      several warehouses does not make sense.
      
      To reproduce the issue:
      1. In Settings:
          - Enable 'Multi-Warehouses'
          - Make sure the option Website > Inventory > Warehouse in undefined
      2. Create a second warehouse WH02
      3. Update the quantity of "Storage Box":
          - 18 in first WH (should already be present)
          - 12 in WH02
      4. Edit "Storage Box":
          - eCommerce > Availability: "Show inventory on website and prevent
      sales if not enough stock"
      5. On the eShop, go on "Storage Box"
          - Note that there are 30 units available
      6. Add 22 "Storage Box" to the cart
      7. Process checkout
      
      Error: When trying to pay, a Server Error is raised: "We are not able to
      redirect you to the payment form. You ask for 22.0 products but only
      18.0 is available." This is confusing since the available quantity on
      the product page is 30
      
      opw-2630804
      
      Part-of: odoo/odoo#77308
      Co-authored-by: default avatarAdrien Widart <awt@odoo.com>
      Co-authored-by: default avatarRomain Derie <rde@odoo.com>
      e1fb4f69
    • Daniel Blanco's avatar
      [I18N] l10n_cl: relax the condition for registering entries in purchase... · c1e7b1ad
      Daniel Blanco authored
      [I18N] l10n_cl: relax the condition for registering entries in purchase journal, in order to allow to record expenses without warnings.
      
      closes odoo/odoo#77651
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      c1e7b1ad
    • Xavier Morel's avatar
      [FIX] web: more reliably avoid downloads on new file · b9ae627e
      Xavier Morel authored
      
      51955505 mitigated an issue of being
      able to try and download files which don't exist yet, make the fix
      more reliable by clearing out the field completely and hiding the
      content if the (readonly) field has no value *or the record is not
      saved yet*.
      
      Also clean up the code:
      
      * an old-style forward port created a duplicate fixprovement
        (a8d01cbf) which seems less correct
        as it applies conditionally
      * and the code is branchier than necessary, we can make it simpler by
        judiciously leveraging jquery's API
      
      closes odoo/odoo#77746
      
      X-original-commit: 05db9be15d75dc0794095aad75c80d0c2e540808
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      b9ae627e
  11. Oct 04, 2021
Loading