Skip to content
Snippets Groups Projects
  1. May 05, 2020
    • Julien Castiaux's avatar
      [IMP] ir_mail_server: IDNA and SMTPUTF8 capabilities · afcb7349
      Julien Castiaux authored
      It has been a recurrent request from customers to be able to send email
      messages to email addresses containing non-ascii characters. [IDNA] is a
      domain extension to allow unicode characters in domain names. [SMTPUTF8]
      is a SMTP extension to allow unicode in any header.
      
      IDNA defines the [punycode] encoding which translates unicode to an
      ascii representation. This encoding MUST be used to encode domains.
      
      SMTPUTF8 is an SMTP extension that allow utf-8 in all headers on the
      envelope.
      
      [IDNA] https://tools.ietf.org/html/rfc5890
      [SMTPUTF8] https://tools.ietf.org/html/rfc6531
      [punycode] https://tools.ietf.org/html/rfc3492
      
      
      
      Task: 2116928
      opw-2229906
      opw-2248251
      
      closes odoo/odoo#47709
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      afcb7349
    • Aaron Bohy's avatar
      [IMP] *: update form views · 89c1d81b
      Aaron Bohy authored
      
      *account,purchase,sale
      
      Make them use widget mail_many2one_avatar.
      
      Part of task 2195254
      
      closes odoo/odoo#49345
      
      Related: odoo/enterprise#10074
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      89c1d81b
    • Aaron Bohy's avatar
      [IMP] *: update kanban views · b6d05f60
      Aaron Bohy authored
      Use the new Many2OneAvatarUser field widget in some kanban views,
      which allows to open a DM chat window with the corresponding user
      by clicking on the avatar.
      
      Part of task 2195254
      b6d05f60
    • Aaron Bohy's avatar
      [IMP] *: update list views · 900d1628
      Aaron Bohy authored
      This commit adapts several views to make them use newly defined
      widgets, the new decoration-xxx mechanism on fields, and to adapt
      them to the new design of buttons.
      
      Part of task 2195254
      900d1628
    • Aaron Bohy's avatar
      [IMP] mail: add ListActivity widget · 841721ea
      Aaron Bohy authored
      This commit adds a tweaked version of the kanban_activity widget
      for the list view. This widget displays the summary of the next
      activity (and fallbacks on the activity type if there is no
      summary). It can be set by defining widget='list_activity' on
      field activity_ids.
      
      Part of task 2195254
      841721ea
    • Aaron Bohy's avatar
      [IMP] web: add 'label' attribute on AbstractField · a0c7284b
      Aaron Bohy authored
      If set, this value will be displayed as column name in list views.
      This attribute could be used in the future in form view for the
      same purpose.
      
      Part of task 2195254
      a0c7284b
    • Aaron Bohy's avatar
      [REF] mail: lint activity.js · c54007f0
      Aaron Bohy authored
      c54007f0
    • Aaron Bohy's avatar
      [IMP] hr: add Many2OneAvatarEmployee field widget · 22a66ae6
      Aaron Bohy authored
      This widget is a variant of the Many2OneAvatarUser widget, designed
      for many2one fields pointing to 'hr.employee'.
      
      Part of task 2195254
      22a66ae6
    • Aaron Bohy's avatar
      [IMP] mail: add Many2OneAvatarUser field widget · 59641325
      Aaron Bohy authored
      This widget is an extension of Many2OneAvatar, designed for
      many2one fields pointing to the 'res.users' model, or a model having
      itself a many2one field pointing to 'res.partner'.
      
      With this widget, when the avatar is clicked, we open a DM chat
      window with the corresponding partner. If the user clicked on itself,
      we open a blank chat window for the sake of consistency.
      
      In kanban views, this widget only displays the avatar.
      
      Part of task 2195254
      59641325
    • Aaron Bohy's avatar
      [REF] mail,hr: move openDMChatWindow to MailManager · e63ffeab
      Aaron Bohy authored
      It will be used by the Many2OneAvatarUser widget defined in the
      next commit.
      e63ffeab
    • Aaron Bohy's avatar
      [IMP] web: add Many2OneAvatar field widget · df4693e7
      Aaron Bohy authored
      In readonly, this widget displays the image of the related record
      next to its display_name. In edit, it behaves exactly like the
      regular many2one.
      
      Part of task 2195254
      df4693e7
    • Aaron Bohy's avatar
      [IMP] web: add RemainingDays field widget · 4f8860e5
      Aaron Bohy authored
      This widget can be used on date and datetime fields. In readonly,
      it displays the delta (in days) between the value of the field and
      today. In edit, it behaves like a regular date(time) widget.
      
      Part of task 2195254
      4f8860e5
    • Aaron Bohy's avatar
      [FIX] web: list: prevent flickering · a3c0d6ee
      Aaron Bohy authored
      Have a list view with "badge" field component and 'decoration-xxx'
      attributes (on that field). Before this commit, it flickered when
      the user refreshed the list (for instance, by clicking on the list
      icon in the view switcher). The badges were displayed with a grey
      background (i.e. no decoration) for a brief moment, before their
      style was applied.
      
      Their style is applied in the mounted hook, which is called by
      'on_attach_callback' (legacy version of mounted). However, the list
      renderer computes its column widths in 'on_attach_callback', which
      produces a repaint.
      
      This commit moves this operation to the end of on_attach_callback,
      such that other processing (like applying the badges style) is done
      before the repaint.
      a3c0d6ee
    • Aaron Bohy's avatar
      [IMP] web: add BadgeField component · 1d6e4948
      Aaron Bohy authored
      This new field component displays the field's value inside a
      bootstrap pill badge. Supported field types are 'char', 'selection'
      and 'many2one'. The background color of the badge can be customized
      by using the decoration-xxx mechanism, e.g.
       <field name="state" decoration-danger="state == 'cancel'" widget="badge"/>
      
      Part of task 2195254
      1d6e4948
    • Aaron Bohy's avatar
      [REF] web: field decoration · 56787d58
      Aaron Bohy authored
      This commit refactors the way the decoration-xxx attributes are
      applied to field widgets/components, in a way that it can be
      overridden in a given field or component to generate the approriate
      className. By default, 'decoration-x' applies className 'text-x'.
      
      This will be necessary for the new 'FieldBadge' component, which
      needs to apply 'bg-x' classNames instead of 'text-x'.
      
      Part of task 2195254
      56787d58
    • Aaron Bohy's avatar
      [IMP] web: list: allow to add decorations on field nodes · a1d3e224
      Aaron Bohy authored
      In list views, one can specify decoration-XXX attributes on the
      arch root node. Those decorations are evaluated for each record,
      and the corresponding style is applied on rows for which the
      condition is true.
      
      This commit allows to specify those decoration-XXX attributes on
      field nodes as well. In this case, when the condition is met by a
      record, only the field on which the attribute is set will be
      impacted.
      
      Part of task 2195254
      a1d3e224
    • Aaron Bohy's avatar
      [IMP] web: list: improve style of icon buttons · 47144b9e
      Aaron Bohy authored
      Buttons with icon and string attributes now have both their icon
      and string displayed, whereas before only the icon was displayed
      (the string was available as title).
      
      We also force class btn-link to style buttons with icon, except if
      another btn-xxx class is explicitely provided.
      
      Part of task 2195254
      47144b9e
    • jerome hanke (jhk)'s avatar
      [FIX] payment: float consistency enforcement in access_token generation · 03eea7c4
      jerome hanke (jhk) authored
      
      Steps to reproduce:
      - install sales, ecommerce and payment_authorize
      - setup authorize.net (test mode)
      - go to sales and select the quotation S00007 (demo data) or create a quotation
      with multiple items that add up to a float
      - select action > generate a payment link > go to the link > select pay with authorize
      - you are redirected to authorize.net use 4111 1111 1111 1111 as card number and 1223
      as expiration date > pay
      - you are redirected to the odoo payment process page
      - wait for the result
      
      Previous behavior:
      the user is returned to a 404 error page but the payment went trough
      
      Current behavior:
      access_token generation is consistent and will not fail because of
      float representation
      the user is returned to the "payment confirmed" page
      
      WARNINGS:
      - watching the values in vscode prevents bug reproduction
      - when setting up authorize.net, do not forget to add your test url to
      the account's allowed return urls
      - use https for authorize.net connection
      
      opw-2223135
      
      closes odoo/odoo#50633
      
      X-original-commit: 0fe7fa0f
      Signed-off-by: default avatarmightyjol <jhk-odoo@users.noreply.github.com>
      03eea7c4
  2. May 04, 2020
    • Nasreddin (bon)'s avatar
      [FIX] crm: Fix compute method on day open · e8fb743f
      Nasreddin (bon) authored
      
      Step to reproduce : Import from Excel a list of Opportunities.
      
      The problem is that in _compute_day_open, the abs of the extraction
      date_open - create_date is set as the lead's day_open.
      As the date_open has no milliseconds, all those records which
      create date is the same second have a date_open that is before their create_date.
      
      Fixed it by comparing the date_create and date_open without microsecond.
      
      Task ID 2222251
      
      closes odoo/odoo#50599
      
      X-original-commit: f7d12770
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      e8fb743f
  3. Apr 27, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] point_of_sale,pos_cash_rounding: fix change error popup on checkout · 08ceeaf8
      Andrea Grazioso (agr-odoo) authored
      
      Configure your POS with bank payment method only
      Make a sale with rounding necessary (i.e. 1,29€)
      The amount will be rounded. Go through the payment screen.
      
      Error message will appear because no payment methods available is
      capable of handling the change, but this is not necessary since we are
      rounding.
      
      Splitting the code to add a more specific condition in pos_cash_rounding
      fix the issue
      
      opw-2239946
      
      closes odoo/odoo#50216
      
      X-original-commit: 6131534da2d3a3bf75529b32f2061d58e925b365
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      08ceeaf8
  4. May 04, 2020
  5. Apr 30, 2020
  6. Apr 29, 2020
    • Olivier Dony's avatar
      [FIX] doc/deploy: add recommendations for firewall rules · 4310ba32
      Olivier Dony authored
      
      In some situations it is important to protect the Odoo service from
      direct access from the internet, or to protect internal network
      resources from the Odoo server itself.
      
      This is heavily dependent on deployment requirements, and for standard
      installations on a public cloud system, this may not be necessary.
      Yet it seems useful to mention it in the deployment recommendations,
      as it may not be obvious to our users.
      
      Our thanks to Ameya Darshan for raising this concern!
      
      closes odoo/odoo#50422
      
      X-original-commit: da0d9ef4
      Signed-off-by: default avatarPaul Morelle <madprog@users.noreply.github.com>
      4310ba32
  7. May 04, 2020
  8. Apr 30, 2020
    • jvm-odoo's avatar
      [FIX] web: fix can't open date picker on graph views · a7ee8bc7
      jvm-odoo authored
      
      Issue
      
      	- Install CRM
      	- CRM > Reports > Activities
      	- Add a custom filter > Created on
      	- Select the date
      
      	You can't, the date picker is not shown
      
      Cause
      
      	Actually, the date picker is shown but
      	very quickly and it is closed by a scroll
      	event thrown by Chart.js.
      
      Solution
      
      	Close the date picker only if the user
      	scrolls manually.
      
      OPW-2245019
      
      closes odoo/odoo#50482
      
      X-original-commit: bda32005
      Signed-off-by: default avatarJason Van Malder (jvm) <jvm@odoo.com>
      a7ee8bc7
Loading