Skip to content
Snippets Groups Projects
  1. Sep 25, 2023
    • Yolann Sabaux's avatar
      [FIX] analytic: prevent closing the analytic editor · 93e553c2
      Yolann Sabaux authored
      
      steps to reproduce:
      - enable analytic
      - open journal items in list view
      - select one item, set an analytic account
      - select the same item, click on the analytic account, click on the save button (floppy disk)
      - pop up opens
      - close it
      
      Issue:
      Traceback
      
      Cause:
      In multiEdit mode, the main element cannot be focused in
      
      opw-3463911
      
      closes odoo/odoo#135141
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      93e553c2
    • Antoine (ande)'s avatar
      [FIX] base_import: cannot import midnight date · 8c8fddc2
      Antoine (ande) authored
      
      Steps to reproduce:
      1. Install hr_attendance
      2. Go to attendances
      3. Select any line
      4. Change the check-out date to next day
      5. Change the check-out time to 00:00:00
      6. Export that line, file format xlsx
      7. Favorites > import records
      8. Upload the exported file > Test
      9. Column check_out contains incorrect values.
      Error in line 2: unconverted data remains: 2023-06-11
      
      Cause of the issue:
      options.get('date_format') is empty
      
      opw-3374883
      
      closes odoo/odoo#136393
      
      X-original-commit: 973af585
      Signed-off-by: default avatarRémy Voet (ryv) <ryv@odoo.com>
      8c8fddc2
    • Andrzej(pian)'s avatar
      [FIX] account : Deprecated accounts shall not appear in suggestions · 2e1a28ec
      Andrzej(pian) authored
      
      [Problem]
      Before this commit, depreceted accounts were visible in the suggestions.
      To reproduce:
      - run odoo 16.0 (onward) with modules: account,account_accountant
      - deprecate all, but 3 accounts (UPDATE account_account SET deprecated=true WHERE id>3;)
      - go to: invoicing app -> Vendors -> Bills -> New
      - pick a vendor -> add a line -> click on dropdown in the Account column
      - see the deprecated accounts are showed in suggestion (we don't want deprecated accounts in suggestions)
      
      [Solution]
      Modified SQL query, such that only not deprecated accounts will appear.
      
      [Testing]
      Created test in test_account_account:
      It runs function with modified sql query twice:
      - with certain account not deprecated -> extected that this account appears in the results
      - with the same account deprecated    -> extected that this account won't appears in the results
      
      opw-3485768
      
      closes odoo/odoo#135884
      
      Signed-off-by: default avatarAndrea Grazioso (agr) <agr@odoo.com>
      2e1a28ec
    • Mahamadasif Ansari's avatar
      [FIX] l10n_sa_edi: adapt code with new structure of field 'display_type' · 6ee82c26
      Mahamadasif Ansari authored
      Currently, errors occur when generating the e-invoicing for
      ZATCA (Saudi Arabia). This is because currently, users create invoices without
      a tax, but in Saudi Arabia, the invoice line must require at least one tax.
      
      The validation error is present at Line [1], but due to recent changes in
      Code [1], the validation is not working. As a result, the user can create an
      invoice line without tax.  see https://github.com/odoo/odoo/pull/130034.
      
      This commit fixes the above issue by filtering invlocice line ids
      that have display_type 'product'.
      
      Line [1]-https://github.com/odoo/odoo/blob/d2f0a0f2c9a18a7a6cef8ca3be52324ad2a1dad6/addons/l10n_sa_edi/models/account_edi_format.py#L406
      
      
      Code [1] odoo@d8d47f9#diff-78f3e1847de8ca0acf28d72a412947a549acdb08142d1dadf7646363d7972cb0R268-R280
      
      sentry-4467808485, 4467794808
      
      closes odoo/odoo#135737
      
      Signed-off-by: default avatarde Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
      6ee82c26
    • Abdelouahab (abla)'s avatar
      [FIX] purchase: no recomputing date when autocomplete · 8f315eb2
      Abdelouahab (abla) authored
      
      To reproduce
      ============
      - create a purchase order and confirm it
      - create a Bill, set its Bill date and Accounting date to different dates
      to today
      - save it, then choose the created PO in autocomplete field
      the Accounting day will be changed to today
      
      Problem
      =======
      when calling the autocomplete, some values will be updated on the record,
      where `move_type` is one of them, and updating this field will trigger the
      compute of accounting date.
      
      Solution
      ========
      if the value of `move_type` on the record is the same as the one of the update,
      it should not be taken into account which will avoid uneeded recompute.
      
      opw-3381530
      
      closes odoo/odoo#132841
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      8f315eb2
    • Walid's avatar
      [FIX] product: delete Package when associated product is deleted · 1e96c21e
      Walid authored
      
      Steps to reproduce:
      - Enable product packaging
      - Create a Package for product P and set the barcode
      - Delete product P
      - Create a new Package with the same barcode
      
      Bug:
      barcode already exists
      
      Fix:
      delete Package when associated product is deleted
      
      opw-3507931
      
      closes odoo/odoo#136305
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      1e96c21e
    • Romain Derie's avatar
      [FIX] website, *: add website_id in seo save rpc context · c45c0bf8
      Romain Derie authored
      *: website_event
      
      Without this, the seo saving would not forward the current website in
      the context. It's especially bad in this case as it's writing on views
      which are not triggering the COW due to the lack of a website_id in the
      context.
      
      Step to reproduce:
      - Go to /shop (if you didn't do anything, this will be bound to the
        `website_sale.products` view which has no website_id set and is called
        a generic view)
      - Open "Optimize SEO" dialog and type something in the title
      - Save
      - It saved the change on the mentioned view, without duplicating it
        (COW) before writing on it. The title you added is now applied to
        every websites and not only the one you edited, which is against the
        website holy grail rule: only the website you edit should be changed.
      
      Technically, this is because we refactored that part of the code in Odoo
      16: the website is now editable in the backend.
      
      Note that this fix also revealed that a test for events (which has been
      introduced with [1]) was relying on the bug: it tested the meta title of
      a view that should (and will after this fix) have been COW'ed. This test
      will now indirectly protects this bug from re-happening, although we
      might want to write a dedicated test in the future as the behavior for
      events might need some refactoring.
      
      [1]: https://github.com/odoo/odoo/commit/2072a7739eb9a9ee87c8b3c7b0d43a82a7e2375f
      
      
      
      opw-3499285
      
      closes odoo/odoo#136084
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      c45c0bf8
    • Louis Wicket (wil)'s avatar
      [I18N] add payment_stripe to .tx/config · 0c840590
      Louis Wicket (wil) authored
      
      payment_stripe was missing in .tx/config, resulting in the module not
      being available for translation on Transifex.
      
      closes odoo/odoo#136380
      
      Signed-off-by: default avatarLouis Wicket (wil) <wil@odoo.com>
      0c840590
    • duongnguyen's avatar
      [FIX] account: wrong field name on button_open_statement_lines · 7c5fcf4c
      duongnguyen authored
      
      This is just a typo XD
      
      closes odoo/odoo#135608
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      7c5fcf4c
    • shsa-odoo's avatar
      [FIX] web_editor: update toolbar on list uncheck. · 2cf3dd59
      shsa-odoo authored
      
      Before this commit:
      
      -With selection on checklist, on unchecking it toolbar is not updating.
      
      After this commit:
      
      -Now toolbar is updated when list unchecks.
      
      task-3504398
      
      closes odoo/odoo#135422
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      2cf3dd59
    • Deependra Solanki's avatar
      [FIX] web_editor: list indentation in table · 62c16468
      Deependra Solanki authored
      
      Before this commit:
      
      Indenting list using tab inside a table used to switch to the next cell.
      
      After this commit:
      
      Indenting list using tab inside a table now indents a list instead of switching
      to the next cell.
      
      task-3470092
      
      closes odoo/odoo#132508
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      62c16468
    • shsa-odoo's avatar
      [FIX] web_editor: remove toolbar on selection collape in table · 89116f6f
      shsa-odoo authored
      
      Before this commit:
      
      when selected cell is clicked, its selection collapses yet toolbar is visible.
      
      After this commit:
      
      Now toolbar is removed when selection collapses.
      
      task-3458048
      
      closes odoo/odoo#131339
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      89116f6f
    • Sébastien Geelen (sge)'s avatar
      [FIX] web: better report preview · 9be75bb1
      Sébastien Geelen (sge) authored
      
      Report footer is sometimes misplaced in settings preview.
      We change the css to always stick to the bottom of the preview,
      no matter the content height.
      
      Task-3145445
      
      closes odoo/odoo#128552
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      9be75bb1
    • Sébastien Geelen (sge)'s avatar
      [FIX] web: support column in report footer · 3631e51e
      Sébastien Geelen (sge) authored
      Report body size was too narrow to render bootstrap .col as column,
      the media query consider the report as a mobile view.
      We unlock this limitation to let customer add column in the footer.
      
      Task-3145445
      
      Part-of: odoo/odoo#128552
      3631e51e
    • vishal padhiyar's avatar
      [FIX] mass_mailing: issue with social media icons · 8c11d211
      vishal padhiyar authored
      
      Before this commit:
      
      When we load some themes without installing website the social media icons look
      weired and margin between those icons is also weired.
      
      After this commit:
      
      Now when we load mass_mailing themes without installing website the social media
      icons same as before and margin between those icon is also same.
      
      Task-3347902
      
      closes odoo/odoo#125527
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      8c11d211
    • erl-odoo's avatar
      [IMP] core: ease testing upgrade scripts in custom modules · c924434d
      erl-odoo authored
      
      Upgrade (aka migration) scripts are a core part of Odoo, allowing
      database manipulations for modules during version changes.
      
      Any module, including custom ones can run upgrade scripts, even if the
      `--upgrade-path` flag (and with it, the `odoo.upgrade` sub-module) is
      not present. Currently only the "standard" modules benefit of easy
      upgrade script testing. Any custom modules that want to run tests of
      their upgrades have to import the tests in the usual `tests` folder,
      which is not ideal.
      
      Therefore, to allow TDD and programmatic testing of upgrade scripts in
      custom modules, the test discovery is here modified to also parse the
      module's `migrations` and `upgrades` sub-modules for tests.
      
      closes odoo/odoo#136201
      
      X-original-commit: e8683726
      Signed-off-by: default avatarChristophe Simonis (chs) <chs@odoo.com>
      c924434d
    • Rodolpho Lima's avatar
      [FIX] web_editor: toolbar in website forum · fc6f66f1
      Rodolpho Lima authored
      
      Steps:
      
      In a website forum post without any previous scrolling, select some
      text. A traceback appears due the fact that there's no .o_action_manager
      element in website forum.
      
      This commit uses the document body as a fallback for the scroll
      container when the .o_action_manager element is not present.
      
      task-3506312
      
      closes odoo/odoo#135785
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      fc6f66f1
    • Hugo Santos's avatar
      [FIX] web: ImageUrlField edit state.src · 7dc306d6
      Hugo Santos authored
      
      Update of right state key for rerender the image on record change from OWL
      
      Included tests from commit 94db69453616131f6913b65a58b76df712ede35d by @FrancoisGe
      
      Fixes #134454
      
      closes odoo/odoo#134477
      
      Signed-off-by: default avatarFrancois Georis (fge) <fge@odoo.com>
      7dc306d6
    • Robin Lejeune (role)'s avatar
      [FIX] website_crm: fix access error for users without CRM rights · 4a4d6017
      Robin Lejeune (role) authored
      1. Backport of [1].
      2. Steps to reproduce:
      - Install website_crm
      - Connect as Admin and remove the sales rights for Demo
      - Check the website on a private window (to create an anonymous visit)
      - Connect as Demo on the normal window
      - Go to Website > Reporting > Visitors
      => It triggers an access error due to lead_ids being restricted to
      sales_team.group_sale_salesman.
      (Note: the error sometimes isn't triggered at that point. In that case,
      click on the visitor: the same error will trigger.)
      
      Considering the computed field doesn't do anything critical as it just
      retrieves the email and phone number, the restriction is overridden on
      the field.
      
      [1]: https://github.com/odoo/odoo/commit/7de453477d7c23e607a15e0d60613080857e3371
      
      
      
      opw-3475301
      
      closes odoo/odoo#136353
      
      X-original-commit: 70faf9bb
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Signed-off-by: default avatarRobin Lejeune (role) <role@odoo.com>
      4a4d6017
    • Huy Lee's avatar
      [FIX] website: cannot navigate to anchor link · 7ec9c6e7
      Huy Lee authored
      After commit [1], the check that the target url is different from
      the current page's url has been removed thus leading to error that anchor
      link always scroll down to element that have data-anchor enabled.
      
      Steps to reproduce (the easiest way):
      - Install Website Blog
      - Turn on customize comment on post
      - Go incognito then access any blog post, scroll down and click the
      `Sign in to leave a comment` button
      - Holy, the page scrolls down to the discussion section but doesn't go
      to the login page
      
      [1]: https://github.com/odoo/odoo/commit/fb087dbec96f5e533d1fdd9c2b0c2e00296c83de
      
      
      
      closes odoo/odoo#136043
      
      X-original-commit: f5fca171
      Signed-off-by: default avatarBenjamin Vray (bvr) <bvr@odoo.com>
      7ec9c6e7
    • Hussain Hammad's avatar
      [CLA] signature for hussain · 637fe5c7
      Hussain Hammad authored
      
      closes odoo/odoo#136040
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      637fe5c7
  2. Aug 28, 2023
  3. Sep 25, 2023
  4. Sep 24, 2023
  5. Sep 23, 2023
  6. Sep 22, 2023
  7. Sep 21, 2023
Loading