Skip to content
Snippets Groups Projects
  1. Feb 25, 2021
    • 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
    • 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
    • Adrien Widart's avatar
      [FIX] account: register attachment only if it exists · 0f202b22
      Adrien Widart authored
      
      When printing an invoice, the server tries to register one attachment as
      main one (see #65320). However, if there is not any attachment, this
      will raise an error.
      
      OPW-2465995
      
      closes odoo/odoo#66755
      
      X-original-commit: 03d2e457
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      0f202b22
  8. Feb 23, 2021
    • xO-Tx's avatar
      [IMP] web_editor: enable click on style tab · 42b630bd
      xO-Tx authored
      
      The goal of this commit is to enable the click on Style tab
      in "Edit mode".
      The click on this tab with no block selected will display a
      message to inform the user that he has to select a block
      before editing.
      
      task-2443297
      
      closes odoo/odoo#65573
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      42b630bd
    • Goffin Simon's avatar
      [FIX] mrp: Existing operations cannot be added to BOM · 2ad6f4e1
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Go to an existing BOM B
      - Edit B and try to add an existing operation O in operations tab
      
      Bug:
      
      It was impossible to add an existing operation
      
      opw:2458974
      
      closes odoo/odoo#66712
      
      X-original-commit: ffab43fbf54b2f914b34c18da2391f3a18b3326c
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      2ad6f4e1
    • tivisse's avatar
      [FIX] hr_holidays: Can not approve or validate time off · 1e84002b
      tivisse authored
      
      A leave manager should be able to approve a time off that already begun.
      
      opw:2447240
      
      closes odoo/odoo#66711
      
      X-original-commit: 2030ebe1
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      Co-authored-by: default avatarsimongoffin <sig@odoo.com>
      1e84002b
    • Goffin Simon's avatar
      [FIX] project: Creating project via service product deletes contact's data · 0cf682ca
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a customer C1 with email address A1 and phone P1
      - Let's consider a project PR with C1 as customer
      - Let's consider a service product P with:
         - Milestones (manually set quantities on order) as Service Invoicing Policy
         - Create a new project but no task as service tracking
         - PR as project template
      - Create a sale order SO with C2 as customer with A2 as email address and P2 as phone
      - Confirm the SO
      
       Bug:
      
       The email address and phone of C2 were changed into A1 and P1 instead of keeping A2 and P2
      
       opw:2439459
      
      closes odoo/odoo#66709
      
      X-original-commit: 1c23eba5ab4dc4108ef6209ebc529ab363c3cc6b
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      0cf682ca
    • qsm-odoo's avatar
      [FIX] website_mass_mailing: correctly load newsletter snippet · 1333e9bf
      qsm-odoo authored
      Since [1], the `website_mass_mailing` module would not auto install
      itself if the `mass_mailing` module would be installed since a new
      dependency was added: `google_recaptcha`.
      
      [1]: https://github.com/odoo/odoo/commit/d4984b81e6b244297e192f2be2768ed11da170aa
      
      
      
      task-2455069
      
      closes odoo/odoo#66727
      
      X-original-commit: 2db46129f3749435f2dbff904a5b73168526480a
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarRomain Derie <rde@odoo.com>
      1333e9bf
    • Olivier Dony's avatar
      [IMP] website_event_exhibitor: speed up sponsors retrieval · 3b383f41
      Olivier Dony authored
      
      The filters for sponsor countries works by adding a domain term on
      `partner_id.country_id`. Currently this is evaluated by the ORM by first
      searching for all partners in those countries, and then substituting the
      IDs in the final query (`partner_id in <ids>`).
      
      On large databases with many partners, this makes the filtering really
      slow (e.g. 3 seconds with 1M partners), even though only a few sponsors
      actually match.
      
      From a security standpoint, most of the data on the linked partner is
      already available on the sponsor through related fields, and those
      partners are only visible when they are already published anyway.
      Besides, the calls in `_event_exhibitors_get_values` are performed
      in `sudo` mode.
      
      It should be noted that `res.partner.country_id` is not currently
      indexed, and doing so helps marginally: the query goes from 3000ms to
      800ms. It is still much slower than with `auto_join`, which makes it
      go down to about 1-2 ms on the same dataset.
      
      Indexing `country_id` does not help make the `auto_join` version faster,
      as it only requires the primary key index to find the records.
      
      closes odoo/odoo#66692
      
      X-original-commit: b5246315875dfad151fcb23936499750e0f1f42a
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      3b383f41
Loading