Skip to content
Snippets Groups Projects
  1. Mar 19, 2018
  2. Mar 16, 2018
  3. Mar 15, 2018
    • Deep Patel's avatar
      [IMP] base,web: settings view: enable swipe on mobile · 71de0c47
      Deep Patel authored
      Task 38926
      71de0c47
    • Aaron Bohy's avatar
      [REF] base,web: move and rename settings tests file · c3be3965
      Aaron Bohy authored
      and remove some unnecessary code
      c3be3965
    • Aaron Bohy's avatar
      [FIX] base: settings view: don't patch jQuery · dbbb342e
      Aaron Bohy authored
      especially to alter the behavior of a standard function to make it
      behave like a function that is already available (defined in our
      extension of jQuery).
      dbbb342e
    • Thibault Delavallée's avatar
      [FIX] test_mail: update one counter because of runbot crashing sometimes · 1e040c87
      Thibault Delavallée authored
      Due to unknown reasons sometimes a performance test takes one query more to
      run than expected. Let us therefore avoid red runbots by increasing the
      query count by 1.
      1e040c87
    • Thibault Delavallée's avatar
      [MERGE][IMP] mass_mailing: allow to choose outgoing server for mailings · b90e0462
      Thibault Delavallée authored
      This merge improves mass mailing application by allowing to choose
      specific outgoing mail servers on mailings. It is used notably if
      you want to separate mass mailings from classic emails and/or to perform
      some load balancing. A settings to add a default server used for mailings
      is also added.
      
      As a read access on outgoing mail servers is added for mass mailing
      users the credentials are now restriected to admins for security
      reasons.
      
      This merge is related to task ID 31737. Closes #21699 .
      b90e0462
    • Sanjay Jamod's avatar
      [IMP] base: protect ir_mail_server credentials by `base.group_system` group · fe5c8602
      Sanjay Jamod authored
      Purpose of this commit is to prevent unauthenticated access on user name
      and password of the mail server. Indeed as mass mailing users notably gain
      access to mail servers let us protect its credentials.
      
      This commit is related to task ID 31737
      fe5c8602
    • Sanjay Jamod's avatar
      [REF] base: remove ir_mail_server name_get method and use default one · 7169a728
      Sanjay Jamod authored
      Purpose of this commit is to not set parentheses around mail server name.
      Indeed it does not add any value to have its ID in the name_get.
      
      This commit is related to task ID 31737
      7169a728
    • Sanjay Jamod's avatar
      [IMP] mass_mailing: allow users to choose a specific outgoing mail server · 507c1e03
      Sanjay Jamod authored
      Purpose of this commit is to allow mass mailing users to select an outgoing
      mail sever when performing mass mailing. It includes
      
      * add a field in mass_mailing to select specific outgoing mail server;
        it is put in debug mode because it sounds people would not understand
        what is its purpose;
      * add an option in settings to set a default outgoing mail server;
      * give read access to ir.mail_server to mass_mailing users;
      
      This commit is related to task ID 31737.
      507c1e03
    • Rohan Patel's avatar
      [IMP] auth_signup,portal: create portal user using template user · 7cee389e
      Rohan Patel authored
      Purpose of this commit is to standardize portal user creation when
      creating new portal users (when 'Free sign up (B2C)' option activated). It
      copies the portal user template. The same behavior now applies when
      converting a partner into portal user using the portal wizard.
      
      This commit is related to task ID 31399 .
      7cee389e
    • Rohan Patel's avatar
      [MOV] auth_signup, base: move portal user template to base module · e3afd550
      Rohan Patel authored
      Purpose of this commit is to standardize portal user behavior and creation.
      As all portal required features (user, group, support) have moved to
      base let us move the template user used to create portal users to base.
      
      'Portal User Template' is therefore moved from auth_signup to base module.
      Various config parameters are updated due to the change in xml id.
      
      This commit is related to task ID 31399 .
      e3afd550
    • Sagar Ahirrao's avatar
      [IMP] base: resize partner image with actual aspect ratio · 05e02059
      Sagar Ahirrao authored
      Purpose of this commit is to finally stop adding extra padding to
      website logo. Indeed not giving square logos lead to padding added
      to images, leading to not so beautiful logo that makes people sad.
      
      Before this commit
       * partner's image was resized to square 1024x1024. Extra padding was added
         if user provided rectangle image;
       * due to this website logo resized to square when rectangle logo provided;
      
      After this commit,
       * sizes dict can be passed in image resizer of tools;
       * e.g. tools.image_resize_images(vals, sizes={'image': (512, 512),
         'image_small': (128, 128)})
       * image field in partner will resize with max width 1024 and height based
         on given image ratio (still image_medium, image_small will be default
         square images);
       * now website logo will respect actual aspect ratio
      
      This commit is related to task ID 31994 . Future commits should probably
      clean all that mess, but at least it seems we have something that works.
      05e02059
    • Parth Gajjar's avatar
      [IMP] web: support famous 'avoid_if_small' parameter in image controller and qweb field options · 964e16a7
      Parth Gajjar authored
      Before this commit there was no option to avoid resizing images when it
      was smaller than expected size. This leads to several image being displayed
      with extra and unnecessary padding due to resize. This option will allow
      to avoid that behavior by allowing to propagate the parameter directly
      to image_resize_image.
      
      This commit is related to task ID 31994 .
      964e16a7
    • Thibault Delavallée's avatar
      [DOC] test_mail: update some left query counters after 0f57bdba · f2f2dfaf
      Thibault Delavallée authored
      test_mail only counters have not all been updated. Those may be different from runbot as
      some tests depend on installed modules. Let us update it.
      f2f2dfaf
    • Yenthe V.G's avatar
      [ADD] l10n_nl: add Dutch states · 101e0a7e
      Yenthe V.G authored
      Closes #23663
      101e0a7e
    • Jigar Patel's avatar
      [IMP] web_settings_dashboard,*: improve UX · 89050f61
      Jigar Patel authored
      
      *crm,project: css selector adapted in tours
      
      This rev. improves the UX of the 'Invite users' and 'Pending
      invitations' part of the Settings dashboard.
      
      Task 32804
      Closes #19531
      
      Co-authored-by: default avatarAaron Bohy <aab@odoo.com>
      89050f61
  4. Mar 14, 2018
    • Philipp Borgers's avatar
      [ADD] l10n_de: add states of germany · 7dc30bf7
      Philipp Borgers authored
      
      Closes #18443
      Closes #23656
      
      Co-authored-by: default avatarYenthe V.G <yenthevg@gmail.com>
      Unverified
      7dc30bf7
    • Philipp Borgers's avatar
      [CLA] signature for booo · def0f8b8
      Philipp Borgers authored
      Done at #18443
      Unverified
      def0f8b8
    • Sergio Teruel Albert's avatar
      [IMP] base: propagate user_id when a contact is created · 76fbbe3a
      Sergio Teruel Albert authored
      To keep the same saleman and improve consistency
      
      Closes #21496
      Unverified
      76fbbe3a
    • Thibault Delavallée's avatar
      [MERGE][REM] mail, various: remove mail-related dead or unnecessary code · d7a7a01c
      Thibault Delavallée authored
      Purpose of this merge is to remove
       * dead code related to mail features, like unnecessary overrides;
       * unnecessary subscription or message post that adds no value to the app
         while creating noise;
       * some deprecated code bits in mail;
      
      Please see subcommits for more details. This merge is related to task
      ID 61132. Closes #23624 .
      d7a7a01c
    • Thibault Delavallée's avatar
      [REF] mail: support only model / res_id in mail/view redirection controller · e27e36cb
      Thibault Delavallée authored
      Currently mail/view controller supports either a message_id, either a
      model/res_id . Using a message_id is just a shortcut to find its model and
      res_id before redirecting to the record view. If the message has been
      removed the controller does not work anymore although with model and
      res_id it still works while the record exists.
      
      Same functional behavior can be achieved with only model and res_id. Let
      us drop support of message_id to lessen code size.
      e27e36cb
    • Thibault Delavallée's avatar
      [REM] mail: remove unnecessary post on partner at user creation · 3003482a
      Thibault Delavallée authored
      Currently a message 'XX joined the Company network' is logged on the
      user's partner profile when creating an user. This message is not sent
      to anyone as it is a note. Moreover it does not add any value to the
      discussion thread on partner profile.
      
      Let us remove that code as it has no use.
      3003482a
    • Thibault Delavallée's avatar
      [REM] mail: remove o_mail_note class in chatter · b4ecbcfa
      Thibault Delavallée authored
      Purpose of this commit is to clean a bit various classes and conditions.
      
      First clean is the removal of o_mail_note class in activities less. It comes
      from first implementation of activity widget and is not used anymore in
      activity widgets rendering.
      
      Second clean is the removal of o_mail_note class when displaying messages.
      Only o_mail_discussion is used currently in chatter to make a different
      background depending on whether the message is a discussion or not. All
      we have to know to differentiate message display is whether it is a
      discussion done by an user or not.
      
      Tests have been updated to use o_mail_discussion class triggered by
      the message being a discussion, aka a comment posted by an user.
      b4ecbcfa
    • Thibault Delavallée's avatar
      [IMP] fleet: log standard creation message instead of unnecessary custom one · 8de00fee
      Thibault Delavallée authored
      Currently a note is posted on the fleet with 'name has been added to
      the fleet'. It is not really interesting as it is no notified to
      anyone and it makes some noise. Let us therefore fall back on the
      standard behavior.
      8de00fee
    • Thibault Delavallée's avatar
      [REM] mail: remove deprecated controllers follow, unfollow and new · 2c6ea3cf
      Thibault Delavallée authored
      Mail holds some controllers used notably in notification emails to allow
      some action directly from email buttons. It is used for example to redirect
      people to the right view when clicking on 'view document' button.
      
      Some deprecated controllers still exist in codebase but are not used
      anymore. The 'new' controller notably has been removed at df01742f .
      The '(un)follow' controllers have been removed recently at 11d2d30e .
      Let us remove that dead code.
      2c6ea3cf
    • Thibault Delavallée's avatar
      [REM] hr: remove user auto subscription on its employee and kanban follow CTA · a1870d96
      Thibault Delavallée authored
      HR employee model automatically adds the employee's user as follower of
      its own employee profile. It has been done at 8ab3e5d2 probably
      when working on gamification and twitter-like employee profile. In that
      use case adding the employee's user as follower was required to be able
      to discuss on the employee form view. It is also a requirement to be sure
      he receives news about received badges.
      
      Since then however employee profile has been set as private and internal.
      It is used only for HR purpose which is coherent with the model and the
      business flow of various HR modules. Moreover it has never been really used
      as intended in gamification or as a twitter-like profile. It seems therefore
      not necessary to automatically add followers to this record.
      
      If required, any message_post can add the employee's user in the recipients
      if its attention is required on some message. It required only to set the
      target users's partner in the partner_ids parameter of message_post that
      is propagated to the message creation and notification.
      
      An override of notification process can also be removed. It seems people
      wanted to add the user to its profile but without notifying him. Let
      us remove all that crap.
      
      Finally the CTA button to (un)follow employees directly from the kanban
      view is also removed for the same reasons as state hereunder.
      a1870d96
    • Thibault Delavallée's avatar
      [REM] maintenance: remove dead code about responsible auto subscription · 9581eb9c
      Thibault Delavallée authored
      An override related to mail.thread auto subscription has been added in
      maintenance application at 23a2bac3 in 9.0. Since that version
      however the field has been renamed to avoid confusion with user_id that is
      generally a responsible with access rights to handle the document.
      
      This code is therefore not necessary anymore and can be safely removed
      without impacting any functional flow.
      9581eb9c
    • Martin Geubelle's avatar
      [REF] *: put `clickable` in widget options for statusbar · 7afc5fd6
      Martin Geubelle authored
      The widget statusbar was using an attribute `clickable` on the field widget
      to define if the statusbar was clickable.
      
      This attribute is in fact not a field attribute but a widget option so it
      has been moved accordingly.
      
      Note that a retro-compatibility adapation is done in the field widget.
      7afc5fd6
    • Géry Debongnie's avatar
      [IMP] update ace editor to v1.3.1 · 64d47c0b
      Géry Debongnie authored
      Note that we do not do a custom build anymore, since we lazyload the
      files anyway.  A custom build will save a few kb, but will not do any
      meaningful change to the user experience.  However, it dies impact
      negatively our ease of maintenance, so standard build it is.
      64d47c0b
  5. Mar 12, 2018
  6. Mar 10, 2018
    • Aaron Bohy's avatar
      [FIX] web: scroll to top when using the pager · 414b1ef7
      Aaron Bohy authored
      In multi pages list view, the scroll position is reset to top when
      the user switches between pages. This wasn't working if he first
      reset the limit, and then switched between pages.
      414b1ef7
    • Aaron Bohy's avatar
      [IMP] web: restore scroll position · 4e204ed2
      Aaron Bohy authored
      
      This rev. improves the way the scroll position is restored when
      coming back to a view (e.g. open a kanban view, scroll, click on a
      record to open it in a form view, go back to kanban using the
      breadcrumbs):
      
       - generalize the scroll position handling from web_enterprise to
         web to make it available in the community webclient as well
       - also restore left scroll position, not only top (especially
         useful for grouped Kanban views with a lot of columns)
       - handle the case where the scrolling area is a sub element of
         the view (e.g. the grouped Kanban view in mobile).
      
      Task 34037
      
      Co-authored-by: default avatarMohammed Shekha <msh@openerp.com>
      Co-authored-by: default avatarAnkit Sathvara <asa@odoo.com>
      4e204ed2
Loading