Skip to content
Snippets Groups Projects
  1. Sep 13, 2023
  2. Sep 12, 2023
  3. Sep 11, 2023
    • miad-odoo's avatar
      [FIX] mass_mailing: fix finding duplicate mails · 93f4c724
      miad-odoo authored
      
      Before the commit, the _get_seen_list() function in the mass_mailing module was
      not able to correctly identify all the duplicate email addresses in a given mass
      mailing. This was because the function chose and used only one way to find an
      email address for each record in the mailing list, even though there are many
      ways to find an email address for a record.
      
      For example, a crm.lead record might have an email address in its partner_id
      field, but it might also have an email address in its email_normalized field.
      This can vary from record to record.
      
      To fix this issue, the _get_seen_list() function was updated to only look at the
      email address to which emails have already been sent, rather than trying to
      fetch it from the record itself. This ensures that all duplicate emails are
      correctly identified and that no duplicate emails are sent in the mass mailing.
      
      Task-3234378
      
      closes odoo/odoo#135022
      
      X-original-commit: 66f9aa25
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      93f4c724
    • MerlinGuillaume's avatar
      [FIX] account: add a block at the bottom of the invoice report · f53044ee
      MerlinGuillaume authored
      
      It is not possible to add a block at the bottom of the invoice report
      with Studio
      
      Steps to reproduce:
      1. Install Invoicing and Studio
      2. Open Invoicing, toggle Studio and open Reports
      3. Open the Invoice report
      4. Try to add a text block after the payment terms, Studio doesn't let
         you
      
      Solution:
      Put all the content of the invoice in the page div
      
      opw-3443086
      
      closes odoo/odoo#134651
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      f53044ee
    • Chong Wang (cwg)'s avatar
      [FIX] core: update model terms for en_US and other · ef4b195e
      Chong Wang (cwg) authored
      
      For model_terms translated fields if a translation for a lang(fr_FR) has never
      been defined
      
      before this commit
      when update translations for both en_US and fr_FR, the new translation for fr_FR
      cannot be saved.
      
      after this commit
      new translations can be correctly saved when en_US and fr_FR are updated at the
      same time.
      
      closes odoo/odoo#132540
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      ef4b195e
    • Chong Wang (cwg)'s avatar
      [FIX] web: fix web translations · cf0f7c90
      Chong Wang (cwg) authored
      
      the comment 'openerp-web' has been deprecated since odoo/odoo#105589, and there
      is only JAVASCRIPT_TRANSLATION_COMMENT in the most po files of the source code
      repository
      
      closes odoo/odoo#124402
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      cf0f7c90
    • Chong Wang (cwg)'s avatar
      [FIX] core: fix typo for TranslationImporter · f32b96ce
      Chong Wang (cwg) authored
      fix typo to log correct error message when the imported file is badly formatted
      
      Part-of: odoo/odoo#124402
      f32b96ce
    • Chong Wang (cwg)'s avatar
      [FIX] core: fix cached translations · 9476262e
      Chong Wang (cwg) authored
      before this commit:
      translations updated by `update_field_translation` api cannot be detected by
      t-cache and some cached data whose model overrides `write` with an extra
      'clear_caches()'
      
      Step to reproduce:
      - Create a mega menu, select any template, `Odoo Menu` for the example
      - Install another language on the website
      - Go to the translated version of your website and enter translate mode
      - Change "Camera" in the mega menu to something else
      - Save
      
      The change won't be replicated, looking like it did nothing.
      From there, removing or adding `edit_translations=1` in the URL will
      use different cache version of the page's views and you will see the
      outdated value on one and the correct on the other one.
      
      after this commit:
      `update_field_translation` will call `write`
      it does the following 4 important things
      1. mark field as modified
      2. execute logics in the override `write` method
      3. update write_date if needed to support t-cache
      
      opw-3305117
      
      Part-of: odoo/odoo#124402
      9476262e
    • Francesco Ballerini's avatar
      [FIX] mrp: fix typo in mrp_immediate_production_views · 301a6f39
      Francesco Ballerini authored
      
      Typo error detected on `/mrp/wizard/mrp_immediate_production_views.xml`.
      It doesn't cause any issue on module installation or updates, but
      it's probably gonna cause issue on view inheritance.
      
      If you can confirm this is unintended typo I will edit commit msg.
      I also detected this on version 15.0 and 16.0.
      
      closes odoo/odoo#134788
      
      X-original-commit: 80e8222f
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      301a6f39
    • Nasreddin Boulif (bon)'s avatar
      [FIX] account: send invoice mail in partner language · 1d50d8c9
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install `account` module
        - Activate another language (e.g. French)
        - Create a partner with the new activated language
        - Create an invoice for this partner and sent it by mail
      
      Issue:
      
        Some words in the external layout of the email are not translated;
        button and title
      
      Cause:
      
        The language of the partner is not taken into account (except for the
        model name in the button) when creating the external layout of the
        mail.
      
      Solution:
      
        Call send_mail with the partner language in the context.
      
      opw-3301607
      
      closes odoo/odoo#133744
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      1d50d8c9
    • aliya's avatar
      [FIX] account: fix the bank account onboarding · 4776bf1a
      aliya authored
      
      If a bank account is added through the onboarding step and the user creates one instead of linking it,
      the dashboard is not reloaded to show the completion of the step and the new account.
      To make sure that the view is reloaded to show new data,
      the easiest fix would be to return a reload action in `validate`.
      
      task-3431961
      
      closes odoo/odoo#133057
      
      Related: odoo/enterprise#46250
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      4776bf1a
    • Aaron Bohy's avatar
      [FIX] web: form: reset date field value if onchange fails · 1b9c7fec
      Aaron Bohy authored
      
      Have a form view with a date or datetime field with onchange.
      Change its value to trigger the onchange. If the onchange fails,
      we want to revert the value to the original one. Before this commit
      it didn't work, because the datepicker blocked the update when the
      props were the same, which was the case in this situation.
      
      Task~3498849
      
      closes odoo/odoo#134792
      
      Signed-off-by: default avatarFrancois Georis (fge) <fge@odoo.com>
      1b9c7fec
    • Aaron Bohy's avatar
      [FIX] web: form: restore value when onchange returns an error · 3fdfbf2a
      Aaron Bohy authored
      In a form view, have a field with an onchange that returns an
      error. Before this commit, the error was displayed but the
      faulty value that triggered the onchange (and thus the error)
      was still displayed in the UI (even though in the model, the
      previous value was still set).
      
      This commit enforces an update of the UI when an error occurs,
      such that the previous, valid, value is displayed again.
      
      For instance:
      Go to a customer invoice, open the Actions menu, click on
      "generate a payment link", in the dialog, set an high amount.
      
      Task~3498849
      
      Part-of: odoo/odoo#134792
      3fdfbf2a
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: clear component when the BoM Changes · f874fd46
      Touati Djamel (otd) authored
      
      Steps to Reproduce the Bug:
      
      - Create a storable product "P1" with 2 Bills of Materials:
         - BoM 1:
           - Component: C1
         - BoM 2:
           - Component: C2
      
      - Create a MO:
         - Select BoM 1.
         - Save.
         - Select BoM 2 without saving. Result: The component C1 is deleted
         and replaced by the component of BoM 2.
         - Select BoM 1.
      
      Problem:
      The component of BoM 2 is not cleared. Because we check if the new BoM
      is different from the original one, but since we didn't save the change
      when selecting BoM 2, the `move_raw_ids` are not cleared.
      
      Solution:
      Clear the `move_raw_ids` if any move with `bom_line` is not linked to
      the current BoM.
      
      OPW-3473387
      
      closes odoo/odoo#134718
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      f874fd46
    • Roy Le's avatar
      [FIX] note: correct number of followers · db3bb58e
      Roy Le authored
      
      BUG:
      show +NAN on kanban view
      
      FIX:
      show +6 on kanban view
      
      closes odoo/odoo#134623
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      db3bb58e
  4. Jun 27, 2023
  5. Aug 29, 2023
  6. Sep 11, 2023
  7. Sep 10, 2023
  8. Sep 08, 2023
Loading