Skip to content
Snippets Groups Projects
  1. Apr 01, 2020
  2. Apr 02, 2020
    • jvm-odoo's avatar
      [FIX] account: fix report invoice edit with Studio · 9664c698
      jvm-odoo authored
      
      Issue
      
      	- Install Accounting & Studio
      	- Accounting > Open studio
      	- Reports > Invoices
      	- Add a Field Column in the table
      	  and drag it after "Description"
      
      	Some elements are shifted, which
      	causes inconsistency in the table
      
      Cause
      
      	In 924ca780 we added
      	a th "source document" with
      	a td containing the value.
      
      	In bc131c0c we removed
      	the td but not the th.
      
      	Studio adds hook after each th & td.
      	Since there is th but no td, there is an
      	inconsistency in the hooks.
      
      Solution
      
      	Remove the th from the view to avoid having
      	a useless hook.
      
      OPW-2226726
      
      closes odoo/odoo#48798
      
      X-original-commit: 351355c8
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      9664c698
  3. Apr 01, 2020
  4. Mar 26, 2020
    • hpr-odoo's avatar
      [FIX] web: Fix the bug while zoom on image · 5398aca0
      hpr-odoo authored
      
      Currently when zoom slowly from right to left on employee image it
      will not zoom the image.
      
      currently to hide the zoom image we used target.width() and the method width
      gives the width of the selected element (excluding padding, border
      and margin) so due to border excluded it will hide the zooming image.
      Aslo the offsetHeight property returns the viewable height of an
      element in pixels, including padding, border and scrollbar, but not
      the margin.
      
      The reason why the 'viewable' word is specified, is because if the
      element's content is taller than the actual height of the element,
      this property will only return the height that is visible.
      
      so instead of method width we used method outerWidth which gives
      width of the selected element (including padding and border, excluding
      margin).
      
      closes odoo/odoo#46619
      
      Co-authered-by: default avatarMahendra Barad <mba@odoo.com>
      Task: 2199218
      Closes: #46619
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      5398aca0
  5. Apr 01, 2020
  6. Mar 27, 2020
  7. Mar 31, 2020
  8. Apr 01, 2020
    • Adrian Torres's avatar
      [REM] *: remove various unused import shims · 5952928b
      Adrian Torres authored
      
      Before this commit, a lot of leftover import shims existed in the
      codebase for py2-py3 compatibility, these are no longer needed since
      Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL.
      
      With this commit, these shims are dropped, making the code cleaner,
      easier to read and with one less dependency.
      
      Queue -> queue -> py2-py3 compatibility
      xmlrpclib -> xmlrpc.client -> py2-py3 compatibility
      ConfigParser -> configparser -> py2-py3 compatibility
      itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility
      urllib -> urllib.request -> py2-py3 compatibility
      __builtins__ -> builtins -> py2-py3 compatibility
      _winreg -> winreg -> py2-py3 compatibility
      
      mock -> unittest.mock -> merged into CPython
      
      The debian/fedora packages and requirements.txt have been updated accordingly
      
      closes odoo/odoo#44601
      
      Related: odoo/enterprise#8141
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      5952928b
    • Mitali Patel's avatar
      [IMP] base: allow restricting / removing exports right · c248594e
      Mitali Patel authored
      
      Add a new group allowing administrators to remove the ability for
      users to bulk-export data from the database. It's pretty minor as
      technically the user can still access the underlying object through
      the basic methods but it's still a bit of a roadblock.
      
      Users can export by default.
      
      Task 2170900
      
      closes odoo/odoo#45400
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      c248594e
    • lbs-odoo's avatar
      [IMP] sale_expense : add condition on expense_policy display · 27111298
      lbs-odoo authored
      
      The 'Re-Invoice Expenses' (expense_policy) can be visible only if 'Can be Expensed' is true.
      
      TASK#2169344
      
      closes odoo/odoo#48525
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      27111298
    • william's avatar
      [IMP] account: rename reversed_entry_id to Reversal of · 23f3d07f
      william authored
      
       The moves that have this field set are the reversal of the value of
       that field. Not the other way around.
      
      closes odoo/odoo#48667
      
      Related: odoo/enterprise#3334
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      23f3d07f
  9. Mar 31, 2020
    • Rémy Baranx (bar)'s avatar
      [IMP] sale_management: remove price_unit from quotation template · 840c18d2
      Rémy Baranx (bar) authored
      
      Purpose
      =======
      
      Having price and discount on quotation template is quite confusing
      as it is more the job of pricelists.
      In order to make it more simple for the user, we should remove the
      fields price_unit and discount from quotation template.
      
      Implementation
      ========
      
      Now, the public price of a product is used instead of the price from
      the quotation template. If a pricelist exists, it is taken into
      account as before.
      
      + Add new tests to check the sale order template behavior.
      
      closes odoo/odoo#47186
      
      Taskid: 47186
      Related: odoo/upgrade#972
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      840c18d2
  10. Apr 01, 2020
    • dmonzonis's avatar
      [IMP] website_event_track: retrieve sponsor website from partner · 532c2b44
      dmonzonis authored
      
      The Sponsor Website field in event sponsors is now automatically computed from the selected
      partner's data, but the field can still be changed afterwards in case
      the partner wants to specify a different website url for its sponsoring.
      
      closes odoo/odoo#48217
      
      Task: 2205443
      Related: odoo/upgrade#981
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      532c2b44
    • dmonzonis's avatar
      [IMP] website_event_track: allow archiving of event sponsors · e84bd187
      dmonzonis authored
      Before this commit, event sponsors could not be archived, only deleted.
      Now, users are able to archive event sponsors if they want to set them
      as inactive but do not wish to delete them from the database.
      
      A filter was also added in the Event Sponsor view to quickly retrieve
      archived records. Also, archived sponsors will show an "Archived" ribbon
      in their form view.
      
      Task: 2205443
      e84bd187
    • Toufik Ben Jaa's avatar
      [FIX] sql_db: flush when no `uid` in environment · 707522cb
      Toufik Ben Jaa authored
      - A bug has been introduced by the PR https://github.com/odoo/odoo/pull/46719
      
      
        This issue prevented flushes to database when no `uid` is set in the
        current environment.
        This happens when database changes are made in `auth="none"` routes.
        In a MonoDB setup this was working because Odoo consider `None`, `False` as
        `null` and was always bound to a database.
      
        Nothing prevents to write `null` in the columns `create_uid` and
        `write_uid` in database.
        The PR that introduced the bug wanted to block the cases where
        `uid` is an instance of the class `RequestUID` to avoid `Cannot adapt
        type` errors.
        So testing that `uid` is an integer isn't enough.
      
        Two fixes were possible here, either check if `uid` is an instance
        of the class `RequestUID` or if it is either an integer, `False` or `None`.
      
        To avoid noise and imports from `odoo`, we test that `uid` is an instance
        of `None`.
        The case where it is `False` is already tested in the python code:
      
        ```python
      	isinstance(env.uid, int)
        ```
      
      (manual) forward-port of odoo/odoo#48685
      
      closes odoo/odoo#48693
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      707522cb
    • Olivier Dony's avatar
      [FIX] mail: mute default password warning on demo databases · d05c8136
      Olivier Dony authored
      
      The point is to warn admins of production and public-facing databases.
      However it is not necessary to nag users of demo databases, even when
      connecting non-locally (e.g. on runbot).
      
      Updates #37580
      
      (manual) forward-port of #48689
      
      closes odoo/odoo#48691
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      d05c8136
  11. Mar 31, 2020
    • Dhruv Patel's avatar
      [IMP] web: graph: drill down to records in bar/pie charts · ae610d0e
      Dhruv Patel authored
      
      After this commit, in the graph view, when the user clicks on parts
      of the bar and pie charts, it opens the list view of the concerned
      records (like what was already done in the pivot view).
      
      This is the default behavior, but it can be deactivated by setting
      the attribute 'disable_linking' to true in the view.
      
      Task 2198461
      
      closes odoo/odoo#47796
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Co-authored-by: default avatarAaron Bohy <aab@odoo.com>
      ae610d0e
    • Benjamin Vray's avatar
      [IMP] website: add a shadow option on the header · 2516c0a2
      Benjamin Vray authored
      Part of https://github.com/odoo/odoo/pull/38950
      
      
      task-2087641
      
      closes odoo/odoo#38950
      
      Related: odoo/design-themes#183
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      2516c0a2
    • Benjamin Vray's avatar
      [IMP] website: add an option for hoverable dropdowns on header · 135fccdc
      Benjamin Vray authored
      Add an option to open dropdown menus on hover instead of click.
      
      Part of https://github.com/odoo/odoo/pull/38950
      task-2087641
      135fccdc
    • Benjamin Vray's avatar
      [IMP] website, *: add and review header visibility options · 3defe35a
      Benjamin Vray authored
      *: portal
      
      Adding a choice of several header behaviors (fixed, fade out with
      scroll, etc.). Review the way those animations works in mobile/desktop
      and now perform them without duplicating the header DOM element.
      
      Also allow to hide of adapt the size of the logo when the page is
      scrolled.
      
      Part of https://github.com/odoo/odoo/pull/38950
      
      
      task-2087641
      
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      3defe35a
    • Benjamin Vray's avatar
      [IMP] website: add templates for footer · 5ba817c4
      Benjamin Vray authored
      Also remove all t-fields from footers to have only static contents in
      footers. For social links, a controller is added so that a "static url"
      /website/social/xxx always redirect to the correct set URL for the given
      xxx social network.
      
      Part of https://github.com/odoo/odoo/pull/38950
      
      
      task-2087641
      
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      5ba817c4
    • Benjamin Vray's avatar
      [IMP] website, *: add templates for header · cb204350
      Benjamin Vray authored
      *: portal
      
      Part of https://github.com/odoo/odoo/pull/38950
      
      
      task-2087641
      
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      cb204350
    • Benjamin Vray's avatar
      [IMP] website: dissociate the name of the website · 38444561
      Benjamin Vray authored
      The name of the site displayed on the website is now dissociated from
      the technical name of the website.
      
      Part of https://github.com/odoo/odoo/pull/38950
      task-2087641
      38444561
    • Benjamin Vray's avatar
      [IMP] website, *: split the customize method into 3 different methods · e912823c
      Benjamin Vray authored
      * theme_bootswatch, web_editor
      
      Split the customizeWebsite method into 3 different methods so we can
      use customizeWebsite for variable, views or color on the same widget.
      
      Part of https://github.com/odoo/odoo/pull/38950
      task-2087641
      e912823c
    • Jeremy Kersten's avatar
      [IMP] website: test_crawl dont follow external link · 90c0f1e9
      Jeremy Kersten authored
      In case a controller with a relative url return an absolute link
      the current crawler follow the redirect and all external link of this
      external url too.
      
      Now we don't follow redirection if it is on an other netloc that the
      current one.
      
      Part of https://github.com/odoo/odoo/pull/38950
      task-2087641
      90c0f1e9
    • Odoo's Mergebot's avatar
      [MERGE] calendar,web: update to FullCalendar v4 & fixes · 372124f9
      Odoo's Mergebot authored
      
      This merge updates the FullCalendar library from v3 to v4.
      
      The purpose of this update for us is to add proper support of the
      drag-and-drop of events on mobile.
      
      But also to fix scrolling issues present mainly on smaller screens. In
      those configurations multi/inner-scrolls were present resulting in
      either the inability to properly scroll the desired content or even
      blocking altogether the scroll.
      
      As a nice-to-have feature, version 4 removes its dependency on the
      jQuery library, allowing faster loading of a bigger set of events.
      
      Last but not least, this version also reduces its dependency on the
      Moment.js library (but still keeps a binding to it for compatibility
      purpose).
      
      In addition to the update of the library itself, this merge adapts the codebase
      to the library's API changes and extracts some methods and templates to allow
      further customization of the calendar view.
      
      Finally, a couple of fixes are also applied :
      * time-based instead of ID-based order of events in month view
      * unwanted transformation of time-based events into all-day events in month view
      
      Task ID: 2092550
      
      closes odoo/odoo#48630
      
      Related: odoo/enterprise#9554
      Signed-off-by: default avatarPierre Paridans <pparidans@users.noreply.github.com>
      372124f9
    • william's avatar
      [IMP] l10n_*: add demo company · d2851b20
      william authored
      
      Task 2198388
      
      When testing and demoing localization, it can but cumbersome to create a
      Company with the right credentials and install the chart of account on
      it.
      This commit aims to shorten the process. The first version only contains
      a valid vat (or similar) number, but we should add fields specific to
      localization in the future so that we have a working environment as soon
      as we install the localization.
      change manifest
      
      closes odoo/odoo#48102
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      d2851b20
    • Odoo's Mergebot's avatar
      [IMP] survey: improve sessions usability and design · b6e2bb65
      Odoo's Mergebot authored
      
      PURPOSE
      
      Improve the various sessions flow to make it easier for attendees to reach the
      session and to allow better interactions between the host and his audience.
      
      This comes with small usability improvements as well as increased
      "beautifulness" by using custom layouts & animations.
      
      SPECS
      
      General specifications, see sub-commits for details.
      
      - Currently, the "short link" feature is good but it still needs to be improved
        with the following points:
          - Make the default "code" shorter (4) and digit only.
          - Allow to customize the "code"
          - Check for potential collisions
      - When attendees reach the survey through the code, they need to land on the
        "waiting screen" even if the session is not started yet. This will allow the
        host to show the survey link even if he forgets to click on "start session"
        first.
      - Reduce the fade out / fade in delay when moving from one question to another.
        It's currently 2 seconds, change it to 1 second.
        Right now the delay gives a "slowness" impression.
      - Display matrix choices on the host screen.
        It will allow attendees that are not participating to have more context.
      - Add python test/tours to test the survey session flow from the host point of view
      - Improve survey form navigation (moved buttons, added keyboard navigation)
      - Auto submit questions and matrix with simple choice
      
      DESIGN TWEAKS
      
      Slightly improve the survey form by adding a few cosmetic changes,
      notably:
      
      - Add/reduce some margins/paddings
      - Adjust colors/font-weight
      - Adjust heights
      - Change some icons by more fitting replacements
      - Center matrix choices
      - Move survey progression to bottom-right
      - Remove ugly jumbotrons
      - Hide survey title in page_per_question layout
      - When there are 5 or less option for simple_choice or multiple_choice
        questions, display the options vertically.
      - Only show the textarea for the "comment answer" if the user clicks on the
        related option.
      
      LINKS
      
      Upgrade PR odoo/upgrade#897
      Task 2208574
      
      closes odoo/odoo#46768
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b6e2bb65
    • David Beguin's avatar
      [IMP] survey: auto submit for questions and matrix with simple choice · 280c6bf1
      David Beguin authored
      Purpose
      =======
      
      Speed up survey completion.
      
      Specifications
      ==============
      
      This commit apply an auto commit when user select a choice on a simple choice
      question or on a matrix question with simple choice.
      
      The auto commit happens following those conditions:
      - Only on simple choice and matrix with simple choice questions
      - For matrix, only when last subquestion is answered
      - Only when Back mode is active
      - If this is not the last question
      
      Link
      ====
      
      PR #46768
      Task 2208574
      280c6bf1
    • Aurélien Warnon's avatar
      [IMP] survey: improve survey form navigation · 176e5a50
      Aurélien Warnon authored
      This commit slightly changes the way users navigate through the survey form:
      - The back button was moved to the bottom-right of the screen.
      - The "Continue" button stays at the center but there is also a "next" button
        at the bottom-right of the screen (same behavior -> submits the form)
      - Arrow keys (left + right) navigation is now supported
      
      Technical note: As the survey navigation is now outside of the survey content,
      that was re-rendered on every submit, we have to manually refresh the
      navigation with a second template render on the controller side.
      
      LINKS
      
      PR #46768
      Task 2208574
      176e5a50
    • Aurélien Warnon's avatar
      [IMP] survey: apply small survey form design changes · 695294b9
      Aurélien Warnon authored
      This commit slightly improves the survey form by adding a few cosmetic changes,
      notably:
      
      - Add/reduce some margins/paddings
      - Adjust colors/font-weight
      - Adjust heights
      - Change some icons by more fitting replacements
      - Center matrix choices
      - Move survey progression to bottom-right
      - Remove ugly jumbotrons
      - Hide survey title in page_per_question layout
      - When there are 5 or less option for simple_choice or multiple_choice
        questions, display the options vertically.
      - Only show the textarea for the "comment answer" if the user clicks on the
        related option.
      
      One of the biggest design change is the introduction of a "minimized layout"
      that reduces the width of some question types on bigger screen.
      This gives a cleaner look to the survey form.
      Impacted question types:
      - Numeric
      - Date
      - Datetime
      - Simple / Multiple choices
      
      Technical note: As the survey progression is now outside of the survey content,
      that was re-rendered on every submit, we have to manually refresh the
      progression with a second template render on the controller side.
      
      Small fix addition:
      We also fix the matrix key selection feature in case the matrix had a total of
      more than 25 options, which would raise an error.
      Indeed, they "use key selection" condition only checked the number of rows,
      and not the rows * columns (total number of options count).
      
      LINKS
      
      PR #46768
      Task 2208574
      695294b9
    • Romeo Fragomeli's avatar
      [FIX] web: avoid to set allDay when the duration of a event is 24H * n · dc43b005
      Romeo Fragomeli authored
      Before this commit, when the duration of an event is "24H * n". The event
      is set as allDay. This is strange to have a event that start a 8H and end
      at 8H of next days and the event is in the allDay slot.
      
      After this commit, we don't change the allDay flag anymore.
      
      Steps to reproduce:
      * Open calendar in week view
      * Create a event from 8 -> 16
      * Then resize the end of this event from 16 -> 8 of the next day (BUG)
      
      Task ID: 2183249
      dc43b005
Loading