Skip to content
Snippets Groups Projects
  1. Feb 25, 2021
    • alt-odoo's avatar
      [FIX] account: wrong sequence number reset for refund type moves · ecd94d69
      alt-odoo authored
      In case a yearly sequence is set for out_invoice/in_invoice types and if we set
      a monthly sequence on the corresponding out_refund/in_refund type, we will not be
      able to validate the refund the next month as it will be wrongly identified as a
      yearly sequence. We should include the move type when retrieving the last
      sequence name instead.
      
      X-original-commit: 612f453a
      ecd94d69
    • Laurent Smet's avatar
      [FIX] account: Fix analytic lines when reconciling a statement line · bbc6ed03
      Laurent Smet authored
      
      When reconciling a statement line from the bank reconciliation widget, the journal entry of the statement line is already posted and then, the analytic lines was never created.
      This commit fixes the issue by refreshing the analytic lines at the end of the statement line's reconciliation.
      
      closes odoo/odoo#66850
      
      Opw: 2466236
      X-original-commit: 2c38dc6e
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      bbc6ed03
    • Romeo Fragomeli's avatar
      [FIX] web: TouchEvent doesn't exist in FireFox and Safari · 2cf7c7f3
      Romeo Fragomeli authored
      
      Since commit odoo/odoo@c96e3b96f307685d03d240fac81fb0e83ca85f1d
      the TouchEvent constructor was added to the test utils.
      
      In FireFox (no touch mode) and Safari (desktop) this constructor
      doesn't exist and so the test suite won't start anymore.
      
      This commit, inserts TouchEvent constructor only when it's supported by
      the browser. So now we can run the tests in FireFox and Safari again.
      
      closes odoo/odoo#66846
      
      X-original-commit: 296fd86ddf90cff8d5b8f095d0c51b1c5a8b59ca
      Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
      Signed-off-by: default avatarrfr-odoo <rfr-odoo@users.noreply.github.com>
      2cf7c7f3
    • Jorge Pinna Puissant's avatar
      [FIX] l10n_ar: error when opening products on e-commerce · 28560f2c
      Jorge Pinna Puissant authored
      
      - install e-commerce and l10n_ar;
      - as a Public user open a product on the shop.
      
      Before this commit, an 403 error was raised.
      
      Now, the public user can navigate through the products.
      
      opw-2462477
      
      closes odoo/odoo#66839
      
      X-original-commit: 9a047c6a
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      28560f2c
    • Ipsita Borisagar's avatar
      [FIX] mail: fix alignement for chatter in window · ab82de70
      Ipsita Borisagar authored
      Before this commit:
      
      For chatter in window, the name of the record is not in an appropriate place in
      header as there is an empty space before name.
      
      After this commit:
      
      The name of the record is aligned to the left, and there is no empty space
      before the name.
      
      LINKS
      
      Task- 2442652
      PR https://github.com/odoo/odoo/pull/65600
      
      
      
      closes odoo/odoo#66838
      
      X-original-commit: 699672a0
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      ab82de70
    • Yannick Tivisse's avatar
      [FIX] hr_contract: Include archived employees on _get_all_contracts · b74dcb97
      Yannick Tivisse authored
      
      Purpose
      =======
      
      When we want to retrieve all the contract (running for instance), we
      don't care about the fact that the employee is archived or not.
      
      For example when we generate the work entries to generate the payslips,
      we actually pay the employee, even if he's archived (which is the
      normal flow).
      
      closes odoo/odoo#66836
      
      X-original-commit: 262bf8598f9d885382c05e523543019767b521bf
      Related: odoo/enterprise#16677
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      b74dcb97
    • Alexandre Kühn's avatar
      [FIX] mail: messaging start when bus service is deployed · db1447d4
      Alexandre Kühn authored
      
      Before this commit, messaging.start() may crash due to bus service
      not yet deployed.
      
      This commit fixes the issue by ensuring `start()` is always called
      when the bus service is deployed. To do so, we introduce a new
      service (Messaging) that simply waits for bus service deployment
      before invoking messaging start.
      
      Task-2468483
      
      closes odoo/odoo#66828
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      db1447d4
    • Laurent Smet's avatar
      [FIX] account: Fix reversal of exchange diff entry when unlinking the full reconcile · 89d52375
      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#66825
      
      Opw: 2450699
      X-original-commit: 07d5735d
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      89d52375
    • Prakash Prajapati's avatar
      [FIX] web: Fix scroll issue in full calendar · 4eb549cc
      Prakash Prajapati authored
      
      Currently, When we load the Year view of the calendar then
      the view is not properly scrolled top due to padding at the
      top.
      Calendar is scrolled to the current month but due to top
      padding in year view it was not scrolled top when initially it
      was loaded.
      
      So in this commit, remove the top padding and use padding on month
      so it will not have initial scroll when scroll to the particular month.
      
      Set default calendar view to 'month'.
      
      closes odoo/odoo#66811
      
      Taskid: 2428655
      X-original-commit: adbade3c1a000c476644e616d66af5cb982249cf
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      4eb549cc
  2. Feb 24, 2021
  3. Feb 25, 2021
  4. Feb 24, 2021
  5. Jan 21, 2021
    • Nisha patel's avatar
      [IMP] hr_holidays: Improve Time Off activity summary · 7e0ff027
      Nisha patel authored
      
      Currently, Dates displaying on activities of Time Off application are
      not easy to read for users and We already have dates on the form with
      the right user format. So we don't need it again on the chatter
      
      So in this commit, we improve the activity summary message by
      removing the dates from summary of activity.
      
      closes odoo/odoo#60610
      
      Taskid: 2339411
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      7e0ff027
  6. Feb 17, 2021
  7. Feb 24, 2021
    • Christophe Monniez's avatar
      [FIX] tests: test support for modules without `__init__.py` · db6a1308
      Christophe Monniez authored
      
      Now that a test exists to enforce `__init__.py` in odoo module, we must
      ensure that we keep the feature.
      
      For that reason, a white-list system is added in `test_dunderinit` and a
      test is added in order to be sure that a module without `__init__.py` can
      be exists.
      
      This this is made of a fake module `test_data_module` without
       `__init__.py` and a test module which ensure the fake module was
      installed.
      
      closes odoo/odoo#66778
      
      X-original-commit: 506755ef
      Related: odoo/enterprise#16653
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      db6a1308
    • Christophe Monniez's avatar
      [FIX] packaging: add missing __init__py files · d1bd6acc
      Christophe Monniez authored
      Odoo modules without `__init__.py` are not recognized as python modules
      and therefore not packaged by standard tools.
      
      X-original-commit: 45e14adb
      d1bd6acc
    • Christophe Monniez's avatar
      [FIX] tests: add a linter to check for __init__.py in modules · 852aa5ae
      Christophe Monniez authored
      When a module is added, it happens that the `__init__.py` file is
      forgotten. In that case, those modules are not packaged.
      
      With this commit, a test is added to check that each Odoo module has the
      file.
      
      X-original-commit: edabed7b
      852aa5ae
    • Christophe Monniez's avatar
      [FIX] packaging: include json files · c4069b90
      Christophe Monniez authored
      
      Some json files are necessary for some modules but are not included in
      packaging.
      
      closes odoo/odoo#66779
      
      X-original-commit: d33c05b6
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      c4069b90
    • Géry Debongnie's avatar
      [FIX] web: add correct information in clipboard button (error dialog) · f4250d3d
      Géry Debongnie authored
      
      Before this commit, the way we managed the clipboard button in an error
      dialog was the following:
      
      1. crashmanager create an error dialog and give it the error information
      2. error dialog does some processing to format error traceback and
      display it
      3. crashmanager wait for it to be ready, then will manipulate the dom to
      add the clipboard button, by using the information it knows (NOT the
      processed information bye the dialot)
      
      This is obviously a mistake, so what we simply do in this commit is add
      the clipboard button in the error dialog, so it has updated information.
      
      Note that we also fix two other small issues:
      
      - errors coming from promise crashes (unhandled rejections) were not
      decorated with correct file information
      - chrome traceback was not correct because it has some native
      information that does not correspond to a stackframe
      
      closes odoo/odoo#66660
      
      Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
      f4250d3d
Loading