Skip to content
Snippets Groups Projects
  1. Feb 11, 2020
    • Bhavita Bhatt's avatar
      [IMP] website, website_link: improve frontend config screens · 4e162a4e
      Bhavita Bhatt authored
      
      Following things are done in this commit:
      1. changed some labeling and string for more readable and helpful to the user
      2. added extra width to the text box
      3. added publish/unpublish option for mobile view.
      4. track page option auto-activated for any new page,event,job offer,course,
         blog.
      
      task-2088546
      closes #40085
      
      Co-authored-by: default avatarjpr-odoo <jpr@openerp.com>
      4e162a4e
    • mcm-odoo's avatar
      [REF] mail, various: remove user_signature field from mail.template · de1743ab
      mcm-odoo authored
      
      RATIONALE
      
      Mail template model holds a field telling odoo mail engine to automatically
      add the current user's signature to the body. Its use depends on the use
      case
      
        * using the template in the composer on a single record: it is displayed
          in the rendered template in the composer, meaning people could change it.
          This behavior is interesting as it allows to see the email content;
        * using the template in the composer in mass mail mode: it is not displayed
          as only the raw jinja is displayed. It is therefore not obvious that it
          will be appended to the body of the mail. People could add it manually and
          have 2 signatures as a result;
      
      A mechanism automatically adding a signature to sent emails when posting a
      message is already implemented and is based on template existence. If a
      template has been used when posting, no signature is added in sent emails.
      Otherwise it is automatically added. This behavior should not change.
      
      Behavior will therefore be
      
        * use a template -> specify signature usage in it manually through jinja;
        * do not use a template -> signature added in sent emails;
      
      SPECIFICATIONS
      
      Remove user_signature.
      
      Update template body accordingly. In customer oriented templates that are using
      it and do not already contain it, manually add a call to user.signature within
      the jinja code. When set to False, just remove its declaration.
      
      Quickly clean some signature integration.
      
      LINKS
      
      Task ID 2089252
      Community PR odoo/odoo#39482
      Enterprise PR odoo/enterprise#6459
      Upgrade PR odoo/upgrate#761
      
      Related: odoo/enterprise#6459
      Related: odoo/upgrade#761
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Co-authored-by: default avatarMichaël Mattiello <mcm@odoo.com>
      Co-authored-by: default avatarThibault Delavallée <tde@odoo.com>
      de1743ab
  2. Feb 10, 2020
  3. Feb 11, 2020
  4. Feb 05, 2020
  5. Feb 11, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: fix invoice report total incorrect · 825b227d
      Andrea Grazioso (agr-odoo) authored
      
      Go to Accounting / Reporting / Management / Invoices
      Select Pivot view
      Add "Total" measure
      expand results adding "invoice #" and product
      
      Total will be incorrect because it is summing up the value reported from
      several lines of the query in which the total is taken as the invoice
      total, so it will display total * # lines.
      
      Using the price retrieved from the single lines fix the issue, but it
      needs to be converted according to the currency rate of the invoice.
      
      Moreover the test need to be modified because the amount_total variable
      of the report should NOT be the move amount_total but the amount from
      all the lines converted in company currency
      
      opw-2187369
      
      closes odoo/odoo#45050
      
      X-original-commit: 1558bb2a
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      825b227d
  6. Feb 07, 2020
  7. Feb 10, 2020
  8. Feb 07, 2020
    • Julien Castiaux's avatar
      [FIX] web: attach the trad alert to the form · 45026333
      Julien Castiaux authored
      
      The translation alert dialog was attached to the entire view in case no
      status bar was found. This resulted in the following layout on large
      screens:
      
          chrome
          --------------------------------------
          | alert dialog | form view | chatter |
          |              |           |         |
          --------------------------------------
      
      Whereas when a status bar was set on the form view, the rendering was as
      follow:
      
          chrome
          --------------------------------------
          |        status bar        | chatter |
          |       alert dialog       |         |
          |        form view         |         |
          --------------------------------------
      
      The fix make sure the alert dialog is always placed just above the form
      view just like when there is a status bar.
      
      closes odoo/odoo#44878
      
      Task: 2075172
      X-original-commit: dacdc30681510e9c2db23610c5be5285a72a8949
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      45026333
  9. Feb 11, 2020
  10. Feb 10, 2020
    • snd's avatar
      [FIX] google_calendar: synchronization cron timeout · f7eb653e
      snd authored
      
      In a database with many users / events to synchronize, the cron
      `ir_cron_sync_all_cals` may time out. Consequently, even if a `commit`
      is performed for each user, some users are never synchronized.
      
      In this commit, we first sort the users by last synchronization date,
      meaning that all users will ultimately be synchronized, even if the cron
      times out. On top of that, we introduce the context key
      `last_sync_hours` to prevent the synchronization in case the cron is
      restarted after timeout.
      
      opw-2158372
      
      closes odoo/odoo#45032
      
      X-original-commit: 2f21def6
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      Co-authored-by: default avatarNicolas Martinelli <nim@odoo.com>
      f7eb653e
    • Joren Van Onder's avatar
      [FIX] hr_contract: provide filters for the activity widget · 7d254d3e
      Joren Van Onder authored
      
      Without these magic filters the various options in the activity
      widget (late, today, future) will show all activities instead.
      
      opw-2172833
      
      closes odoo/odoo#45036
      
      X-original-commit: 081cb02d554760be1da0d4d10ad9a287c7bf462e
      Signed-off-by: default avatarjorenvo <jorenvo@users.noreply.github.com>
      7d254d3e
    • Yannick Tivisse's avatar
      [FIX] sale_timesheet: Fix undeterministic crashing test · 19482aff
      Yannick Tivisse authored
      
      Purpose
      =======
      
      Launch the test at 00:05:00.
      
      Then when opening the advance payment wizard, the field
      date_invoice_timesheet would be set to yesterday, instead of
      today.
      
      Adapt the default value on the wizard, and the related tests.
      
      closes odoo/odoo#45023
      
      Taskid: 2178983
      X-original-commit: 0a46e92cf742ca811b1685860619dba1d0dc7bd5
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      19482aff
    • Johan Demaret Rivarola's avatar
      [FIX] base: clear cache before read access check · 0d5fcdc1
      Johan Demaret Rivarola authored
      
      When reading binary content such as `image_128` on `res.users`,
      `AccessError` should be raised when necessary.
      
      Steps to reproduce:
        - Populate cache in superuser mode.
        - Access cached field with public user.
        - Read access is allowed but should not.
      
      Concrete example:
        - Unpublish `demo` user.
        - Access `/slides` with `public` user.
        - The template data is generated as `sudo`.
        - The same data is then accessed as `public`.
        - AccessError should be raised when requesting
          `/profile/avatar/<int:user_id>` but is not.
      
      Closes #43826
      
      closes odoo/odoo#45033
      
      X-original-commit: e0112db4
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      0d5fcdc1
    • Samuel Degueldre's avatar
      [FIX] website_blog: fix next post loading animation · 7cc6fdf3
      Samuel Degueldre authored
      
      Previously, when clicking on the next post at the bottom of a blog post,
      a spinning loader circle would always appear in the bottom left of the
      screen in an incorrect position. This commit removes that spinner.
      
      This commit also adds support for the half-screen cover size, which
      until now would animate as though it was full screen. All in all this
      just makes the transition animation much more seamless, which was the
      point of having it in the first place.
      
      task-2166790
      
      closes odoo/odoo#44198
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      7cc6fdf3
    • Denis Ledoux's avatar
      [FIX] doc: typo in 398a3d7e · 6caecbc8
      Denis Ledoux authored
      
      closes odoo/odoo#45025
      
      X-original-commit: ba1acb26
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      6caecbc8
    • Romain Derie's avatar
      [FIX] website: delete page on cascade when deleting a website · e05bf2e2
      Romain Derie authored
      
      The user is never able to delete a website, since there is at least one page,
      the homepage, which is bootstraped during website creation.
      From that point, even if nothing was done on that website, it was not possible
      to remove it.
      As website deletion is already a technical thing (debug mode), and since
      website.page do not make sense without their website, removing those on cascade
      will allow the user to remove a non-modified website.
      
      task-2092845
      
      closes odoo/odoo#45018
      
      X-original-commit: ba6206ba
      Signed-off-by: default avatarRomain Derie <rdeodoo@users.noreply.github.com>
      e05bf2e2
    • Romain Derie's avatar
      [FIX] website: prevent crash when 'force_website_id' has been deleted · 9894b36e
      Romain Derie authored
      As an admin or website publisher, you have the possibility to switch website in
      the navbar. This will force a website in your session*.
      
      If this website is removed at some point, your session will be broken as the
      dispatch will lead to a traceback, trying to read un unexisting website.
      
      * There is other way to have the website forced in the session: theme install,
        go to website from settings, create website from settings..
      
      opw-2092845
      
      X-original-commit: 835d1201
      9894b36e
    • qsm-odoo's avatar
      [FIX] web_editor: fix gallery blocking the editor after image reordering · 0ac7d67c
      qsm-odoo authored
      
      When snippets deeply alter the DOM (e.g. image reordering in gallery),
      the related option might be destroyed since they are referencing old
      DOM. If such a case occurred, the destroyed option was still waiting for
      an option update response by the editor before being considered as
      finished... which then never occurred and blocked the editor.
      
      closes odoo/odoo#44998
      
      X-original-commit: 9eeea4c4107dc15984c475582d5ee58a17cd2568
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      0ac7d67c
    • Kevin Baptiste's avatar
      [IMP] crm: make unlink optional in merge_opportunity · 32a8b4dc
      Kevin Baptiste authored
      
      closes odoo/odoo#44997
      
      X-original-commit: a8094108a4e469f5bc4a3ba541ede7a61f28d522
      Related: odoo/enterprise#8311
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      32a8b4dc
    • jvm-odoo's avatar
      [FIX] website_blog: fix share link on blog posts · de7a0b32
      jvm-odoo authored
      
      Issue
      
      	- Install Blog
      	- Go on a Blog post
      	- Customize > Enable Share links & Sidebar
      	- Click on a social share link
      
      	Redirected to #
      
      Cause
      
      	The website_blog.js has been refactored fron v12
      	to v13, it seems that the onShareLink method has
      	been forgotten in the event handlers.
      
      Solution
      
      	I added it and make it working with the actual view.
      
      OPW-2170706
      
      closes odoo/odoo#44992
      
      X-original-commit: 0e90afb7
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      de7a0b32
    • Samuel Degueldre's avatar
      [FIX] web_editor: fix apply-to methods not being awaited · 99427c2c
      Samuel Degueldre authored
      
      When the apply-to data attribute was first introduced, a mistake was
      made when storing the results of the methods calls, using _.each instead
      of _.map to associate each target element with the promise of the method
      execution, as a result, Promise.all would resolve immediately instead of
      waiting. While there are no currently documented bug caused by this,
      they are just waiting to happen.
      
      This commit fixes that.
      
      closes odoo/odoo#44988
      
      X-original-commit: 32271be1f696c11b3e5157426b8f7c9efa93134b
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      99427c2c
    • fja-odoo's avatar
      [FIX] web_editor: fix color palette custom color behaviors · 574bf9bb
      fja-odoo authored
      
      Selecting a css color equals to a theme color via the custom color
      was not selecting the theme color.
      
      Opening and closing the custom color without picking a color was
      unselecting the selected color.
      
      Now the custom color picker has the selected color as default even if it
      does not appear in the palette as selected. This was appearing in the
      parallax snippet as no custom color is displayed.
      
      closes odoo/odoo#44986
      
      X-original-commit: 0c8be24ac72c223c12eadbdcf635628f203a6766
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      574bf9bb
    • qsm-odoo's avatar
      [FIX] web_editor: fix image removal inside image gallery · ed999bc8
      qsm-odoo authored
      Since we use Promise instead of jQuery deferred, the onRemove method
      class was no longer triggered before the actual removal of the elements.
      
      Original fix with https://github.com/odoo/odoo/pull/43918
      
      
      This PR is the same with the async/await form, not breaking the history
      of half of the removeSnippet method's lines.
      
      closes odoo/odoo#44963
      
      X-original-commit: 37941159c82d487ff172f0e6b27028f23ab32810
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarfja-odoo <fja@odoo.com>
      ed999bc8
    • fja-odoo's avatar
      [FIX] web_editor, *: unblock editor after any option dialog closing · 1ebc4661
      fja-odoo authored
      
      *: website
      
      Some dialog promises were not resolved on close, blocking the editor.
      
      closes odoo/odoo#44953
      
      X-original-commit: 20f97470cdc59a817526305806e94b222f26a0f2
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      1ebc4661
  11. Feb 08, 2020
  12. Feb 10, 2020
    • Swapnesh Shah's avatar
      [FIX] hr: Remove unnecessary argument · 5e63519c
      Swapnesh Shah authored
      
      Followup on 5ce8f1e3
      Before this commit, There would be traceback on Launching Plan with `Responsible` set to `other` and No `Responsible Person` defined on activity due to Extra argument.
      
      In this commit, We remove that extra Argument.
      
      closes odoo/odoo#44965
      
      X-original-commit: 009e5526
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      5e63519c
    • David Beguin's avatar
      [IMP] (im/website)_livechat : hide and clean empty livechat sessions · 9c9032e6
      David Beguin authored
      
      Purpose
      =======
      
      Whenever a visitor start a livechat session but finally close the session
      without sending any messages, the livechat session is empty and stay in DB.
      Livechat session counter counts all the sessions (with and without message)
      but when opening the sessions tree view, the view is filtered by default on
      session with messages. There is no reason to see the empty sessions as it
      does not give any information (except "the visitor hesitated to start
      livechat and finally did not" which is quite useless info)
      
      The goal is to keep only sessions with messages.
      
      When the visitor is closing the livechat window, if the session is empty,
      the session should be deleted. But what happens if a visitor start a livechat
      session, send no message and just leave the website without closing the
      livechat window ? --> empty live chat session will remains in database.
      
      The ir_autovacuum already handle the deletion of empty sessions to main a
      clean DB.
      
      Specifications
      ==============
      
      - Apply 'with messages' domain on session count in the livechat channel view
      - Apply 'with messages' domain on session count in the lead view
      - Apply 'with messages' domain on livechat session view
      - Remove With message filter
      - Remove Without message filter
      
      - If send message on a deleted session :
          just tell the visitor that operator is not available anymore
          AND delete livechat session cookie (as he waited 1 day to send a message)
      
      Empty sessions becomes invisible : not possible for users to see empty session
      (in count or in views) and cron is cleaning empty sessions every day.
      
      This commit also adapts visitor session count and view accordingly.
      
      Task ID: 2146962
      PR #41065
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      9c9032e6
  13. Feb 07, 2020
Loading