Skip to content
Snippets Groups Projects
  1. Feb 05, 2021
  2. Feb 25, 2021
  3. Feb 23, 2021
    • Laurent Smet's avatar
      [FIX] account: Fix reversal of exchange diff entry when unlinking the full reconcile · 07d5735d
      Laurent Smet authored
      
      Suppose an invoice of 1200USD = 3600EUR reconciled with a payment 1800USD = 3600EUR.
      
      The generated exchange difference journal entry is:
      600USD = 0EUR because 1800 - 1200 - 600 = 0 and 3600 - 3600 = 0
      => Everything is reconciled and all residual amounts are 0.
      
      Remove the reconciliation. The exchange difference entry is reversed in other to cancel it.
      Because the current exchange difference entry contains a line of 600USD, the reversal is creating a line of -600USD.
      
      Before this commit:
      
      Because both lines were sharing the same foreign currency (EUR) but have an amount_residual_currency of 0, no partial was created and then, a new exchange difference was generated in order to fix the amount_residual of 600 in USD.
      
      After this commit:
      
      A partial is created to handle the residual amount in USD even the residual amount in foreign currency is already zero.
      
      Note: this issue is also there when the reconciliation is made using the company's currency with different foreign currencies.
      In that case, amount_residual is zero but not amount_residual_currency.
      
      closes odoo/odoo#66653
      
      Opw: 2450699
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      07d5735d
  4. Feb 25, 2021
  5. Feb 17, 2021
  6. Feb 24, 2021
  7. Feb 23, 2021
    • Katherine Zaoral's avatar
      [ADD] l10n_ar: generic changes to use in QR code · e87e5a17
      Katherine Zaoral authored
      
      AFIP give us new resolution 4291 that request to print QR code in
      printed version of electronic invoices. For that we:
      
      1) update the xml report footer style
      2) add generic method to sanitze the identification number we are
      sending, the sanitize method is added here in order to be re used for
      other functionalities across electronic invoice and reports. If we are
      not able to sanitize the number then we show an error to the user
      3) update translations to add new raise message translated term
      
      closes odoo/odoo#65033
      
      Related: odoo/enterprise#15948
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      e87e5a17
    • Goffin Simon's avatar
      [FIX] point_of_sale: Multicompany tax · bfc9153e
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Create a multi-company environment with two companies A & B
      - Create two sales taxes TA & TB, one for company A & one for company B
      - Created a shared product P and assign both TA & TB
      - Create a fiscal position FP that maps TA and TB to other taxes
      - Login with user having access of both companies
      - Enable a POS session S with fiscal position and select FP
      - Open S and select P as product
      
      Bug:
      
      A traceback was raised
      
      PS: Only the taxes of company's user are loaded in taxes_by_id
      So when trying to fetch taxes from a product with function get_taxes,
      the taxes from other companies than company's user must be ignored.
      
      opw:2448785
      
      closes odoo/odoo#66717
      
      X-original-commit: 5dcfdcb2
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      bfc9153e
  8. Feb 04, 2021
  9. Feb 23, 2021
  10. Feb 18, 2021
  11. Feb 23, 2021
  12. Feb 22, 2021
  13. Feb 18, 2021
    • nie's avatar
      [FIX] event_crm: prevent access rights issues on leads · 29be9761
      nie authored
      
      Steps:
      - Login as an admin user
      - On a fresh branch install event_crm
      - Give a "test" user access rights of "Own Document only" in the "Sales"
        app, nothing in "Events"
      - Assign any lead to "test" user
      - Login as "test" user and try to access your own leads
      
      Bug:
      Error: While parsing modifiers for button: for modifier "invisible":
      Unknown field registration_count in domain
      
      Explanation:
      The button `event_registration_action_from_lead` tries to access event
      registrations even if the user doesn't have access to events.
      
      opw:2462127
      
      closes odoo/odoo#66425
      
      Signed-off-by: default avatarbackspac <backspac@users.noreply.github.com>
      29be9761
  14. Feb 17, 2021
    • Aaron Bohy's avatar
      [FIX] web: correctly close confirm dialog · 98f9cb4f
      Aaron Bohy authored
      
      Let's assume the following scenario:
       - have an action in target new (e.g. a form view)
       - in the dialog, have an action/object button with confirm
         attribute
       - when clicking on that button, a confirm dialog opens
       - if validated, the following action returned by the server
         is again an action in target new
      
      Before this commit, the confirm dialog remained in the DOM.
      
      This issue occurred because it's parent wasn't correctly set (wrong
      use of `this`), so when the first dialog was destroyed, the confirm
      dialog wasn't automatically destroyed in turn.
      
      OPW~2440712
      
      closes odoo/odoo#66345
      
      X-original-commit: 2016fe31af970976775c9df160a31abfbec742ba
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      98f9cb4f
    • Mohammed Shekha's avatar
      [FIX] web: fix issue of notebook page with invisiblity modifier · e695cb7c
      Mohammed Shekha authored
      
      before this commit: when there is only one page in the notebook tag and
      there is a boolean field in form to show/hide that notebook page based on
      invisibility attrs, if we toggle boolean field notebook hides, that's OK
      but when we toggle boolean field again then notebook page is displayed but
      it is not active and due to that content of notebook page is not displayed.
      
      after this commit: when there is only one page in notebook and it has attrs
      for invisibilty, when we toggle boolean field to hide/show notebook page
      then notebook page as well as content is toggled.
      
      task-2449053
      
      closes odoo/odoo#66338
      
      X-original-commit: a0b5ecd3
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      e695cb7c
Loading