Skip to content
Snippets Groups Projects
  1. Apr 30, 2020
    • Nicolas Lempereur's avatar
      [FIX] website: menu translation on website · 5f7de622
      Nicolas Lempereur authored
      
      Currently, the menu are only translated for installed language when we
      create a new website.
      
      When we create a new menu (eg. by installing a module) or install a new
      language we will only translate menu without website_id set, so the menu
      are not translated.
      
      With this changeset, we try to match translation of menu without
      website_id to menu with website_id when translations are updated:
      
      - when a language is installed/updated
      - when a module is installed/updated
      
      Without the changeset, the added test would fail with:
      
      - "Menu in english" != "Menu en français"
        Load translation add missing translation from template menu
      
      - "Menu in french" != "Menu en français"
        Load translation with overwriting update existing menu from template
      
      fixes #43365
      opw-2209864
      closes #48031
      
      closes odoo/odoo#50498
      
      X-original-commit: 998987f8ee148235f4025eb97a424e838ac6fc9f
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      5f7de622
  2. Apr 29, 2020
    • Xavier Morel's avatar
      [FIX] base: translations when dev-mode is enabled · e72c6093
      Xavier Morel authored
      
      When computing the `arch` from the arch_db, the field gets translated
      as a matter of course as `arch_db` is a stored field with a
      translation method. This means `arch` is assumed to be in the proper
      language in the cache.
      
      However when reading from the filesystem (dev=xml) this is not the
      case, and the view XML ends up untranslated.
      
      Fix the issue by applying the translation function from arch_db onto
      the stuff we got from the filesystem.
      
      Note: under the assumption that we *do not* want to store translated
      archs in arch_db, explicitly set the lang to None when resetting
      views.
      
      Task 2059557
      
      closes odoo/odoo#50389
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      e72c6093
  3. May 01, 2020
    • DramixDw's avatar
      [IMP] website: simplify website menu · 9b982941
      DramixDw authored
      
      Some apps, once installed, automatically create a menuitem in website.
      What complexify the UI and create useless menu withtout plusvalue.
      
      It is not because you install livechat to make support online, that you want
      a link in your menu to show stats e.g.
      
      Now we remove the default menu created, and help user to find it when he create
      a link. The autocomplete suggest most of the main App's controllers
      
      task-2189613
      
      closes odoo/odoo#49081
      
      Related: odoo/enterprise#9733
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      9b982941
    • DramixDw's avatar
      [REM] website,*: remove About us page and references · 52c23e01
      DramixDw authored
      Remove the default about us page because it could be easily recreated and
      doesn't add a lot of value to the website.
      
      task-2189613
      52c23e01
  4. Apr 30, 2020
  5. Apr 29, 2020
  6. Apr 30, 2020
    • Sébastien Mottet (oms)'s avatar
      [IMP] mail, crm: add view types for crm.lead model when coming from activity menu · debeec12
      Sébastien Mottet (oms) authored
      
      Purpose of this commit is to allow customization of view types available when
      using the activity menu. By default only kanban, list and form are available
      as before.
      
      Calendar, pivot, graph and activity have been added for leads, allowing
      better user experience in their use of activities.
      
      Task ID: 2228451
      Community PR odoo/odoo#50042
      Enterprise PR odoo/enterprise#10145
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      debeec12
    • Anh Thao Pham (pta)'s avatar
      [IMP] lunch: add list view for lunch.product.report · 8b6b09fc
      Anh Thao Pham (pta) authored
      
      - Move code from kanban view that is common with list view in common files
      - Add action to add selected products to cart
      - Add/update tests
      
      closes odoo/odoo#47556
      
      Taskid: 2160048
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      8b6b09fc
    • Florent de Labarre's avatar
      [FIX] hr_expense: unit_amount erase when set product_id · 918a5f2c
      Florent de Labarre authored
      
      When an expense is create from email, if the product is not set, when you want set the product it is erase the unit price.
      
      closes odoo/odoo#50397
      
      X-original-commit: 74736914
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      918a5f2c
    • Odoo's Mergebot's avatar
      [FW][MERGE] base,note,snailmail: perf of users and partners create/write · a5e70e6f
      Odoo's Mergebot authored
      
      Following the new populate functionality (populating the database with generated records),
      this PR aims to improve:
      
      * the creation of users (missed batching opportunity)
      * the update of partners (optimized write to potentially reduce database requests).
      
      Followup of #48912
      Task Id - 2229358
      
      closes odoo/odoo#50452
      
      Forward-port-of: odoo/odoo#50367
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      Unverified
      a5e70e6f
    • Victor Feyens's avatar
      [IMP] base: reduce ref calls in users write override. · bc232dcc
      Victor Feyens authored
      ref() always trigger a database query to verify record still exists.
      
      In frequently used methods, it's best to avoid ref calls if not needed:
      
      * either the records should always exist
      * either the record isn't always needed and the ref can be sometimes
      avoided.
      
      X-original-commit: c1e05da7b71c8274aff00d67f8d1bc7e209fcaab
      bc232dcc
    • Victor Feyens's avatar
      [IMP] note: create users in batch · e8f3146f
      Victor Feyens authored
      When note is installed, res.users are created one by one because its
      create override isn't adapted to work in batched.
      
      This commit ensures the create override is adapted to ensure users are
      still created in batch when note is installed.
      
      X-original-commit: 1cf7e1ac5dbf174e756a01f9b75abd09b168e52a
      e8f3146f
    • Victor Feyens's avatar
      [IMP] snailmail: res.partner write performance · db79d20a
      Victor Feyens authored
      Do not loop through the partners, doing the same stuff n times, and
      potentially doing multiple searches when one is enough.
      
      X-original-commit: 35713d2ff46dcfc4a578c41dad6f786919754ca2
      db79d20a
    • 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>
      Unverified
      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
  7. 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
  8. Apr 28, 2020
  9. Apr 29, 2020
Loading