Skip to content
Snippets Groups Projects
  1. Nov 02, 2021
  2. Oct 31, 2021
  3. Oct 26, 2021
  4. Oct 24, 2021
  5. Oct 17, 2021
  6. Oct 12, 2021
  7. Oct 10, 2021
  8. Oct 06, 2021
  9. Oct 04, 2021
  10. Oct 03, 2021
  11. Sep 30, 2021
    • Goffin Simon's avatar
      [FIX] mrp: Wrong production location in multi company · efcb7f49
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider two companies C1 and C2
      - Let's consider two production locations L1 in C1 and L2 in C2
      - Let's consider that the company of SUPERUSER is C1
      - Add the field Production location in the form view of mrp.production
      - Log in C2
      - Create a product P with a BOM in C2 with L2 as production location
      - Create a MO for P
      
      Bug:
      
      The production location of P was L1 instead L2
      
      PS: related_sudo is set to True by default.
      
      opw:2196707
      
      closes odoo/odoo#45307
      
      closes odoo/odoo#77334
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      efcb7f49
    • Touati Djamel (otd)'s avatar
      [FIX] purchase_stock, purchase_mrp: adjust the qty of purchased kit correctly · 08f7420c
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a BOM kit for “product K”  with:
          - 2 * “product A”
          - 1 * “product B”
      - Create a PO for 1 unit of “product K” > confirm
      - A receipt delivery with 2 units of “product A” and 1 unit of B will be created
      - Modify the ordered Qty to 2 units of “Product K”
      
      Problem:
      The receipt delivery will not be updated correctly (4 units of product A and 3 of product B)
      because the `"_prepare_stock_moves"` function computed the previous quantity wrong based on the moves quantities
      since the moves are for products A and B, not product F.(do not take into account the products in kit)
      
      Solution:
      For kit products, do not calculate from the `"stock.move"`, calculate the difference between the quantity before and after the change
      
      opw-2645719
      
      closes odoo/odoo#76965
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      08f7420c
  12. Sep 29, 2021
  13. Sep 27, 2021
    • Adrien Widart's avatar
      [FIX] stock, purchase_stock: add product to PO if orderpoint · a7d3c839
      Adrien Widart authored
      
      Suppose a PO that has been generated thanks to reordering rule. When
      changing the product of a line, if the user runs the scheduler, the old
      product won't be added to the PO
      
      To reproduce the error
      1. Create a product P:
          - Product Type: Storable
          - Purchase: Add a vendor
          - Reordering rule:
              - Min = Max = 1
      2. Run the scheduler
      3. Update the generated PO:
          - Change the product of the line
      4. Run the scheduler again
      5. Open the PO
      
      Error: The PO only contains one line (the one with the other product).
      The PO should now contains a second line for P
      
      OPW-2538707
      
      closes odoo/odoo#75333
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      a7d3c839
    • Raphael Collet's avatar
      [FIX] registry: make invalidation flags thread-specific · cdbd315f
      Raphael Collet authored
      
      The registry attributes 'registry_invalidated' and 'cache_invalidated'
      are used to flag that the current request has modified the registry or
      invalidated the ormcache, respectively.  This provides a simple yet
      efficient way to signal registry changes or cache invalidations to other
      workers.
      
      However, those flags were not meant to be used with multi-threaded
      workers.  For instance, a thread may signal registry changes that are
      actually made by another thread.  It can also happen that a thread
      changes the registry, which makes another thread crash (like a thread
      modifying a dict while another one iterates over it), and the latter
      will reset the registry to its original state because it misinterprets
      the registry changes as its own changes.
      
      The situation can even get worse, making threads crash in cascade and
      eventually leaving the registry in an inconsistent state.  When this
      happens, the worker is broken and has to be manually restarted.
      
      The fix consists in making those flags thread-specific.  This does not
      prevent thread crashing because of concurrent changes, but at least it
      avoids leaving the worker in a broken state.
      
      closes odoo/odoo#77178
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      cdbd315f
  14. Sep 26, 2021
  15. Sep 24, 2021
  16. Sep 20, 2021
  17. Sep 19, 2021
  18. Sep 17, 2021
  19. Sep 15, 2021
    • Touati Djamel (otd)'s avatar
      [REV] account: fix the switch to another company · 8f643035
      Touati Djamel (otd) authored
      This reverts the following commits: https://github.com/odoo/odoo/pull/72977/commits/acdc4547fb6f6128debc3ff1f4cbf5b2f772239f
      
      
      
      The fix we initially made did not cover every possible scenario.
      
      Steps to reproduce the bug:
      - Install accounting
      - Connect as admin in a multi-company environment, e.g: “Mitchell Admin”
      - Go to the related partner form's view linked to “Mitchell Admin”
      - in the “Sales & Purchase” tab > set this partner as a vendor and select the current company in the company field
      - create a bill in accounting and choose “Mitchell Admin” as vendor > save
      - Try to switch from a company to another
      - Validation error is triggered
      
      Problem:
      When changing the current company of a user, the company of the partner linked to that user will also be changed.
      So the constraint check “_check_company_and_invoices” will be triggered
      
      OPW-2642942
      OPW-2641402
      OPW-2641399
      OPW-2639942
      OPW-2643541
      OPW-2643399
      
      closes odoo/odoo#76434
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      8f643035
  20. Sep 12, 2021
  21. Sep 10, 2021
  22. Sep 09, 2021
  23. Sep 08, 2021
  24. Sep 07, 2021
  25. Sep 06, 2021
  26. Sep 05, 2021
  27. Sep 03, 2021
  28. Sep 02, 2021
  29. Sep 01, 2021
    • Tiffany Chang (tic)'s avatar
      [FIX] stock: ensure safe UoM change for done smls · 3f4654f9
      Tiffany Chang (tic) authored
      
      We fix 2 related UoM issues:
      
      1. Fix quant inconsistency from changing the UoM of Done
         stock.move.lines
      
      Steps to reproduce:
      - Enable "Storage Locations" setting
      - Create a new "Storable Product" and create a receipt for 1 unit of it
      - Validate the 1 unit receieved
      - Open "Detailed Operations" of the move and change the stock.move.line
        UoM to dozen.
      
      Expected result: 13 on hand
      Actual result: 1 on hand
      
      To fix this:
      - prevent users from editing the UoM after the picking is
        done (i.e. unless adding a new stock.move.line and not saving).
      - update the write on done logic so stock.move.line UoM changes are
        considering and will update the quant correctly (in case of RPC or
        direct write).
      
      2. Prevent changing UoM of Done stock.move to prevent inconsistent field
      values within stock.move and confusion for users
      
      Steps to reproduce:
      - Complete a picking (incoming is easiest to see) with a new product
        (i.e. 0 qty) having 1 unit done.
      - Unlock picking and add a new stock.move with 1 unit done and save.
      - Edit the just added stock.move's UoM from Units to Dozen.
      - Check the quantity on hand / Done qty of stock.move after leaving and
        returning to form.
      
      Expected result: 13 On Hand
      Actual Result: 2 On Hand and the "Done" qty in the picking is 0.0083
        (i.e. 1/12 of a dozen)
      
      To fix this:
      - prevent users from editing the UoM after the picking is done (unless
        adding a new stock.move and not saving)
      - if a Done stock.move UoM is uodated, a UserError occurs because there
        is no straightforward way to ensure the quant is updated correctly
        since is handled within the move.line (i.e. has no visibility to its
        move's uom change => changing only UoM and not qty done will result in
        no quant update)
      
      closes odoo/odoo#75621
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      3f4654f9
Loading