Skip to content
Snippets Groups Projects
  1. Jul 07, 2022
    • pedrambiria's avatar
      [FIX] l10n_fr_pos_cert: print report even with inconsistency · 2acc2e72
      pedrambiria authored
      
      Before this commit: if one of the orders is corrupted, it will print an empty report.
      
      The solution is to print corrupted orders in the report.
      
      opw-2867770
      
      closes odoo/odoo#95455
      
      X-original-commit: 0fe806e8
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      2acc2e72
    • Davor Bojkić's avatar
      [IMP] - set context default type for created product · 99fa6832
      Davor Bojkić authored
      
      closes odoo/odoo#95388
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      99fa6832
    • David (dafr)'s avatar
      [FIX] stock: Add index of product_id field of stock.move.line model · b8423ba2
      David (dafr) authored
      
      Adding a @depend decorator on product_id in the stock_move_line model can trigger a search on stock.move.line.product_id
      When the number of StockMoveLine reach a million, a simple `SELECT id FROM stock_move_line WHERE product_id = XXX` can take 200ms.
      When a transfer contains a few hundred StockMoveLine (ex: when dealing with serial numbers), the process of validating it will take a few minutes.
      Indexing product_id will change the process time back to a few seconds.
      
      OPW-2893131
      
      closes odoo/odoo#95467
      
      X-original-commit: ed4839d4
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarDavidFesquet <dafr@odoo.com>
      b8423ba2
    • Samuel Degueldre's avatar
      [FIX] tests: stop test runner from opening error dialogs when not ready · a50a65be
      Samuel Degueldre authored
      
      Previously, the test runner would evaluate an expression to check if the
      browser test that is about to be run is ready, but before the test is
      ready, this expression may be invalid as the variables used in the
      expression may not be defined yet, causing a ReferenceError to be thrown
      by Chrome.
      
      In Chrome >=102, errors that are thrown when writing code in the console
      or by using Runtime.evaluate over CDP are thrown in the context of the
      current tab, which means that they trip registered error handlers in
      that tab. In Odoo, this means that we show error dialogs with the
      traceback.
      
      In the tour manager, when we are looking for an element  to trigger, we
      only look for that element inside dialogs if there are any dialogs open
      (unless the in_dialog option is false on that specific step). This means
      that if an error dialog is open, most tours will fail (which is actually
      what we want).
      
      In order to avoid opening a bunch of error dialogs while waiting for the
      tour to be ready, we simply wrap the ready expression in a try catch so
      that it doesn't throw an error, and simply returns a undefined until the
      tour is ready instead of throwing a ReferenceError.
      
      closes odoo/odoo#95419
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      a50a65be
  2. Jul 06, 2022
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: allow using an unbuilt serial number in manufacturing order · 7fd40e2b
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a storable product “P1”
          - Tracking: by serial number
          - BOM:
              - Component: C1
      
      - Create a storable product “P2”
          - BOM:
              - Component: P1
      
      - Create a MO to produce one unit of P1:
          - serial number: SN1
          - Confirm and mark as done
      
      - Unbuild the manufactured product
      - Manufacture the same product using the same serial number again
      
      - Create a new MO to produce one unit of “P2”:
          - Component P1 → select SN1
          - Try to confirm and validate the MO
      
      Problem:
      Get User Error: The serial number “SN1” used for component “P1”
      has already been consumed
      
      We do a search in the `stock.move.line` to find if the SN has already
      been used in a previous MO, but there is no specific condition to get
      only those used in an MO so the unbuild order is in the same condition
      and therefore the SN is considered as it has already been used
      opw-2883450
      
      closes odoo/odoo#94997
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      7fd40e2b
    • Miquel Raïch's avatar
      [FIX] purchase_stock: propagate PO line sequence to stock moves · 43846b0d
      Miquel Raïch authored
      
      The default order of the picking moves generated from a purchase order should be the same order as the purchase order lines.
      
      Steps to reproduce:
      - Create a purchase order with several purchase lines.
      - Change the order of the purchase lines.
      - Confirm the purchase order.
        => The moves of the picking don't maintain same order as set before.
      
      closes odoo/odoo#94354
      
      X-original-commit: cb44c011
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      43846b0d
    • Luis González's avatar
      [FIX] website_hr_recruitment: job positions w/o address are not shown · f9ec7c52
      Luis González authored
      
      When accessing the job positions page, country is detected automatically
      to filter only those jobs whose country match current one + the ones
      available in any country. However, when job positions have no specific
      country, they're being excluded due to the usage of an old API
      (expecting relational fields as `None` when they're empty), so only
      positions with country are being taken into account.
      
      This commit fixes the above by expecting the correct value (an empty
      recordset) when an address is not set.
      
      closes odoo/odoo#95394
      
      X-original-commit: 65a28512
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      f9ec7c52
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: safe use of dutch fields · d131a038
      Julien Van Roy authored
      
      Use the dutch fields 'l10n_nl_oin' and 'l10n_nl_kvk' after checking
      for their presence. Otherwise, we could get traceback like:
      'AttributeError: 'res.partner' object has no attribute 'l10n_nl_oin''
      
      In addition, _render already returns a byte object, we should not encode it
      again when generating the PDFA.
      
      closes odoo/odoo#95298
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      d131a038
    • Florent de Labarre's avatar
      [FIX] payment: amount can be negative · 938798c7
      Florent de Labarre authored
      
      the amount of payment cannot be negative.
      the negative amount is manage by payment_type.
      
      closes odoo/odoo#94450
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      938798c7
    • Guillaume (gdi)'s avatar
      [FIX] website: prevent the sidebar from being over the content · 618fd496
      Guillaume (gdi) authored
      
      With this commit, users can no longer have headers that have the sidebar
      template and the over the content option at the same time.
      
      Steps to reproduce the problem:
       - Edit a website
       - Edit the navbar
       - Set Header Position to Over the Content
       - Change the navbar template to Sidebar
      
      The navbar is not displayed properly and there is a margin on the left
      that should not be there.
      
      task-2877421
      
      closes odoo/odoo#93054
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      618fd496
  3. Jul 05, 2022
  4. Jul 04, 2022
  5. Jul 03, 2022
  6. Jul 01, 2022
  7. Jun 30, 2022
    • MerlinGuillaume's avatar
      [FIX] l10n_es_edi_sii: allow any user to send invoices to the SII · 81dffddc
      MerlinGuillaume authored
      
      Only users with admin rights are able to confirm and send an invoice to
      the SII
      
      Steps to reproduce:
      1. Install l10n_es_edi_sii module
      2. Switch to company 'ES Company'
      3. Go to Settings > Invoicing > Spain Localization > Registro de Libros
         connection SII and select 'Hacienda Foral de Gipuzkoa'
      4. Go to Invoicing > Configuration > Accounting > Journals and open
         'Customer Invoices'. In the 'Advanced Settings' tab, enable EDI
         functionality 'SII IVA Llevanza de libros registro (ES)'
      5. Go to Invoicing > Configuration > Spain > Certificate (ES) and import
         the certificate (file named sello_entidad_act.p12 in
         l10n_es_edi_sii/demo/certificates/) with password "IZDesa2021"
      6. Connect as demo in 'ES Company'
      7. Create an invoice with any customer and product and confirm it
      8. Click on 'Send now', an access error is raised
      
      Solution:
      Call `_decode_certificate` with sudo to allow any user to send invoices
      to the SII
      
      opw-2767288
      
      closes odoo/odoo#94835
      
      Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
      81dffddc
    • roen-odoo's avatar
      [FIX] sale_mrp: show correct MO count on smart button · 50015ed4
      roen-odoo authored
      
      Current behavior:
      When creating a backorder for a MO the smart buttons showing
      the MO counts had the wrong value
      
      Steps to reproduce:
      - Have a product that has MTO and Manufacture in his routes
      - Create a quotation for 5 of this product
      - Validate the order and click the manufacturing smart button
      - Set the quantity to 3 and validate
      - Create backorder
      - Go back to the sale order, the manufacturing count is still 1
        but should be 2
      
      Solution:
      Backport of saas-15.2: b3fffea6
      
      opw-2877348
      
      closes odoo/odoo#94091
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      50015ed4
    • Pierre Verkest's avatar
      [FIX] base: discard clear_cache on method res_users.has_group · 202c98c9
      Pierre Verkest authored
      
      Overriding method has_group() in some extension of model 'res.users' is
      not possible because of code invoking model.has_group.clear_cache().
      
      As clear_cache() is no longer invoked on ormcached methods, we can
      simply replace the code by a global cache invalidation.  In this case,
      it is not even necessary, since method call_cache_clearing_methods()
      does it already.
      
      closes odoo/odoo#94907
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      202c98c9
Loading