Skip to content
Snippets Groups Projects
  1. Oct 07, 2018
  2. Oct 05, 2018
  3. Oct 04, 2018
    • Nicolas Lempereur's avatar
      [FIX] auth_password_policy: remove deferred when not needed · 23bec7fb
      Nicolas Lempereur authored
      When auth_password_policy is installed, and a field with
      `password="True"` is in a res.config.settings (eg. google calendar is
      installed) we could have an error caused by deferred not expected in the
      res.config.settings _render.
      
      Since the RPC is only needed when the password_policy has been been
      defined, this commit do this removing the error that currently happened.
      
      A customization of res.config.settings adding password_meter would still
      break settings (but it is currently not done) and will be solved in a
      future fix.
      closes #27426
      23bec7fb
  4. Oct 03, 2018
  5. Oct 02, 2018
    • Mathieu Duckerts-Antoine's avatar
      5141f42d
    • Xavier Morel's avatar
      [REM] various: useless passwords on test users · c9a5dc9d
      Xavier Morel authored
      These blow up rather dramatically if the corresponding modules are
      installed after auth_password_policy.
      c9a5dc9d
    • Xavier Morel's avatar
      [FIX] web: user's change_password wizard · 8fb358e5
      Xavier Morel authored
      Auth can now report errors less trivial than "incorrect password", the
      wizard should report them instead of just assuming the original
      password was not correct.
      8fb358e5
    • Xavier Morel's avatar
      [ADD] auth_password_policy{_signup}: password strength widgets · a47f6093
      Xavier Morel authored
      * generic strenght meter widget which can be included in various
        places
      * password field, taking over the isPassword special cases strewn
        throughout the codebase, this should probably become an actual thing
        in core /cc @ged-odoo, the meter is opt-in as most uses of
        `field[@password=True]` are passwords & secrets for third-party
        services or external servers for which a meter would not make sense
      * separate override of the ChangePassword wizard which isn't a regular
        view for some reason
      * direct implementation for signup pages (create user & reset password)
      
      Skip/comment/remove existing testing of @password fields: the policy
      replacement/augmentation needs to make an RPC call and does not
      support readonly use (because it doesn't seem to be used anywhere so
      that made sense?); and there currently is no way to augment or
      override/replace existing tests, so the tests will either fail when
      auth_password_policy is installed (current situation) or fail when
      auth_password_policy is not installed (if updated to be compatible
      with APP).
      a47f6093
    • Xavier Morel's avatar
      [ADD] auth_password_policy · efb516e0
      Xavier Morel authored
      Hard-checks password length according to configured rule (default: at
      least 8 characters).
      
      Closes #22351
      efb516e0
    • Alexandre Kühn's avatar
    • Alexandre Kühn's avatar
      [FIX] bus: do not receive all longpolling notifs after disconnect · 221f4690
      Alexandre Kühn authored
      Revision on bus refactoring: https://github.com/odoo/odoo/commit/6448420c5dd160470e465dee7729d19d8d5e7bab
      
      Before this commit, when a user was disconnected for a very long
      time, he would receive lots of chat notifications on his next login.
      
      Here is an example of weird behaviour with this issue:
      
          - User folds and unfolds a chat window 50 times
          - User disconnects for more than 50 seconds
          - User reconnects
          ==> the chat window rapidly folds and unfolds itself 50 times!
      
      This issue comes from the fact that after 50 seconds without any
      longpolling, the web client ignores the last tracked notification
      and sents the ID `-1` to the server.
      
      The web client always provides a notification ID to the server
      on a `longpolling/poll`. Usually, the server returns all
      notifications of the user with an ID greater than the provided ID.
      There is an exception with ID `0`, in which all notifications since
      the last connection of the user are returned.
      
      The cause of the issue is a mismatch of the special notification
      ID between the server and the web client. For the web client, the
      ID `-1` is used for not tracking any notification, whereas the
      server uses the ID `0` for this case. As a result, when the server
      receives the value `-1`, it returns all notifications having an ID
      greater than `-1`. In other words, it returns all notifications
      related to this user, even the ones received long time ago!
      
      This commit fixes the issue by enforcing the special notification ID
      `0` on both the webclient and server.
      
      Note that this logic is similar to 11.0:
      
         - The webclient uses the ID `-1` most of the time to define 'untracked':
         https://github.com/odoo/odoo/blob/11.0/addons/bus/static/src/js/bus.js#L154
      
         - However, it passes the ID `0` to the server:
         https://github.com/odoo/odoo/blob/11.0/addons/bus/static/src/js/bus.js#L193
      221f4690
    • Alexandre Kühn's avatar
      [ADD] web:tests: user menu basic tests · 4e2dffad
      Alexandre Kühn authored
      4e2dffad
    • Alexandre Kühn's avatar
      [FIX] web: no shortcut for app menu · 09cbe3e3
      Alexandre Kühn authored
      This menu mistakenly tells that there is a keyboard
      shortcut to navigate in the app menu.
      09cbe3e3
    • Alexandre Kühn's avatar
      Revert "[FIX] web: 'Shortcuts' in user menu (community)" · ef15d1ce
      Alexandre Kühn authored
      This reverts commit 05971d00.
      
      This menu makes sense in community, therefore we re-enable this
      menu.
      ef15d1ce
    • qsm-odoo's avatar
      [FIX] web, *: remove useless mixin · 39fb86a3
      qsm-odoo authored
      * mail
      39fb86a3
    • Thibault Delavallée's avatar
      [MERGE][IMP] various: add activity view on main models using activities · 7b84d548
      Thibault Delavallée authored
      Purpose of this merge is to add activity view on main actions of models
      inheriting from the activity mixin. Purpose is to help using activities
      by having access to the summary activity views.
      
      This merge is related to task ID 1889413 and closes PR #27381.
      7b84d548
    • Thibault Delavallée's avatar
      [IMP] survey: add activity view on main actions · 9337a0a0
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated :
      
        * survey main menu action;
      
      This commit is linked to task ID 1889413.
      9337a0a0
    • Thibault Delavallée's avatar
      [IMP] purchase: add activity view on main partner actions · 4d1bcca3
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * purchase and RFQ main actions;
        * specific product actions defined for some menu actions in purchase;
      
      This commit is linked to task ID 1889413.
      4d1bcca3
    • Thibault Delavallée's avatar
      [IMP] project: add activity view on main actions · a736143f
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated :
      
        * project all tasks main menu action as tasks coming from project already
          had the view;
      
      This commit is linked to task ID 1889413.
      a736143f
    • Thibault Delavallée's avatar
      [IMP] point_of_sale: add activity view on main actions · 14f4ba5f
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated :
      
        * point_of_sale main menu action;
      
      This commit is linked to task ID 1889413.
      14f4ba5f
    • Thibault Delavallée's avatar
      [IMP] hr_{attendance,recruitment,holidays,expense,contract}: add activity view on main actions · 6d11097a
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * employee main menu actions;
        * leave and allocation request main menu actions;
        * applicant main menu actions;
        * expense and expense report main menu actions;
        * contract main menu action;
        * attendance employee main action;
      
      Following @est-odoo advice the Next Activities menu entry in hr_recruitment
      is removed as there are already a lot of ways of managing activities: using
      the systray, using activity view present on most actions, ...
      
      This commit is linked to task ID 1889413.
      6d11097a
    • Thibault Delavallée's avatar
      [IMP] fleet: add activity view on main actions · 29cf987d
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated :
      
        * fleet vehicle and contract main menu actions;
      
      Some menu entries are also renamed to ensure coherence in all menu entries
      that all use vehicles, with an 's'.
      
      This commit is linked to task ID 1889413.
      29cf987d
    • Thibault Delavallée's avatar
      [IMP] crm, sale, sale_crm, website_sale: add activity view on main actions · 2d03eb42
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * CRM and Sale/CRM main menus: pipeline, leads, quotations;
        * Sales main menus: quotations, orders, to invoice/to upsell, products;
        * Website Sale: quotations, orders, to invoice, abandoned;
      
      This commit is linked to task ID 1889413.
      2d03eb42
    • Thibault Delavallée's avatar
      [IMP] account: add activity view on main actions · 74348d8f
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * main invoice menu actions;
        * product actions specific to account related to main menu action;
      
      This commit is linked to task ID 1889413.
      74348d8f
    • Thibault Delavallée's avatar
      [IMP] product: add activity view on main actions · e3a2bfc8
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * product variant main menu action;
        * product main actions used in various apps;
      
      This commit is linked to task ID 1889413.
      e3a2bfc8
    • Thibault Delavallée's avatar
      [IMP] note: add activity view on main actions · 0c452d51
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated :
      
        * note main menu action
      
      This commit is linked to task ID 1889413.
      0c452d51
    • Thibault Delavallée's avatar
      [IMP] mail, membership: add activity view on main partner actions · c75fa91a
      Thibault Delavallée authored
      Purpose is to extend the use of the newly-introduced activity view allowing
      to see at a glance activities to perform on a given model. It eases daily
      job of people working with activities.
      
      Updated
      
        * main partner menu action (Customers);
        * membership partner main menu action;
        * customers / vendors main menu action used in various other apps;
      
      This commit is linked to task ID 1889413.
      c75fa91a
Loading