Skip to content
Snippets Groups Projects
  1. Mar 12, 2020
  2. Mar 11, 2020
    • Adrian Torres's avatar
      [FIX] base: don't uninstall already uninstalled modules · cd4b50de
      Adrian Torres authored
      
      Before this commit:
          - Install some random module that can be uninstalled (so not base)
          - Open the uninstall wizard for said module in two different tabs /
              windows / whatever
          - In one tab, confirm the module uninstall and wait for it to be
              done
          - As soon as the other tab is done with the uninstall, go to the
              second one with the uninstall wizard still open, and proceed
              with the second uninstall
          - Boom, the registry crashes and completely fucks up the DB because
              there's no check at all that prevents the uninstall of already
              uninstalled modules.
      
      After this commit:
          - `ir.module.module.button_uninstall` will check if all the
              modules being uninstalled are in the installed state
              and if not a UserError will be raised, preventing a second
              uninstall of the module which could potentially break the DB
      
      Do note that this fix is LOCAL, the problem is however more or less
      global, wherever there's user-actionable buttons that should only be
      pressed once there's a potential for bugs / breakage if a similar fix is
      not implemented locally. Perhaps a more global fix should be implemented
      eventually, but it's generally less annoying for business cases since
      those probably won't break the registry, see task 1859014.
      
      opw-2213679
      opw-2212594
      opw-2206446
      
      closes odoo/odoo#47450
      
      X-original-commit: 8c1bb22e
      Signed-off-by: default avatarAdrian Torres (adt) <adt@odoo.com>
      cd4b50de
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: avoid double unlinking · 29e02270
      Andrea Grazioso (agr-odoo) authored
      
      With l10n_mx installed:
      - Check in the settings that cash basis option is activated, and enabled
      on a Purchase Tax (example : IVA(16%) COMPRAS)
      - Create a vendor bill with this tax, validate it and
      register payment.
      - Create a credit note to this invoice, validate and register payment.
      - Cancel the credit note
      
      Error will occur, a record is already deleted.
      This occur because the canceling action recursively find every related
      move to delete, but in the process an account.full.reconcile is going to
      be unlinked twice: a check on reverse the exchange rate entry will
      trigger the error because the record is already deleted
      
      opw-2199093
      
      closes odoo/odoo#47432
      
      X-original-commit: a230690d
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      29e02270
    • alt-odoo's avatar
      [FIX] purchase_requisition: allow cancellation of SO if no Purchase rights · 141b54bb
      alt-odoo authored
      
      A user with no Purchase rights and only Inventory User rights should be able to cancel an SO
      and access requisition_line_ids field.
      
      closes odoo/odoo#47441
      
      X-original-commit: 9a6af5ea576d7eb451fb3c4fa88880eb9edf78af
      Signed-off-by: default avatarAlex Tuyls <alt-odoo@users.noreply.github.com>
      141b54bb
    • Lucas Lefèvre's avatar
      [FIX] lunch: Cache lunch product images · 35c144c2
      Lucas Lefèvre authored
      
      Images of the lunch dashboard are not cached by the browser.
      
      closes odoo/odoo#47427
      
      X-original-commit: fec2e2a4
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      35c144c2
    • Daniel Blanco's avatar
      [FIX] base: change rounding for CLP (l10n-cl) because decimals are not used in the country. · 82987124
      Daniel Blanco authored
      
      closes odoo/odoo#47420
      
      X-original-commit: 5cc738c9
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      82987124
    • William Henrotin's avatar
      [FIX] stock: remove hover effect on popover · a7551724
      William Henrotin authored
      
      The hover effect on popover is the following: the popup is opened when
      passing the mouse cursor on the icon and closed once it leave the icon.
      The issue is if the popup has a button inside, clicking the button
      freeze the popup. It cannot be closed unless the entire page is
      refreshed
      
      Task : 2199078
      
      closes odoo/odoo#47408
      
      X-original-commit: 25947264929a602256bd7febafa074ef7dabf7bd
      Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
      a7551724
    • jbm-odoo's avatar
      [IMP] tools: rotate PDF · 568b258c
      jbm-odoo authored
      
      Task ID 1251
      
      closes odoo/odoo#45764
      
      Related: odoo/enterprise#8569
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      568b258c
    • jbm-odoo's avatar
      [IMP] sign: Add color option for signature · c4c24308
      jbm-odoo authored
      Blue by default
      
      taskID: 2196770
      c4c24308
  3. Mar 10, 2020
  4. Mar 11, 2020
    • Sébastien Theys's avatar
      [FIX] mail_bot: revert of notification request change · db6a018c
      Sébastien Theys authored
      
      Commit [1] does not work as it is supposed to, because there has been a
      confusion between the "notification request" and the "chat with OdooBot".
      
      `_showOdoobotTimeout` is for the chat, and it is unrelated to the notification
      request. We don't want to initiate multiple chats with OdooBot so that has to be
      reverted.
      
      As for the original goal of the PR about the notification request, it wasn't met
      either because it is the browser controlling it:
      
      - on Firefox there simply isn't a "close" button, and closing it by any other
        means (escape key) is considered as a denied.
      
      - on Chrome, when closing it for the first time, it will appear again
        automatically after the next page reload, so no additional code is required.
        However, if it is closed too many times (around 3) it will become
        automatically denied too, at the browser level.
      
      The only thing to do at that point is to better notify the user that it was
      blocked, without being intrusive, which is the focus of task-2188584.
      
      [1] b7254eca
      
      opw-2186299
      
      closes odoo/odoo#47395
      
      X-original-commit: 50155e80
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      db6a018c
    • Swapnesh Shah's avatar
      [FIX] sale,payment: Encode Payment URL correctly · cf42c2e2
      Swapnesh Shah authored
      
      Before this commit, Payment URL was not encoded correctly which can compute Payment refernece Wrongly on website.
      
      Eg,
        Enter Description which contains Special Characters
        Go to Payment Page using Computed URL.
        There will be wrong Payment Reference on Payment page.
      
      With this commit, We encode Payment reference before generating Payment URL.
      
      closes odoo/odoo#47387
      
      X-original-commit: 6ebcc43d
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      cf42c2e2
    • Xavier Morel's avatar
      [IMP] core: only check for the unaccent function to enable the feature · b6af34d3
      Xavier Morel authored
      
      Before this the `--unaccent` flag does double duty to specify whether
      to create new databases with the extension *and* to try to use the
      corresponding function.
      
      The latter is further gated on the function existing at all in the
      database.
      
      Given postgresql does not have unaccent installed by default it seems
      only the latter is really useful and we can ignore the flag to decide
      whether to enable unaccent features, if the extension is installed
      consider that it should be enabled and move on.
      
      Merge this in master rather than previous versions as it can change
      things like index access / use.
      
      closes odoo/odoo#47377
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      b6af34d3
    • jvm-odoo's avatar
      [FIX] mail: attachments in the message when marking activity as done · 06dee038
      jvm-odoo authored
      
      Fine tuning of 1e411e3a6d
      - It moves the attachment in the message when we mark an activity as
        done.
      - It adds a test
      
      OPW-2196668
      
      closes odoo/odoo#47349
      
      X-original-commit: 2033066426a6af6eed5f80f1bcde6e650e998f0d
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      06dee038
    • Nicolas Martinelli's avatar
      [FIX] point_of_sale: rounding error · 4aa7e101
      Nicolas Martinelli authored
      
      - Set 'Product Unit of Measure' to 5
      - Set the UoM rounding to 0.001
      - Create an excluded tax of 6 %
      - Create a product costing 7.0
      - Open the POS, add the product with a quantity of 0.535
      
      The tax is 0.22 instead of 0.23.
      
      The root cause of the issue is the in JS:
      
      ```
      round_pr(0.535, Math.pow(10,-5)) * 7 = 3.744999999999999
      round_pr(0.535, 0.00001) * 7 = 3.745
      ```
      
      The numerical error impacts the tax computation later on.
      
      As a workaround, we round by the maximum between the UoM rounding and
      the 'Product Unit of Measure', which is what will be done in the backend
      anyway.
      
      opw-2205092
      
      closes odoo/odoo#47372
      
      X-original-commit: 125cdf96
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      4aa7e101
  5. Mar 10, 2020
  6. Mar 11, 2020
  7. Mar 04, 2020
  8. Mar 06, 2020
  9. Mar 10, 2020
  10. Mar 05, 2020
Loading