Skip to content
Snippets Groups Projects
  1. Jun 04, 2020
  2. Jun 03, 2020
    • Nicolas Martinelli's avatar
      [FIX] crm: default partner lang · 2725e80a
      Nicolas Martinelli authored
      
      - Create a lead and set a language
      - Convert to opportunity and choose 'Create a new customer'
      
      The new customer created doesn't have the language of the lead set.
      
      This is more logical to set the same language to the new customer.
      
      opw-2270321
      
      closes odoo/odoo#52376
      
      X-original-commit: 1999c68ff4eb382019c92064d9285411314a39be
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      2725e80a
  3. Jun 04, 2020
    • Author Name's avatar
      [FIX] website_event: event registration in edit mode · 11907c17
      Author Name authored
      
      The event registration form is made up of a public widget that
      instantiates an internal normal widget. All public widget are
      automatically destroyed when entering in edit mode as well as the widget
      it created. Therefore, it's main element is removed from the DOM when
      the widget is destroyed. Here, we're detaching the main element from the
      internal widget before the widget is destroyed so that we avoid to
      destroy his main element from the DOM when entering in edit mode.
      
      task-2210733
      
      closes odoo/odoo#52426
      
      X-original-commit: d515e423
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      11907c17
  4. May 29, 2020
  5. Jun 04, 2020
  6. Jun 03, 2020
  7. Jun 04, 2020
  8. Jun 03, 2020
  9. May 25, 2020
  10. Jun 03, 2020
  11. May 15, 2020
    • Sébastien Theys's avatar
      [IMP] web: various Popover improvements · 499bbfd5
      Sébastien Theys authored
      
      Close can now be requested by children (slot content) with the event
      `o-popover-close`. This feature is necessary if we want a "close" button inside
      the popover itself, which is the case for mail.activity "Mark Done".
      
      Clicking on the popover target now acts as a toggle, which is also a feature
      that was expected from the previous popover implementation.
      
      Add a specific class (`o_is_open`) when the popover is displayed to be able to
      style its target depending on whether it is displayed or not.
      
      Ensure computed position is whole number of pixels to prevent flicker issue on
      Firefox.
      
      Remove forced width to let the component grow with its content.
      
      Add appropriate z-index to prevent overlap issue with the rest of our interface.
      
      closes odoo/odoo#50850
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      499bbfd5
  12. Jun 03, 2020
  13. May 29, 2020
    • xO-Tx's avatar
      [FIX] mail: fix emoji menu position/overflow issues (on mobile screen) and... · 569d35bc
      xO-Tx authored
      [FIX] mail: fix emoji menu position/overflow issues (on mobile screen) and emojis display (for different OSes > browsers)
      
      This commit attempts to fix the emoji widget position issue (only in enterprise versions) on mobile screen.
      The emoji dropdown overflow & emojis font display issues (on mobile screen) are also fixed in this commit.
      
      The following changes have been made :
      
      1- Add css media-breakpoint to override widget position in small breakpoint and narrower.
      2- Add position-relative + bottom css on widgets to avoid negative margins.
      3- Set a max-width for the dropdown on mobile screen.
      4- Add width/height on emoji icons to solve emojis position issue for some fonts (on different OSes > browsers).
      
      This fix was made with the 'smallest possible changes' taking in consideration effects on :
      
      - "text_emojis" widgets, since they use same class : "o_mail_emojis_dropdown".
      - Emoji widget position in community (This fix won't break widget position in community version).
      
      Task ID 2224393
      
      closes odoo/odoo#52182
      
      X-original-commit: 405e113e897b914eed41b34a66b5a7f740dcd336
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      569d35bc
  14. Jun 03, 2020
  15. Jun 02, 2020
    • alt-odoo's avatar
      [FIX] base: small fixup of 1cf02f80 · 8ac95195
      alt-odoo authored
      
      closes odoo/odoo#52293
      
      X-original-commit: 81949e68ebd731b786194b9ee81d69c42d566e74
      Signed-off-by: default avatarAlex Tuyls <alt-odoo@users.noreply.github.com>
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      8ac95195
    • Julien Castiaux's avatar
      [FIX] base_import: ensure reloaded file is valid · 22db8918
      Julien Castiaux authored
      The *Reload File* import functionality stands on an undefined behavior
      or the HTML File API. The API is not clear about what should done in
      case the underlying file change on the filesystem after it has been
      imported in the browser.
      
      It turns out the actual behavior vary among browsers and even among
      OSes. The *Reload File* button only works as intended when importing
      files via Chrome on Linux.
      
      In other cases, the browser may refuse to send the file or may send it
      in a corrupted HTTP request. Such malformed request is rejected in the
      best cases by the backend web application but there is chance it hangs.
      
      Security-wise, this problem is not much likely to happen as it requires
      an authenticated user with importation privileges to perform the
      operation. When it comes to the severity, it is possible to exhaust the
      available workers by forcing every one of them to hang.
      
      As there is a security impact, we decided to disable the *Reload File*
      functionality.
      
      Steps to reproduce
      ------------------
      
      1) Import a CSV or XLSX document in any model.
      2) Wait for the data visualization to come back to the browser.
      3) Change the file on disk to
        a) remove a few lines
        b) add a few more lines.
      4) Click the Reload button.
      
      Wrong `size` attribute on Firefox.
      ----------------------------------
      
      Impact: Firefox
      
      The advertised `Content-Length` HTTP header in the POST request is
      a) *greater* than the actual body length. The backend web application
         hangs on a `socket.recv` like function waiting for those missing
         bytes.
      b) *smaller* than the actual body length. The request is truncated
         and futher processing is impossible.
      
      The malformed request should have been detected and reported by the http
      web application as requested by the HTTP/1.1 spec [1]:
      
      > When a Content-Length is given in a message where a message-body is
        allowed, its field value MUST exactly match the number of OCTETs in
        the message-body. HTTP/1.1 user agents MUST notify the user when an
        invalid length is received and detected.
      
      Mitigating the issue is possible using nginx as reverse-proxy. The
      connection is closed after one minute if data are missing.
      
      Invalid `ERR_UPLOAD_FILE_CHANGED`
      ---------------------------------
      
      Impact: Chrome on Windows
      
      Chrome prevent sending the XHR due to a `ERR_UPLOAD_FILE_CHANGED` error,
      this error should only happens when the underlying file content have
      been changed the second before the request. On Windows, the error
      is triggered as soon as the file have been changed, not considering the
      modification time.
      
      [1]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html
      
       Section 4.4
      
      opw-2252440
      
      closes odoo/odoo#52276
      
      X-original-commit: 30be09cd
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      22db8918
    • Florent de Labarre's avatar
      [IMP] base: allow to view/filter ir.cron's model_id · f112cc8f
      Florent de Labarre authored
      
      Similarly to server actions, searching and viewing the model on which a
      scheduled action is defined is useful for administrators.
      
      closes odoo/odoo#52239
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      f112cc8f
    • Swapnesh Shah's avatar
      [FIX] base: Wrong 'default_type' on create kanban stage grouped by 'Customer' · 2c62d1bc
      Swapnesh Shah authored
      
      Issue
      
      	Step done with "CRM" since main kanban view can be
      	grouped by 'res.partner' model:
      
      	- Install "CRM" app
      	- Go to crm and group by "Customer".
      	- Add a Column.
      
      	Traceback is raised.
      
      Cause
      
      	Wrong "default_type" in context ('opportunity' in this case)
      	when creating new kanban stage and grouped by "Customer".
      
      Solution
      
      	On "default_get" for "res.partner", if "default_type" is in
      	context and not in 'type' selection choices field; then
      	remove it from context.
      
      Cherry-pick of #47723 in 12.0
      
      opw-2256905
      
      closes odoo/odoo#52282
      
      X-original-commit: e5796429
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      2c62d1bc
    • fja-odoo's avatar
      [IMP] website: add tests for website_visitor · 7630ef33
      fja-odoo authored
      
      website visitor testing had some flaws.
      
      task-2079873
      
      closes odoo/odoo#52281
      
      X-original-commit: 4e5f049e48f06eb4be2a9972d06167e68bba1d61
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      7630ef33
Loading