Skip to content
Snippets Groups Projects
  1. Sep 06, 2021
  2. Sep 05, 2021
  3. Sep 02, 2021
    • Bruno Zanotti's avatar
      [FIX] l10n_ar: return vat info grouped by tax · a9d35786
      Bruno Zanotti authored
      
      In the method _get_vat(), used to inform AFIP about the vat taxes of an
      invoice, we were assuming that in the journal items of the invoices
      there is always one line per tax group, but if the user enables the
      option "Include in Analytic Cost" of the tax, then it could create more
      than one line per tax so it will return an error if you try to validate
      the invoice in AFIP or upload the vat book.
      
      closes odoo/odoo#75802
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      a9d35786
    • Tiffany Chang (tic)'s avatar
      [FIX] stock: ensure safe UoM change for done smls · 8ca10a8f
      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#75823
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      8ca10a8f
  4. Sep 01, 2021
  5. Aug 31, 2021
  6. Aug 30, 2021
    • Denis Ledoux's avatar
      [FIX] mrp: `qty_available` computation of a nested bom kits asked together · c2df3d43
      Denis Ledoux authored
      
      This revision has a similar goal than the previous revision
      62c5b8d9
      but this times, it's a kit/phantom bom which is nested in another
      kit/phantom bom, and their computation is asked in the same time.
      
      ```
      2021-08-20 11:29:54,835 1689 ERROR db_22687 odoo.upgrade.stock.tests.test_on_hand_quantity: FAIL: TestOnHandQuantityUnchanged.test_check
      Traceback (most recent call last):
        File "/tmp/tmpv3ujv2vr/migrations/testing.py", line 208, in test_check
          self.check(value)
        File "/tmp/tmpv3ujv2vr/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check
          self.assertEqual(before_results, self.convert_check(after_results), self.message)
      AssertionError: Lists differ: [[551[14585 chars] [8988, '137'], [8989, '137'], [8990, '20'], [[1793 chars]91']] != [[551[14585 chars] [8989, '137'], [8990, '20'], [8991, '126'], [[1778 chars]91']]
      
      First differing element 1007:
      [8988, '137']
      [8989, '137'
      ```
      
      ```
      SELECT b.id, b.type,  p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as
      kit_product_name FROM mrp_bom b JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product p ON p.pr
      oduct_tmpl_id = pt.id WHERE p.id = 8988;
      -[ RECORD 1 ]-------+-----------------
      id                  | 2208
      type                | phantom
      kit_product_id      | 8988
      kit_product_tmpl_id | 9049
      kit_product_name    | KIT Poulie AR G4
      ```
      
      ```
      SELECT b.id, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name, l.product_id as component_product_id, component_t.name as component_name FROM mrp_bom_line l JOIN mrp_bom b ON l.bom_id = b.id JOIN product_product p ON p.product_tmpl_id = b.product_tmpl_id JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product component ON component.id = l.product_id JOIN product_template component_t ON component_t.id = component.product_tmpl_id WHERE l.product_id = 8988;
      -[ RECORD 1 ]--------+---------------------
      id                   | 2213
      kit_product_id       | 8761
      kit_product_tmpl_id  | 8879
      kit_product_name     | VEL BP KIT direction
      component_product_id | 8988
      component_name       | KIT Poulie AR G4
      ```
      
      upg-22687
      
      closes odoo/odoo#75654
      
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      c2df3d43
  7. Aug 29, 2021
  8. Aug 27, 2021
  9. Aug 26, 2021
  10. Aug 25, 2021
  11. Aug 02, 2021
  12. Aug 24, 2021
  13. Aug 23, 2021
  14. Aug 19, 2021
  15. Aug 23, 2021
  16. Aug 22, 2021
  17. Aug 20, 2021
    • Alvaro Fuentes's avatar
      [FIX] base: fix ir_attachment read_group · eca51578
      Alvaro Fuentes authored
      
      When called with a `srt` as readgroup parameter we get a traceback.
      Example:
      `read_group([('partner_id', 'in', self.ids)], 'partner_id', 'partner_id')`
      TB:
      ```
       Traceback (most recent call last):
         File "/home/odoo/src/odoo/14.0/odoo/tools/safe_eval.py", line 330, in safe_eval
          return unsafe_eval(c, globals_dict, locals_dict)
         File "", line 2, in <module>
         File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/ir_attachment.py", line 420, in read_group
          if any('(' in field for field in fields + groupby):
       TypeError: can only concatenate list (not "str") to list
       ```
      
       Observed on the upgrade request 22627.
      
      closes odoo/odoo#75410
      
      X-original-commit: 8e7990dd5c069f7b0dba9f3d27f620f0fcad5441
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      eca51578
    • Achraf (abz)'s avatar
      [FIX] account: Allow user to change tax with many lines · c5a22a12
      Achraf (abz) authored
      
      The current code uses cached data to retrieve the tax_line which is usually near the end of lines (often the second to last line).
      This only works if there are fewer lines than the limit, but otherwise the line is not found and a traceback appears.
      
      In case there are 50 invoice_line_ids for example, there will be 52 line_ids (invoice_line_ids + 2 lines including one containing the tax),
      the base limit of the list subview is 40, the tax_line will not be in the cached data.
      
      The following fix automatically loads the last page to always access the tax line.
      
      The last page is loaded only if the tax_line is not already in the cache
      
      opw-2566580
      
      closes odoo/odoo#75356
      
      Signed-off-by: default avatarAchraf <abz-odoo@users.noreply.github.com>
      c5a22a12
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] account: don't print invoices for miscellaneous journal entries · b324ba12
      Hubert Van de Walle (huvw) authored
      
      Step to follow
      
      - Trigger the Print > Invoices action
      - An error is displayed but the PDF is still attached
      
      Cause of the issue
      
      > The PDF is generated before the error
      
      Solution
      
      > Show an error earlier
      
      opw-2625480
      
      closes odoo/odoo#75329
      
      Signed-off-by: default avatarFlorian Gilbert <FlorianGilbert@users.noreply.github.com>
      b324ba12
  18. Aug 19, 2021
  19. Aug 16, 2021
  20. Aug 19, 2021
    • dht-odoo's avatar
      [FIX] website_slides_survey: add context to survey_id · 7b2b00e0
      dht-odoo authored
      
      Before this commit when user quick create a certification,
      then it will create record in survey but not with certification
      equals to True. Due to which it will be excluded from domain and
      we will not able to find it in survey_id in elearning.
      
      With this commit we pass certification equals to true and scoring_type
      equals to scoring_without_answers in context of survey_id. So now,
      it will be not excluded in domain('certificate', '=', True) in elearning.
      
      Task Id: 2621296
      
      closes odoo/odoo#75295
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      7b2b00e0
Loading