Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
    • Arnaud Joset's avatar
      [MOV] hr_work_entry_contract: move to community. · c6998b3b
      Arnaud Joset authored
      Before this commit, the module dependencies: hr_contract and hr_work_entry were defined in community.
      As they could be integrated with some community applications, like hr_attendance or hr_holidays, it is more coherent to move them to community.
      
      Taskid: 2222790
      c6998b3b
  2. Feb 25, 2021
    • Denis Ledoux's avatar
      [FIX] purchase_stock: `on_time_rate` in multi companies · b5e158c3
      Denis Ledoux authored
      
      Because of the weird behavior of the ORM regarding
      related field pointing to computed fields,
      `on_time_rate` was taking account of all companies
      when asking it through `purchase.order.on_time_rate`
      but it was single-company when asked through `res.partner.on_time_rate`.
      
      It was observed during an upgrade request issue analysis,
      and in that case the problem was not even the fact
      it was miscomputed, but the fact this computed field,
      computed as sudo, leaded to fill the cache for
      `purchase.order.line.move_ids` with `stock.move` belonging
      to other companies than the user one,
      and then when attempting to read values from these stock moves
      a multi-company access error was raised.
      
      upg-8106
      
      closes odoo/odoo#66882
      
      X-original-commit: 1b729171
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      b5e158c3
    • Romeo Fragomeli's avatar
      [FIX] website: o_cp_top_left class doesn't exist on mobile · 965eed79
      Romeo Fragomeli authored
      
      Before this commit, the selector 'o_cp_top_left' was used to target
      a descendent element. The 'o_cp_top_left' class was added in this commit
      odoo/odoo@533db5991a5bb871198485cd71a63f75a8c6becf
      But 'o_cp_top_left' class is only available on desktop.
      On mobile the layout of the control panel is different.
      This produce a bug on Mobile.
      
      After this commit, we use a less restrictive querySelector to match
      the element in mobile too.
      
      Note: we remove the 'div' for clarity/consistency
      
      Steps to reproduce:
      * Open Odoo in "Mobile mode" (small screen)
      * Go to Apps
      * Install a module that need website or website it self
      * You are redirect to the "chose theme" => Bug
      
      closes odoo/odoo#66870
      
      X-original-commit: 3d401a30
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      Signed-off-by: default avatarrfr-odoo <rfr-odoo@users.noreply.github.com>
      965eed79
    • Alexandre Kühn's avatar
      [FIX] mail: this.env.services.bus_service is undefined · 14eed232
      Alexandre Kühn authored
      
      Before this commit, a page reload or a redirect could raise following
      error:
      
      ```
      Uncaught (in promise) TypeError: this.env.services.bus_service is undefined
      ```
      
      This happens due to `Messaging` model relying on `bus_service` in its
      teardown method `_willDelete`. This is sometimes unsafe because the
      bus service may not have been deployed yet.
      
      Task-2468469
      
      closes odoo/odoo#66857
      
      X-original-commit: a444f9c8
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      14eed232
    • alt-odoo's avatar
      [FIX] account: wrong journal in test_match_multi_currencies · f241fc65
      alt-odoo authored
      
      A move with type 'entry' cannot be posted in a 'sales' journal. It should be
      the default 'miscellaneous' journal instead.
      
      closes odoo/odoo#66851
      
      X-original-commit: 1c456859
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Signed-off-by: default avatarAlex Tuyls <alt-odoo@users.noreply.github.com>
      f241fc65
    • 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
  3. Feb 24, 2021
  4. Feb 25, 2021
  5. Feb 24, 2021
  6. 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
  7. Feb 17, 2021
  8. Feb 24, 2021
    • 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
    • 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
    • Katherine Zaoral's avatar
      [ADD] l10n_ar: generic changes to use in QR code · f4cb05e2
      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
      
      NOTE: Fix pylint errors: This ones pop up when running this PR "Check Style'
      in runbot
      
      closes odoo/odoo#65034
      
      Related: odoo/enterprise#15949
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      f4cb05e2
Loading