Skip to content
Snippets Groups Projects
  1. Oct 22, 2021
    • Nathan Marotte (nama)'s avatar
      [FIX] sale_mrp : wrong delivered quantities on kit return · e90452bf
      Nathan Marotte (nama) authored
      
      Issue: When returning a product sold that is only made of kits and
      validating the return, the delivered quantities of the sales order was
      set back to the full amount delivered
      
      Steps to reproduce :
        1) Install MRP and Sales
        2) Create a BoM Kit for a new product [Nested Kit] that has one or
          more consumable or storable product as component
        3) Create a BoM Kit for a new product [Main Kit] that has
          [Nested Kit] as component
        4) Create a SO for [Main Kit], confirm, validate delivery
        5) Check SO, 1 product is delivered (correct)
        6) Go back to the Delivery, create a return for the delivery
          (don't validate)
        7) Check SO, 0 product is delivered (correct)
        8) Now validate the return for the delivery
        -> Check SO, 1 product is delivered (bug)
      
      Why is that a bug:
       Since the Main Kit was returned, the delivered should be 0 and not
       the full amount initially delivered. It was set back to 1 because we
       didn't look at the type of picking, when computing the quantity
       delivered, the fall back considered that if all the moves were done,
       everything was delivered, but it is the opposite when returning
      
      opw-2542337
      
      closes odoo/odoo#75256
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      e90452bf
    • thcl-odoo's avatar
      [FIX] pos_restaurant: Order button should go green after unskip orderline · 8159e5ac
      thcl-odoo authored
      
      Expected behavior : The order button should go green and active when you 'unskipped' an orderline
      
      Current behavior : The order button doesn't go green and can't be clicked when an orderline is 'unskipped'
      
      Steps to reproduce the error :
      First of all, you need to setup a PoS Restaurant with these options :
      ~ Bar/Restaurant
      ~ Enable `Table Management`
      ~ Enable and setup `Order Printer` with IP Address and choose Categories to be printed on.
      
      1. Open a restaurant session
      2. Pick a table
      3. Select a product and put it on hold
      4. Select the **same** product and order it
      5. 'Unskipped' the product from step 3
      
      Order button should be green and active but is unactive so the order can't be sent
      
      Previously, the condition was only based on the product_id so error occurs when multiline of the same product are handled
      
      opw-2557518
      
      closes odoo/odoo#78608
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      8159e5ac
    • Paolo (pgi)'s avatar
      [FIX] sale_quotation_builder: quotation_description sanitize_attributes=False · ee90f6bc
      Paolo (pgi) authored
      quotation_description on the sale order is copied from the
      product template, where it already is sanitize_attributes=False,
      and it has to stay like that because otherwise widgets like
      "tab" or "accordion" cannot be rendered correctly.
      
      This is also linked to a bug in the ORM where the _related_attrs
      weren't copied correctly.
      
      Related ORM PR: https://github.com/odoo/odoo/pull/78687
      Ticket link: https://www.odoo.com/web#id=2487749&model=project.task
      
      
      
      opw-2487749
      
      closes odoo/odoo#78723
      
      Signed-off-by: default avatarPaolo Gatti <lordkrandel@users.noreply.github.com>
      ee90f6bc
    • Mohammed Shekha's avatar
      [FIX] web: support readonly attribute on toggle_button widget · b153ded9
      Mohammed Shekha authored
      
      before this commit: applying readonly attribute on toggle_button doesn't work,
      toggle_button still clickable and value is still changed even though widget is
      readonly, there is no effect of readonly attribute on toggle_button widget.
      
      after this commit: if toggle_button widget has readonly attribute then it will
      not be clickable, button of toggle_button will be disabled so that user can
      easily understand that element is not clickable.
      
      task-2339995
      
      closes odoo/odoo#76426
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      b153ded9
  2. Oct 21, 2021
    • anhe-odoo's avatar
      [FIX] hr_holidays: responsible cant see leave request · 1cf0bfc2
      anhe-odoo authored
      
      Expected behaviour
      
      A time-off responsible should be able to see the leave-request to validate, even if he is only reponsible and not leave-manager, at least as long as the leave validation is set on 'both' or 'time-off responsible'
      
      Observed behaviour
      
      If the leave validation is set on 'both' (and not on 'time-off responsible' only), the time-off responsible cannot see these leave request in the "To Approve" view, and only the leave-manager can see them.
      
      Problem Root Cause
      
      The issue is coming from a wrong domain definition (cf commit diff).
      
      opw-2595054
      
      closes odoo/odoo#78633
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      1cf0bfc2
  3. Oct 20, 2021
    • Jerome (jev)'s avatar
      [FIX] point_of_sale: Show warning when pricelist company missmatches · 6099c366
      Jerome (jev) authored
      
      This commit ensure the pricelists are properly configured before launching a pos session.
      
      Steps to reproduce:
      - Have a V13 with point_of_sale
      - Have minimum 2 companies A & B
      - Select both companies in the company selector
      - Go to Settings / General Settings
        - Point of Sale
          - Check Pricelists
      - Go to Point of Sale
        - Open a pos.config PC
          - Set a Pricelist PL as Default Pricelist
      - Go to Point of Sale / Products / Pricelists
        - Open PL
          - Set a company (must be different than PC)
      - Go to Point of Sale
        - Click "New session" on PC
      --> Traceback
      
      In V13, the traceback shows as "Traceback not available"
      As from V14, the traceback is shown properly
      
      A variant would be to start the session before changing
      the pricelist company then click on "Resume" on PC
      
      closes odoo/odoo#78713
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      6099c366
    • Nasreddin Boulif (bon)'s avatar
      [FIX] website_sale: Display pricelist price if no price_unit · b0b8f5f5
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install website_sale module
        - Enable discount and advanced pricelist in settings
        - Create product with sale price 0$ and set a website in
          eCommerce + publish the product
        - Create pricelist PPP with Discount Policy as
          "Show public price & discount to the customer" and selectable in the website
        - Go to the product and set an extra price of 10$ for the new pricelist
        - Go to the product in the eshop and select the pricelist PPP
        - Add the product to the shop cart
      
      Issue:
      
        The price displayed is 0$ instead of 10$.
      
      Cause:
      
        Since price_unit equal 0$, not possible to calculate the discount and
        therefore using the 0$ value.
      
      Solution:
      
        Use price of pricelist in case 'discount_policy' is 'without_discount'
        and price_unit equal 0$.
      
      opw-2652192
      
      closes odoo/odoo#78570
      
      Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
      b0b8f5f5
    • Adrien Widart's avatar
      [FIX] website_sale: compute price with discounts and pricelists · 8d6a2ca0
      Adrien Widart authored
      
      When combining two pricelists, the unit price might be incorrect
      
      To reproduce the error:
      1. In Settings, enable:
          - Pricelists (Advanced)
          - Discounts
      2. Create a product P:
          - Sales Price: $100
          - Available on website
      3. Edit the Public Pricelist:
          - Add a price rule:
              - Apply On product P
              - Min. Quantity: SuperProduct
              - Compute Price: Percentage
              - Percentage Price: 63%
          - Discount Policy: Included in the price
      4. Create a second pricelist:
          - Add a price rule:
              - Apply on product P
              - Compute Price: Formula
              - Based on: Other Pricelist
              - Other Pricelist: Public Pricelist
              - Price Discount: 25%
          - E-commerce Promotional Code: PROMO
          - Discount Policy: Show public price & discount
      5. On the website, add P to the cart
      6. Edit the cart:
          - P's quantity: 500
          - Apply PROMO code
      
      Error: The new price is $75 instead of $27.75
      
      `_website_product_id_change` already returns the correct price value, so
      the latter shouldn't be computed again (moreover,
      `_fix_tax_included_price_company` should use the price with the pricelists
      applied instead of the default product price)
      
      OPW-2605804
      
      closes odoo/odoo#75371
      
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      Part-of: odoo/odoo#78570
      8d6a2ca0
  4. Oct 19, 2021
  5. Oct 18, 2021
  6. Oct 17, 2021
  7. 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
  8. Oct 14, 2021
  9. Oct 13, 2021
  10. 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
  11. 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
  12. Oct 10, 2021
  13. Oct 08, 2021
Loading