Skip to content
Snippets Groups Projects
  1. Jan 29, 2021
  2. Jan 28, 2021
  3. Jan 29, 2021
    • Martin Trigaux's avatar
      [FIX] web: translate remaining days · 51d173d4
      Martin Trigaux authored
      This is the javascript equivalent of `_("Foo %s" % bar)`
      https://www.odoo.com/documentation/master/reference/translations.html#variables
      
      
      
      Forward port of odoo/odoo#65004
      
      closes odoo/odoo#65245
      
      X-original-commit: a672b37240170b554bdd5993e4049cf5d5b040db
      Related: odoo/enterprise#16027
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      51d173d4
    • Mohammed Shekha's avatar
      [FIX] *: update tour sequence · 706929e1
      Mohammed Shekha authored
      
      with this commit we are updating sequence of onboarding tours
      
      task-2444153
      
      closes odoo/odoo#65244
      
      X-original-commit: a928beccb09f4db4234356e5e4f7bdf090ecc964
      Related: odoo/enterprise#16026
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      706929e1
    • Jérémy Hennecart's avatar
      [FIX] mass_mailing: adapt the year in the footer theme · 81377dab
      Jérémy Hennecart authored
      
      Replace the hardcoded year in the footer by the year dynamicaly
      fetch from the current date.
      
      task-2431308
      
      closes odoo/odoo#65243
      
      X-original-commit: f4663c69df03c9219cc613164b03e5860956b837
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      81377dab
    • Odoo's Mergebot's avatar
      [MERGE] crm: fix randomly failing tests about query counters and assign domain · 8e1bb0cd
      Odoo's Mergebot authored
      
      PURPOSE
      
      Fix recently added lead assignment tests, notably about query counters
      and random behavior of lead merge.
      
      SPECIFICATIONS
      
      Split performance tests from unit tests. Performance tests should be
      reproducible. Currently there are too much varying query counters.
      
      Fix lead merge process done during assign. As duplicate leads are merged
      final opportunity could not fit team domain anymore. This is a side effect
      of lead deduplication. In this case this is linked to priority field that is set
      to the value of the "final" opportunity, whatever the value of other leads
      merged into it. We think that priority is a field that should be managed
      more carefully. We choose to set it as the highest value found in leads
      merged.
      
      LINKS
      
      Task ID-2446759 (lead merge priority field management)
      Task ID-2446883 (query counters fix)
      PR odoo/odoo#65016
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      8e1bb0cd
    • Thibault Delavallée's avatar
      [IMP] crm: take highest priority when merging leads · 9d096592
      Thibault Delavallée authored
      When merging leads final priority is currently the one of the lead considered
      as the master lead. This is based on ``_sort_by_confidence_level`` who sorts
      on confidence but not on priority.
      
      We think final priority should be the highest one from merged leads. Indeed
      if a top priority lead is merged into a low priority one we should not loose
      the priority information. It is better to keep the final lead with an high
      priority and let salesmen move it downwards.
      
      LINKS
      
      Task ID-2446759 (lead merge priority field management)
      Task ID-2446883 (query counters fix)
      PR odoo/odoo#65016
      9d096592
    • Thibault Delavallée's avatar
      [REF] crm: improve code of value computation in _merge_opportunity · 3fff6f6a
      Thibault Delavallée authored
      Purpose of this commit is to make clearer how final opportunity value are
      computed or chosen when merging leads. Functionally nothing should change
      with this commit.
      
      LINKS
      
      Task ID-2446759 (lead merge priority field management)
      Task ID-2446883 (query counters fix)
      PR odoo/odoo#65016
      3fff6f6a
    • Thibault Delavallée's avatar
      [IMP] crm: add some test about _merge_opportunity internals · ec382636
      Thibault Delavallée authored
      Purpose is to test internals of lead merge method, notably about values
      of final opportunity. That way we ensure future changes will be reflected
      in tests and regressions will be avoided.
      
      LINKS
      
      Task ID-2446759 (lead merge priority field management)
      Task ID-2446883 (query counters fix)
      PR odoo/odoo#65016
      ec382636
    • Thibault Delavallée's avatar
      [IMP] crm: split results-oriented from perf-oriented assign tests · 79e3636b
      Thibault Delavallée authored
      Purpose is to split assign tests related to results (leads being assigned,
      with deduplication, compared to team and member domains) from tests related
      to performance (query counters).
      
      Assign process is a random process: randomizing teams leads to searching,
      assigning and de-duplicating leads in various order. As a lot of search
      are implied during assign process query counters may vary from run to run.
      "Heavy" performance test included here ranged from 6K to 6.3K queries. Either
      we set high counters maximum which makes those tests less useful. Either we
      avoid random if possible which is what we decided to do by setting the seed
      of random in tests.
      
      SPECIFICATIONS
      
      For results oriented tests remove query counters. Those tests should simply
      ensure results of assign process, notably that even with random choice between
      team and users we always have leads assigned with right domain and counts.
      
      For performance oriented tests using query counters set random seed to have
      a reproducible scenario and have less random in query counters.
      
      LINKS
      
      Task ID-2446759 (lead merge priority field management)
      Task ID-2446883 (query counters fix)
      PR odoo/odoo#65016
      79e3636b
  4. Jan 25, 2021
    • Xavier BOL (xbo)'s avatar
      [FIX] sale_timesheet: review views inherited from project.task model · b2d2cfba
      Xavier BOL (xbo) authored
      
      Before this commit, when the user with no access right to Timesheet App
      wants to see the tasks in a project and sale_timesheet module is
      installed, the user has a traceback saying remaining_hours field is not
      find in the parent view of
      `sale_timesheet.view_task_form2_inherit_sale_timesheet`.
      
      This traceback is raised because the
      `hr_timesheet.view_task_form2_inherited` is not used if the user has no
      access right to Timesheet App and then remaining_hours field is not
      defined for this user because this field is appeared in the view in
      hr_timesheet module.
      
      This commit revises the views inherited from the project.task model to
      give the user without access rights in Timesheet the possibility to see
      the tasks in any project he can see.
      
      opw-2429662
      
      closes odoo/odoo#65000
      
      X-original-commit: d6361403
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      b2d2cfba
  5. Jan 28, 2021
  6. Jan 27, 2021
  7. Jan 28, 2021
  8. Jan 27, 2021
  9. Jan 22, 2021
  10. Jan 28, 2021
    • Mohammed Shekha's avatar
      [IMP] web: graph: improve measure labels · 536c0049
      Mohammed Shekha authored
      
      before this commit: when graph measure field has string attribute and apply
      that field as measure then graph measure label uses field definition string
      instead of view string, due to this measure dropdown and graph measure label
      has different strings.
      
      after this commit: when applying measure graph measure label will display
      field string defined on view first else field definition string will be
      displayed.
      
      task-2264636
      
      closes odoo/odoo#63422
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      536c0049
    • Nicolas Lempereur's avatar
      [FIX] web: nested x2many with no widget and onchanges · b37d0057
      Nicolas Lempereur authored
      
      Let's assume the following situation: in a form view, there is a
      one2many field A displayed as a list (non editable). In the list,
      there is another one2many field B displayed with no widget (it
      basically displays "X records"). In A's form view, B is also
      displayed, but this time as a list.
      
      There is an onchange on the main form view that adds a line in A,
      (and simply sets B to [[5]], i.e. 'No record').
      
      Before this commit, if the user opened the newly added sub record in
      A, and clicked on 'Add a line' of B, it crashed.
      
      The cause of the crash was that the wrong viewType was used to
      create the new (default) record in B: it used the original
      viewType, which was undefined (B is displayed with no widget in
      A's list). With this commit, we use the viewType of B that is used
      to edit it, in this case 'list'.
      
      In the slighlty different scenario where B is displayed with
      widget many2many_tags in A's list, there were no crash, but wrong
      fieldNames were sent to the 'default_get' RPC. As a consequence,
      default values for fields in B's list were potentially not loaded.
      
      opw-2422806
      closes #64793
      
      closes odoo/odoo#65186
      
      X-original-commit: 4212f84d
      Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Co-authored-by: default avatarAaron Bohy <aab@odoo.com>
      b37d0057
Loading