Skip to content
Snippets Groups Projects
  1. Apr 29, 2020
    • Nisha patel's avatar
      [FIX] hr_timesheet, timer: Fix traceback in kanban view when using the timer · 6bfc5bd8
      Nisha patel authored
      
      Currently, when the unit amount of line is zero and the timer time
      spent on entry is less than one minutes then entries are unlinked
      once the timer is stopped and due to that the entry disappear from the
      kanban view and traceback is generated.
      
      After this commit, we fix the issue by preventing the deletion of
      entries by setting options 'prevent_deletion' on widget so we should
      no allow to delete the entry if the option is set on widget.
      
      closes odoo/odoo#50395
      
      Taskid: 2230155
      Closes: #49128
      X-original-commit: 64b9a9b4deaee5a8139b0afbe3f222a476a038f9
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      6bfc5bd8
  2. Apr 30, 2020
    • oco-odoo's avatar
      [FIX] l10n_nl: fix bad forward-port of... · db957181
      oco-odoo authored
      [FIX] l10n_nl: fix bad forward-port of https://github.com/odoo/enterprise/commit/82608e25033fde6f93b8d0face5774f70930fcd2
      
      
      
      closes odoo/odoo#50447
      
      X-original-commit: 4556c0409d7022a2186dcb95307c5a57577d5081
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      db957181
    • Odoo's Mergebot's avatar
      [MERGE][IMP] web, utm: add kanban example stages for UTM campaigns · 8d001b74
      Odoo's Mergebot authored
      
      Inspired by what is done in the task kanban of the project module,
      add examples of kanban stage setups for UTM campaigns, and allow users
      to load them.
      
      There have also been some minor changes to the campaigns view:
      
      - The helper message when there are no UTM campaigns has been changed
        to a more descriptive message.
      - All stages that existed by default (hardcoded in the data XML) have
        been removed except default New one. An user with a fresh database will
        have no stages in their kanban. The old hardcoded stages have been moved
        to the demo data instead, so they will still be added by default if the
        user installs demo data.
      - The ghost columns that appear in the kanban when no stages exist have
        been renamed to match the old stages that were hardcoded.
      - When the user opens the view to create a column, the 'See examples'
        link will appear below the 'Column title', just like in the project
        addon, and clicking it will open some examples specifically made for UTM
        campaigns. Clicking on the 'Use This For My Kanban' button will load the
        stages of the selected example.
      - A min-height property has been given to the example modal view so that
        the view does not change size depending on the number of rows in the
        ghost columns.
      
      Sub commits are present to allow tweaking the feature more that currently
      feasible.
      
      Task ID: 2047369
      PR #48299
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      8d001b74
    • dmonzonis's avatar
      [IMP] web: Fold column quick create on load examples · 56835877
      dmonzonis authored
      Before this commit, after adding a column or loading examples in a
      kanban from the quick create column, it stays open. After this commit,
      it will stay open if adding a column through it, but it will fold if the
      user has loaded a set of columns from an example.
      
      Task ID 2047369
      PR #48299
      56835877
    • dmonzonis's avatar
      [IMP] utm: Add kanban examples for UTM campaigns · 59a0b929
      dmonzonis authored
      Inspired by what is done in the task kanban of the project module,
      add examples of kanban stage setups for UTM campaigns, and allow users
      to load them.
      
      There have also been some minor changes to the campaigns view:
      
      - The helper message when there are no UTM campaigns has been changed
        to a more descriptive message.
      - All stages that existed by default (hardcoded in the data XML) have
        been removed except default New one. An user with a fresh database will
        have no stages in their kanban. The old hardcoded stages have been moved
        to the demo data instead, so they will still be added by default if the
        user installs demo data.
      - The ghost columns that appear in the kanban when no stages exist have
        been renamed to match the old stages that were hardcoded.
      - When the user opens the view to create a column, the 'See examples'
        link will appear below the 'Column title', just like in the project
        addon, and clicking it will open some examples specifically made for UTM
        campaigns. Clicking on the 'Use This For My Kanban' button will load the
        stages of the selected example.
      - A min-height property has been given to the example modal view so that
        the view does not change size depending on the number of rows in the
        ghost columns.
      
      Task ID: 2047369
      PR #48299
      59a0b929
    • dmonzonis's avatar
      [IMP] web: Allow customization of text in button to apply kanban example · 897724e5
      dmonzonis authored
      Before this commit, the only module that allows for selecting and
      applying kanban column examples is the project module, for its tasks
      kanban, so the message in the button to apply the example is hardcoded
      as "Use This For My Project".
      
      After this commit, the text in this button can be customized to make
      this more generic, so a different module could use a different message
      like "Use This For My Campaigns". If no text is specified, a generic
      "Use This For My Kanban" is used instead.
      
      Usage
      
      ```
      kanbanExamplesRegistry.add('utm_campaign', {
          applyExamplesText: _lt("Use This For My Campaigns"),
      ```
      
      Task ID: 2047369
      PR #48299
      897724e5
    • Ipsita Borisagar's avatar
      [IMP] mail: add current user by default on new channel · f5fe11cf
      Ipsita Borisagar authored
      
      Before this commit, when a user creates a private channel without adding himself
      as a member of it, it raises an access error. After this commit, user will be
      automatically added as a member by default when creating a channel.
      
      It makes sense the creator is a member of its channel. Moreover it avoids
      issues on private channels.
      
      Task 2172420
      PR odoo/odoo#44454
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      f5fe11cf
    • Ipsita Borisagar's avatar
      [IMP] hr_holidays: ensure out_of_office_date_end is always set · 5a166fc4
      Ipsita Borisagar authored
      After this commit, out_of_office_date_end will always be set for consistency
      even in create mode with default partners.
      
      Task 2172420
      PR odoo/odoo#44454
      5a166fc4
    • vho's avatar
      [IMP] sales_team, web: add and improve color widget to improve UX on crm.tag · cb55b302
      vho authored
      
      The color picker help the user to choose a color instead of picking it
      by id.
      
      The title and arial-label "no-color" default value are removed from the
      picker_preview because they are not accurate. Instead name of currently set
      color is used.
      
      Task ID 2128166
      
      closes odoo/odoo#47474
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      cb55b302
  3. Apr 28, 2020
  4. Apr 29, 2020
  5. Apr 28, 2020
    • Nicolas Lempereur's avatar
      [FIX] web_editor: ol in ol no number skip · ec37d417
      Nicolas Lempereur authored
      
      In the case of an <ol> in an <ol> we would have something like:
      
      ```
      1.
         1.
         2.
      3.
      ```
      
      because the sublist itself in version of summernote.org we are using
      is a list item, so it takes one extraenous item.
      
      With this changeset we have something that makes more sense:
      
      ```
      1.
         1.
         2.
      2.
      ```
      
      Because there are tons of use case of different selection of list level
      and indent or outdent, this commit also simplify outdenting (eg. now we
      outdent all the element of the same level than the first indented).
      
      opw-2185406
      closes #48194
      
      closes odoo/odoo#50352
      
      X-original-commit: bbf4ad7d
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      ec37d417
  6. Apr 29, 2020
    • Ronald Portier's avatar
      [FIX] core: SSF should re-read from the record after saving · eae51e5f
      Ronald Portier authored
      
      Before this change, the SSF would read from the record after
      creation but wouldn't do so after a write.
      
      This doesn't conform to the behaviour of the web client (which does a
      read() after saving a form), and means the effect of field
      inverses (when the dependencies of a writable field are also in the
      form) or overrides to write wouldn't be visible afterwards.
      
      It's always possible to just re-create the form from scratch, but the
      intention has always been that the form would work correctly after a
      save.
      
      closes odoo/odoo#50363
      
      X-original-commit: 45398c09
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      eae51e5f
    • Hardik Prajapati's avatar
      [FIX] web: pivot view nocontenthelp message · c2d5a4be
      Hardik Prajapati authored
      Since the commit https://github.com/odoo/odoo/commit/46cf65d68e9c13193dff4b563b9b0bbb2199dfc1
      
      
      when help is not defined in action then nocontenthelp is displayed as
      [object, object] due to the desciption passed from renderder of the
      pivot view.
      
      So in this commit while calling the NoContentHelper pass the
      descitption as string instead of jquery element.
      we can use the t-value in template but that string will create
      issue for transalation so pass the desctiption from the pivot render.
      
      closes odoo/odoo#50347
      
      Taskid: 2240167
      Closes: #49859
      X-original-commit: c7cc672aba669175280d619ad39b14daefd7733f
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      c2d5a4be
  7. Apr 28, 2020
  8. Apr 27, 2020
  9. Apr 28, 2020
  10. Apr 24, 2020
  11. Apr 28, 2020
  12. Apr 27, 2020
  13. Apr 22, 2020
    • Yannick Tivisse's avatar
      [IMP] various: Set a default random color on certain tags · 85b199b9
      Yannick Tivisse authored
      
      Purpose
      =======
      
      For a tag to be displayed on a kanban card, it needs to have a color set.
      We won't be changing that behaviour, since it would mean having
      two options > the color, and whether or not to show it in the kanban
      
      The purpose of this task is to set a color on new tags to make the user
      save a bit more time, set a color for him as he might not find the feature,
      and make sure the tag will be on the kanban cards.
      
      Specification
      =============
      
      For each of the following models, at creation, set a random integer between
      1 and 11 in field 'color'
      
      Models:
      res.partner.category
      crm.tag
      project.tags
      hr.applicant.category
      helpdesk.tag
      hr.employee.category
      event.track.tag
      mrp.eco.tag
      repair.tags
      
      closes odoo/odoo#49967
      
      Taskid: 2234527
      Related: odoo/enterprise#10112
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      85b199b9
  14. Apr 28, 2020
  15. Apr 27, 2020
    • fja-odoo's avatar
      [IMP] website, *: warn user about outdated blocks · 11c60739
      fja-odoo authored
      * = mass_mailing, web_editor, website_crm, website_event, website_form,
      website_forum, website_hr_recruitment, website_mail_channel,
      website_mass_mailing, website_sale, website_slides
      
      When an outdated snippet's option are activated we display a warning
      in the left panel that inform the user about the potential
      malfunctions.
      
      To do so the snippet's template key is added to the snippet as
      data-snippet.
      If a snippet is "t-call" inside another snippet, it will need to use
      t-snippet-call instead of t-call to have the key on himself.
      
      Those unique keys are used on snippet selection to retrieve the
      snippet's version in the left panel and compare it with the currently
      selected snippet's version. Versions are describe with data-vcss,
      data-vjs and data-vxml. If a snippet's key is not in the left panel we
      consider that snippet as outdated.
      
      Added some tests to ensure that t-snippet and t-snippet-call really have
      their template key as data-snippet
      
      Adapted the views to the data-snippet changes adding
      data-snippet="tmpl_key".
      
      Part of: https://github.com/odoo/odoo/pull/44569
      
      
      task-2189669
      
      closes odoo/odoo#50254
      
      X-original-commit: 28a6cd49b6e87b75c2e70771e241c41778bf9e87
      Related: odoo/enterprise#10236
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      11c60739
    • fja-odoo's avatar
      [FIX] mass_mailing: fix duplicate snippet_options · 51ab03e4
      fja-odoo authored
      The web_editor snippet_options were duplicated
      
      Part of: https://github.com/odoo/odoo/pull/44569
      task-2189669
      
      X-original-commit: c8ec4ca2bb12e3a65665f5bdd7ad079243e030bd
      51ab03e4
Loading