Skip to content
Snippets Groups Projects
  1. Apr 20, 2020
    • Prakash Prajapati's avatar
      [FIX] web: fix the scroll issue of kanban view with search panel · edeb8670
      Prakash Prajapati authored
      Currently in kanban view which contains search panel when user click
      on kanban dropdown menu then a dropdown menu will be hidden due to
      scrollbar of kanban view.
      
      This issue arises from this commit:
      https://github.com/odoo/odoo/commit/a95cbbd631a2fa9be62eb42cba43e853fdf4b789
      
      
      
      closes odoo/odoo#49791
      
      Task-id: 2204306
      Closes: #47586
      X-original-commit: d613bb8b
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      edeb8670
    • jerome hanke (jhk)'s avatar
      [FIX] website: theme color palette based on primary or alpha · fcc07467
      jerome hanke (jhk) authored
      
      Steps to reproduce:
      - install website
      - install the theme "clean"
      - go to website > customize > customize theme
      - select the first "extra color" (alpha) and change it
      
      Previous behavior:
      All extra color that have not been set previously have changed
      automatically without notice
      
      Current behavior:
      the theme is either showing primary/secondary colors or only "extra" colors
      Good themes are supposed to enforce primary = alpha and secondary = beta
      All extra color that have not been set previously change automatically but
      an information tooltip shows up when you hover alpha to avoid confusion
      
      opw-2180611
      
      Forward-Port-Of: #46099
      closes #49730
      
      closes odoo/odoo#49789
      
      X-original-commit: c9aada53b1e6b24da4e1fe9ac4d44db3ff8cacda
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      fcc07467
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] mail: Fallback to default company logo instead of odoobot · 4faf329d
      Andrea Grazioso (agr-odoo) authored
      
      For some specific report (i.e account followup report) the mail_message
      sent will contains no company informations because it will be sent on
      the partner context, so when generating the template the logo will be
      retrieved from the route /logo.png?company=False which yield back the
      odoo company logo.
      
      Adding a default 0 allow to retrieve the company logo for the current
      user
      
      opw-2232184
      
      closes odoo/odoo#49787
      
      X-original-commit: eea99fe1
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      4faf329d
    • Anh Thao Pham (pta)'s avatar
      [REF] hr*: convert onchange methods to stored-editable computed fields · 3bd34559
      Anh Thao Pham (pta) authored
      
      Impacted modules:
      hr, hr_contract, hr_recruitment, hr_payroll, fleet, hr_skills, hr_appraisal, ....
      
      Several onchanges have been converted to computed fields in the following modules :
          Community :
              - hr
              - hr_contract
              - hr_recruitment
              - hr_work_entry
              - hr_maintenance
              - hr_expense
              - hr_expense_check
              - hr_holidays
              - sale_expense
              - account_analytic_default_hr_expense
      
          Enterprise:
              - hr_contract_salary
              - hr_referral
              - hr_payroll
              - hr_payroll_expense
              - test_l10n_be_hr_payroll_account
      
      There are still 2 onchanges with complex behavior that couldn't be converted easily:
      - an onchange that updates "tz" (timezone) that is defined as a related field
        to "resource_id.tz". Apparently it is useless except to initialize the default
        value of "tz".
      - an onchange that updates "name" that is defined as a related field to
        "resource_id.name".
        the applicant.
      
      closes odoo/odoo#45414
      
      Taskid: 2169099
      Related: odoo/enterprise#8572
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      3bd34559
    • Julien Mougenot's avatar
      [FIX] web: set selection fields' default value in custom filters · f50c3298
      Julien Mougenot authored
      
      Before this commit, the 'selection' fields were treated like 'char' fields in the
      "Add Custom Filter" menu of the control panel's filter menu. This meant that their
      value was defaulted to "".
      
      Now, the default value of a selection field is its first selection value.
      
      closes odoo/odoo#49772
      
      X-original-commit: 62b62570725bc8eb3d3fa77fd1e8efd7a4fb5d2b
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      f50c3298
    • Kevin Baptiste's avatar
      [FIX] hr_holidays: "Everyone" view on calendar_event · b8a8ad27
      Kevin Baptiste authored
      
      Purpose
      =======
      
      Avoid to show to much information to leave responsibles.
      
      Specification
      =============
      
      - Dynamically add/remove the leave_manager_ids on the group
        group_hr_holidays_responsible, on employee creation/modification
      - Retrict the available employees when creating a leave. For
        manager/users : Everyone. For responsibles: The employee for
        who the user is responsible. Otherwise: Only me.
      - Don't obfuscate the leave name on employees for who I'm the
        responsible.
      - Add a new SQL view for "Everyone" report. To select only the
        information we want to share instead of showing the hr.leave
        model directly.
      
      closes odoo/odoo#47659
      
      closes odoo/odoo#49765
      
      Taskid: 2206862
      Related: odoo/enterprise#9239
      Related: odoo/enterprise#10021
      X-original-commit: 781147dcaf1552b8f2ab687ed73034b8fd1f7352
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      b8a8ad27
    • David Beguin's avatar
      [FIX] crm: reset auto probability if auto probability could not be computed · 755e00bd
      David Beguin authored
      
      Or, in other words, set auto probability to 0 if no statistics yet.
      
      Before this commit, if the automated probability could not be computed,
      the automated_probability field on crm.lead was not modified.
      That led to having leads stuck at 100% once won, even if going back to another
      stage.
      This happened only :
        - in an empty DB (no demo data) or
        - in a DB where the PLS cron had never ran and the PLS threshold was
          inactivated (=0).
      Because, if the frequency table has never been built, we cannot compute the
      automated probability.
      
      After this commit, if the automated probability cannot be computed, we set
      it by default to 0. If the probability and the automated probability was
      aligned, probability is also set to 0.
      
      Note: this could be an issue if both probabilities were aligned, then
      someone deactivate the PLS cron and set the threshold to 0 (if not yet the
      case), and clear the frequency table. (unlikely to happen but still..)
      When updating updating a lead, we would lose the probability
      -> auto proba set to 0 + proba set to 0 as they were aligned.
      
      Task ID: 2232036
      
      closes odoo/odoo#49766
      
      X-original-commit: b43ecf73958273a126135966422112b90f9f12cc
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      755e00bd
    • Thibault Delavallée's avatar
      [FIX] survey: fix quick access test · fa55c0e9
      Thibault Delavallée authored
      
      Purpose of this commit is to clean test that broke nightly recently.
      
      Task ID
      
      closes odoo/odoo#49759
      
      X-original-commit: 61f9b05ccc61a7e00dc5cc43cb1f8196195bee60
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      fa55c0e9
    • Nicolas Martinelli's avatar
      [FIX] sale: quotation viewed email · c4b3d5b8
      Nicolas Martinelli authored
      
      According to some PO, the email is useless to salespersons.
      According to salespersons, the email is very useful.
      
      This reverts a26a0103
      
      opw-2215123
      
      closes odoo/odoo#49756
      
      X-original-commit: 0709890357005e4c1b205816061c3ec1582ad16d
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      c4b3d5b8
  2. Apr 15, 2020
    • Goffin Simon's avatar
      [FIX] account: Invoice line account updated incorrectly · 71f1b344
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider the customer invoice journal J with the default credit account A1
      - Let's consider a customer invoice I with one line L1
      - On L1 is set account A2 and product P1
      - Import on I a new line L2 with account A3 and product P2
      
      Bug:
      
      The account of L1 was changed by A1 instead of keeping A2
      
      opw:2230808
      
      closes odoo/odoo#49582
      
      X-original-commit: 115a18a1
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      71f1b344
  3. Apr 10, 2020
  4. Apr 17, 2020
  5. Apr 18, 2020
    • Raphael Collet's avatar
      [FIX] fields: screwing up cache when rounding monetary value · e7b98b81
      Raphael Collet authored
      
      Consider a sales order with a single line.  Edit the sales order: remove
      the line, and add another line with the same subtotal.  When saving, the
      total of the sales order is 0.0.
      
      Here is the explanation: the form view performs a `write` on the sales
      order, and modifies the lines with a command `2` (remove line) and a
      command `0` (create line).
      
      After deleting the first order line, the cache is emptied, and a call to
      `flush()` forces the recomputation of the total.  The value is computed
      to be 0, and assigned to the field.  The assignment converts the value
      for the cache, without prefetching the currency field (optimization),
      and puts 0.0 in cache.  The assignment then converts the value for the
      database, which prefetches most fields on the sales order: the cache is
      now inconsistent and contains the old value V, while the database is
      then updated with 0.0.
      
      After creating the new order line, the total is once again recomputed.
      Its value is V, and because the cache also contains that value, no
      update is performed to the database, which remains at 0.0!
      
      The fix consists in avoiding the prefetching of fields when accessing
      the currency field to round a monetary value.
      
      opw-2223134
      
      closes odoo/odoo#49741
      
      X-original-commit: 048ea2f20a0a2fa6d629cbe262cbbe765248d36f
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      e7b98b81
  6. Apr 17, 2020
    • william's avatar
      [IMP] account: do not block user creation without CoA · 72c48efc
      william authored
      
      During the onboarding, if Invoicing is installed but no chart of account
      is set the field property_account_receivable_id and
      property_account_payable_id prevent from validating a new partner
      because they are required but not auto-filled, and the fields are not
      visible if Invoicing is not installed.
      
      closes odoo/odoo#49732
      
      X-original-commit: 29c362b7
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      Signed-off-by: default avatarwan <william-andre@users.noreply.github.com>
      72c48efc
    • Adrien Horgnies's avatar
      [IMP] l10n_fr: new CoA · 5844d57a
      Adrien Horgnies authored
      
      closes odoo/odoo#49727
      
      X-original-commit: 69e0a073968d07ed4e49f94190a30485f5369059
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      5844d57a
    • Lucas Perais (lpe)'s avatar
      [IMP] *: don't format integers in the relevant cases · 9edff7eb
      Lucas Perais (lpe) authored
      
      It is now possible not to format integers according to locale
      This is particularly interesting and relevant when a number holds
      some sort of code rather than a number
      
      Task 2050119
      
      *: base, fetchmail, l10n_cl
      
      closes odoo/odoo#39767
      
      Related: odoo/enterprise#6964
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      9edff7eb
    • Lucas Perais (lpe)'s avatar
      [IMP] web: Numeric fields can be non-formatted · 4c1feefd
      Lucas Perais (lpe) authored
      This commit introduces a new option in fields inheriting from type Numeric
      which is `format`.
      
      By default, Numeric fields are formatted according to their subtypes and locale
      Adding, in a view, the option format set to a falsy value
      will prevent the field's value from being formatted.
      
      ```
      <field name="int_field" options="{\'format\': false}"/>
      ```
      
      Task 2050119
      4c1feefd
    • Julien Mougenot's avatar
      [FIX] web,lunch: separate search panel domain · 7ace5a98
      Julien Mougenot authored
      
      Before this commit, the SearchPanel widget was given a single unified domain coming
      from the view/controller. The issue was that some modules injected additional leaves
      in this domain and there was no way to remove them/separate them from the original
      view/controller domain.
      
      Now, another paramater (the `viewDomain`) is given to the SearchPanel, containing
      the distinct domain related to the view. The Lunch module has been adapted to give
      the `location` domain through this new key.
      
      Note that some tests steps had to be inverted since the method retreiving the
      domain of the view/controller is asynchronous (needed by Lunch to give time to the
      model to be loaded). It mainly concerns the RPC order which does not matter in this
      case.
      
      Task 2239706
      
      closes odoo/odoo#49720
      
      X-original-commit: e895e553
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      7ace5a98
  7. Apr 09, 2020
  8. Apr 17, 2020
  9. Apr 15, 2020
  10. Apr 17, 2020
    • jerome hanke (jhk)'s avatar
      [FIX] board: calendar view height is not zero · 5eccc6a7
      jerome hanke (jhk) authored
      
      Steps to reproduce:
      - install calendar and dashboard
      - go to calendar > favorites > add to my dashboard
      - go to dashboard
      
      Previous behavior:
      the calendar view in the dashboard does not show the main widget
      because height is 0px (because the structure is different that normal
      calendar view where view height is restricted based on viewport).
      
      Current behavior:
      calendar views are properly displayed in dashboard
      
      opw-2226565
      
      closes odoo/odoo#49709
      
      X-original-commit: d1218004
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarmightyjol <jhk-odoo@users.noreply.github.com>
      5eccc6a7
    • Nicolas Martinelli's avatar
      [FIX] stock: correct qty comparison · a834a1b2
      Nicolas Martinelli authored
      
      Use `float_compare` to avoid the usual float representation comparison
      errors.
      
      opw-2215497
      
      closes odoo/odoo#49702
      
      X-original-commit: 500240874cd21c6950210968c8c7e8d84c1c4bee
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      a834a1b2
    • Stéphane Debauche's avatar
      [FIX] web: fix nested o2m edition traceback · 4d843de2
      Stéphane Debauche authored
      
      There's a traceback when we edit an activity on a campaign
      
        * Create a child activity
        * Save the activity (not the campaign)
        * Edit again the activity
        * -> Traceback
      
      Introduced in a9cebd5a
      
      Task ID 2220930
      
      closes odoo/odoo#49698
      
      X-original-commit: efa8952c39b0bcb0969013dc22e05b5d61ff1c66
      Related: odoo/enterprise#9964
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      4d843de2
    • Nicolas Martinelli's avatar
      [FIX] calendar: all day event · 7c430846
      Nicolas Martinelli authored
      
      - Go to the calendar list view
      - Click on 'Create'
      - Tick 'All Day'
      - Set a start date
      
      The end date is set to the day before.
      
      This happens because in this case, the default duration is zero.
      
      opw-2236766
      
      closes odoo/odoo#49682
      
      X-original-commit: 0b6ae3ed
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      7c430846
    • Florian Gilbert's avatar
      [IMP] account: Verify if res_partner_bank exists in set_bank_account. · 25f157ef
      Florian Gilbert authored
      
      When creating or writing on a account.journal model,
      it is possible to pass a char representing the bank account number
      into bank_acc_number instead of passing directly a res.partner.bank.
      In case we pass bank_acc_number the system will try to create automatically
      a new res.partner.bank for us, however if a res.partner.bank already exists
      with the same account number it will result in an error as we have a unicity
      constraint for that. Therefore it is best to first seach for such an existing
      res.partner.bank before trying to create it. The search is done on the
      sanitized_account_number field as the unicity constraint is on that field.
      
      closes odoo/odoo#49637
      
      Signed-off-by: default avatarCedric Snauwaert (csn) <csn@openerp.com>
      25f157ef
    • Odoo's Mergebot's avatar
      [MERGE] mail, various: clean mail alias mixin usage · 7e2971d0
      Odoo's Mergebot authored
      
      PURPOSE
      
      Clean mail alias mixin use through addons and clean its code
      
      SPECIFICATIONS
      
      Remove unnecessary code overlap: duplicate of model computation
      or alias definitions.
      
      Remove alias creation relying on context and instead give a single
      method to override giving alias creation values.
      
      Go through all addons using aliases to clean its usage code.
      
      Remove remaining alias fields on res.users, linked to a now removed
      feature.
      
      Finally make alias creation work in batch mode in mail_alias_mixin.
      
      LINKS
      
      Task ID 1919277
      Community odoo/odoo#41160
      Enterprise odoo/enterprise#6983
      Upgrade odoo/upgrade#872
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      7e2971d0
    • ryv-odoo's avatar
      [REF] mail: make alias mixin multi-enabled · 186cfb5e
      ryv-odoo authored
      
      Purpose of this commit is to allow multi-create in alias mixin by correctly
      creating / updating aliases in batch.
      
      Task ID 1919277
      Community PR odoo/odoo#41160
      Enterprise PR odoo/enterprise#6983
      Upgrade PR odoo/upgrade#872
      
      Co-Authored-By: default avatarRémy Voet <ryv@odoo.com>
      Co-Authored-By: default avatarThibault Delavallée <tde@odoo.com>
      186cfb5e
    • Thibault Delavallée's avatar
      [REF] mail, various: clean usage of mail alias · 7cfd364d
      Thibault Delavallée authored
      
      Clean the usage of mail aliases and more specifically its associated mixin
      `mail.alias.mixin` .
      
      Stop using context for model of aliases, and correctly give model_id and
      parent_model_id to the call chain through a cleaned code easier to override.
      
      We also merge methods get_alias_model_name and get_alias_values in single one
      called before record creation (alias first values) and right after (to have
      values depending on actual record).
      
      LINKS
      
      Task ID 1919277
      Community PR odoo/odoo#41160
      Enterprise PR odoo/enterprise#6983
      Upgrade PR odoo/upgrade#872
      
      Co-Authored-By: default avatarRémy Voet <ryv@odoo.com>
      Co-Authored-By: default avatarThibault Delavallée <tde@odoo.com>
      7cfd364d
    • Thibault Delavallée's avatar
      [FIX] crm, hr_recruitment: clean manual alias creation · 4b358935
      Thibault Delavallée authored
      
      Purpose of this commit is to clean manual alias creation by correctly giving
      field values instead of relying on magic from model_name to model_id. Code
      is more understandable now.
      
      Task ID 1919277
      Community PR odoo/odoo#41160
      Enterprise PR odoo/enterprise#6983
      Upgrade PR odoo/upgrade#872
      
      Co-Authored-By: default avatarRémy Voet <ryv@odoo.com>
      Co-Authored-By: default avatarThibault Delavallée <tde@odoo.com>
      4b358935
    • ryv-odoo's avatar
      [REM] mail: remove leftover mail alias fields from res.users · 4385ed02
      ryv-odoo authored
      
      A mail alias is still linked with the res.users model with 2 fields, alias_id
      and alias_contact (related). It is not used anymore. We can therefore remove
      those fields.
      
      Aliases were added at 052f2ace . Purpose was to be able to discuss with
      users directly using Odoo as a mailbox. However it was not usable and was
      quickly deactivated. Aliases on res.users was removed at 029d1baf . It was
      decided at that time to not support alias on users anymore as it was creating
      more issues than adding communication facility.
      
      This commit finally removes the unused fields. If necessary in some custom
      flow they can always be added through studio.
      
      LINKS
      
      Task ID 1919277
      Community PR odoo/odoo#41160
      Enterprise PR odoo/enterprise#6983
      Upgrade PR odoo/upgrade#872
      
      Co-Authored-By: default avatarRémy Voet <ryv@odoo.com>
      Co-Authored-By: default avatarThibault Delavallée <tde@odoo.com>
      4385ed02
  11. Apr 16, 2020
Loading