Skip to content
Snippets Groups Projects
  1. Dec 28, 2021
  2. Dec 27, 2021
  3. Nov 23, 2021
  4. Nov 24, 2021
  5. Mar 26, 2021
  6. Apr 27, 2021
    • Thibault Delavallée's avatar
      [FIX] base: ir_attachment check logic · 5e81850e
      Thibault Delavallée authored
      How to fix mail.template attachments by re-attaching them to some
      template:
      
      ```sql
      with template_attach as
       (select *
          from email_template_attachment_rel
         where attachment_id in (
                select id
                  from ir_attachment
                 where res_id = 0 and not public and res_model='mail.template')
       )
      update ir_attachment a set res_id = ta.email_template_id
                            from template_attach ta
                           where a.id = ta.attachment_id;
      ```
      5e81850e
  7. Mar 27, 2021
  8. Feb 17, 2021
    • Martin Trigaux's avatar
      [FIX] website_forum: avoid relative links · c8294e19
      Martin Trigaux authored
      The origin parameter must be an absolute link (starting with a /)
      To be consistent and always have a leading slash (and avoid relative
      links if the developer forgot to add a leading slash)
      c8294e19
  9. Mar 08, 2021
  10. Jun 18, 2021
  11. Mar 11, 2021
  12. Sep 08, 2021
  13. Apr 27, 2021
  14. Jan 24, 2021
  15. Jan 27, 2021
  16. Aug 05, 2021
  17. Jun 21, 2021
  18. May 04, 2021
  19. Dec 23, 2021
    • Nasreddin Boulif (bon)'s avatar
      [FIX] sale,website_sale: Display extra prices with taxes included · 83c927f3
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce the issue:
      
        - Install eCommerce and Inventory module
        - Go to Settings
        - Ensure `Product Prices` is set to 'Tax included'
        - Ensure `Variant Grid Entry` is activated
        - Create a new Product as storable
        - Set `Sales Price` to $1.0
        - Set `Customer Taxes` to 10.00 %
        - Under `Variants` tab, set 'Sales Variant Selection' to 'Order Grid Entry'
        - Under `Variants` tab add an Attribute with 2 values
        - Set "Price Extra" to $2.0 to one of the variants
        - Go to the Shop and select the product
      
      Issue:
      
        The extra price badge does not include the taxes
        ($2.0 instead of $2.2), however the final price does.
      
      Cause:
      
        The price_extra field from ptav (used in the badge) does not include
        the taxes.
        However, when calculating the final price, we do first the sum of all
        prices (including the extra prices) and then apply the taxes.
      
      Solution:
      
        In the template, for each 'variants', we call `_get_combination_info`
        to get the variant.price_extra with taxes included/excluded
        depending the `Product Prices` setting.
      
      opw-2669871
      
      closes odoo/odoo#80460
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      83c927f3
  20. Dec 22, 2021
    • John (jol)'s avatar
      [FIX] account: fix fiscal position with delivery address · ca0fc6cd
      John (jol) authored
      
      The goal is to ensure that 2 conditions are met for a fiscal position to
      be applied (within the EU):
      
      - The customer must have a valid VAT number from another EU Member State
      - The goods must leave the country of origin
      
      closes odoo/odoo#75033
      
      Task: 2596204
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      ca0fc6cd
    • Merlin (megu)'s avatar
      [FIX] stock: correctly compare inventory adjustements difference · d60c3ed6
      Merlin (megu) authored
      
      The filter 'Difference different than zero' is not correct
      
      Steps to reproduce:
      1. Install the Inventory app
      2. Go to Inventory -> Operations -> Inventory Adjustments
      3. Create a new Inventory Adjustments and start it
      4. Change the number of Drawer counted so that the absolute difference is <= 0,498
      5. Apply the filter 'Difference different than zero'
      6. The line disappears although the difference is not null
      
      Solution:
      Specify the argument name 'precision_rounding' for the function 'float_is_zero()'
      
      OPW-2699771
      
      closes odoo/odoo#81681
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      d60c3ed6
  21. Dec 21, 2021
  22. Dec 20, 2021
  23. Dec 17, 2021
    • Federico (fega)'s avatar
      [FIX] hr_recruitment, web: the sidepanel doesn't show users correctly · 7ee5cd3d
      Federico (fega) authored
      
      How to replicate:
      - Create a user and assign the current company to its
      related contact.
      - Go to Recruitment -> create a job with the user
      created before as Responsible.
      
      Result:
      - The user doesn't display in the sidepanel.
      
      Expected:
      - The panel should display the user and the other
      users that are responsible of at least one job.
      
      Additionally, if the user's contact has no company
      assigned, it will display in the panel whether or not
      the user is set as responsible in at least one job.
      
      I overwrote the 'search_panel_select_range' to
      display only the users that respect the rules listed
      above.
      I also changed the original search_panel_select_range
      and now I don't set parent_field if the parent_field
      model is different than the current model
      
      opw-2654573
      
      closes odoo/odoo#80333
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      7ee5cd3d
    • Benjamin Vray's avatar
      [FIX] web_editor: prevent dropping popup inside a substructure · e5041cc2
      Benjamin Vray authored
      
      Before this commit, it was possible to drag and drop a popup inside an
      oe_structure which was itself inside an other oe_structure (e.g. snippet
      parallax). It didn't make sense and moreover created bugs.
      
      After this commit, it is no longer possible to drag and drop the popup
      snippet or the newsletter popup snippet in a substructure.
      
      task-2491976
      
      closes odoo/odoo#80836
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      e5041cc2
    • Arnold Moyaux's avatar
      [FIX] sale_mrp: quantity invoiced in cogs is different than qty delivered · e916526a
      Arnold Moyaux authored
      
      When a kit is exploded to `stock.move` the quantity is rounded half-up
      for every move. But during the invoice. The quantity to invoice on
      kit is rounded up so it could result in differences between the
      inventory valuation and the cost of the product
      
      closes odoo/odoo#81355
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      e916526a
    • nni-odoo's avatar
      [FIX] sale_mrp: unit price calculation BoM in different UoM · 85f227b1
      nni-odoo authored
      Fix for task 2620026.
      
      _get_bom_component_qty function is only referred to once in the whole odoo app,
      which is on addons/sale_mrp/models/account_move.py#22.
      
      The result returned from this function is used as a multiplier to quantity
      to convert into the expected UoM. However, the quantity being referred to on
      _stock_account_get_anglo_saxon_price_unit (qty_invoiced, qty_to_invoice), are
      already converted into the SO Line's product's default UoM. In this function,
      it however tries to convert 1 from SO Line's UoM to BoM's UOM.
      
      With this, if Product UoM=x, SO Line UoM=y, BOM UoM=x, in the function _stock_account_get_anglo_saxon_price_unit,
      the quantities will be multiplied by the same factor twice, resulting to the incorrect computation of price_unit to follow.
      
      Part-of: odoo/odoo#81355
      85f227b1
  24. Dec 15, 2021
    • Nicolas Martinelli's avatar
      [FIX] fetchmail: do not loop endlessly · 72cd8d07
      Nicolas Martinelli authored
      
      - Set up a POP account
      - On the POP account, receive emails addressed to various recipients,
        e.g. `my_alias_1` and `my_alias_2`. Receive more than 50 emails to
        `my_alias_2`.
      - In Odoo, create a mail alias for `my_alias_1`
      - Run the fetchmail cron
      
      The cron runs endlessly until it is killed. In the logs, inconsistent
      messages are shown:
      
      ```
      ...
      Fetched 3507 email(s) on pop server xxx; -16493 succeeded, 20000 failed.
      Fetched 3507 email(s) on pop server xxx; -16543 succeeded, 20050 failed.
      ...
      ```
      
      First the message count is incorrect in the log. We fetched at most 50
      emails, not the total number of emails. Then, the endless loop is due
      to the fact that
      - we do not delete failed messages (= messages addressed to
        `my_alias_2`)
      - we always fetch messages from `num=1`
      
      If the first 50 messages fail, we fetch them endlessly until the cron is
      killed.
      
      To avoid this, we compare the number of failed messages with the number
      of messages retrieved. If all messages retrieved have failed, we stop
      the loop.
      
      After the fix, consistent messages are show in the logs and the process
      stops after the first complete failure:
      
      ```
      start checking for new emails on pop server xxx
      Fetched 50 email(s) on pop server xxx; 0 succeeded, 50 failed.
      ```
      
      Note that it doesn't solve the core of the issue; we just fail faster. A
      proper way would probably be to use an offset so we don't always start
      at `num=1`. On the other hand, it is just a matter of time before the
      cron times out: if the mailbox is full of messages which canot be
      treated, we will just spend more and more time trying to find the ones
      which can be treated.
      
      closes odoo/odoo#81115
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      72cd8d07
    • Brice bib Bartoletti's avatar
      [FIX] stock_account:make cogs multi_company safe · 17465e2b
      Brice bib Bartoletti authored
      
      Goal:
      The aim of this commit is to make the cogs generation multi-company
      safe.
      
      Context:
      
      Considering the situation in which company A has set a product P with
      a real time valuation and company B didn't set the real time valuation
      or has set it to manual;
      Considering the user has selected both company in the switcher;
      The user post an invoice for the product P.
      
      Before this commit:
      There isn't any cogs created for the invoice which is wrong.
      
      After this commit:
      Whatever the selected companies are, the cost selected will always be from
      the company that created the invoice.
      
      closes odoo/odoo#81348
      
      Task: #2713607
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      17465e2b
    • nurefexc's avatar
      [FIX] web: missing context during resequence · 9b665ba8
      nurefexc authored
      
      Problem 1: The context was not passed when calling the resequence function.
      Problem 2: Also, the subsequent read operation did not pass the full
      context, but only the context of the user, not the context of the action.
      A test has been added for the basic model to check that the context is properly
      given after a resequence.
      
      closes odoo/odoo#81393
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      9b665ba8
Loading