Skip to content
Snippets Groups Projects
  1. Mar 04, 2021
  2. Feb 26, 2021
  3. Mar 04, 2021
  4. Mar 03, 2021
  5. Mar 04, 2021
    • aaj-odoo's avatar
      [FIX] mass_mailing: hide action buttons in 'sending' state · fa7db335
      aaj-odoo authored
      
      Before this commit:
      In a mass mailing, the action buttons such as 'put_in_queue' (Send) and
      'action_schedule_date' (Schedule) are visible in 'sending' state, which
      is not correct because users should not be able re-launch it in sending
      state.
      
      After this commit:
      We hide those action button in 'sending' state to prevent user from
      re-launching mass mailing when it's already in queue.
      
      Task-Id : 2469352
      
      closes odoo/odoo#67031
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      fa7db335
  6. Oct 21, 2020
  7. Mar 03, 2021
    • Goffin Simon's avatar
      [FIX] sale: Wrong untaxed_amount_to_invoice · 1314abba
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider an included tax T (10%) and a product P (11€) with invoicing policy based on delivery
      - Create a sale order SO with one line L with 2 P and T
      - Confirm SO and deliver it
      
      Bug:
      
      The untaxed_amount_to_invoice was 40€ on L instead 20€
      
      opw:2457660
      
      closes odoo/odoo#67181
      
      X-original-commit: 56d92277
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      1314abba
    • Géry Debongnie's avatar
      [FIX] web: prevent traceback when pressing TAB in color_picker widget · 580456b6
      Géry Debongnie authored
      
      The color_picker widget, that can be seen for example in the track form
      view for event tracks, had an issue: if the user clicked on it, then
      pressed TAB, a traceback was displayed.
      
      The problem comes from the fact that the color picker widget inherits
      from FieldInput, but is not a fieldinput, so many expectations made by
      the FieldInput code do not hold, such as the code run when handling
      navigation (by TAB and such keypress). Because of that, the code in
      _onNavigationMove crashed, because it expected an input.
      
      Since this is a bug fix, I simply disabled the navigation in that case,
      so no crash happens.  Sadly, this widget has still a big issue: it
      clearly does not work as most users would expect: pressing TAB or arrows
      should update the selection.  But this would be a more complicated
      refactoring, for a bug which is clearly not critical, therefore this
      commit implements the simple and safe solution.
      
      Also, we disable the focus outline to minimize the wrong expectation.
      Seeing them kind of implied that one could update the selection with the
      keyboard.
      
      Note that the widget color_picker was moved from another addon to web/, without
      any tests nor documentation.
      
      OPW 2467369
      
      closes odoo/odoo#67174
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      580456b6
    • Xavier Dubuc's avatar
      [FIX] mail: do not show falsy value in tracking values messages · aa5eaf69
      Xavier Dubuc authored
      
      task-2438828
      
      closes odoo/odoo#65183
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      aa5eaf69
    • Raphael Collet's avatar
      [FIX] website_event_meet: autovacuum method · f2122233
      Raphael Collet authored
      
      Convert the override of method `power_on()` to an `@autovacuum` method.
      
      closes odoo/odoo#67145
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      f2122233
    • Julien Castiaux's avatar
      [FIX] mass_mailing: wrong clicks_ratio compute · d4210430
      Julien Castiaux authored
      
      Fine tuning of 2d63fff1
      
      closes odoo/odoo#67150
      
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      d4210430
    • Géry Debongnie's avatar
      [FIX] web: issue with field named "length" · 8dbd1efe
      Géry Debongnie authored
      
      The underscore (_) library has a bug in which the _.each method does not
      work with object which contains a "length" property. This is because it
      does look for that key and if it is a number, it will assume that it is
      an array with that length value.  Nicely done...
      
      If that length value is set to 0, then it will just do nothing, since it
      thinks that it is dealing with an empty array.
      
      Note that if the value is set to an object, _.each is smart enough to
      notice that it cannot be an array, and will do the correct thing in this
      case.
      
      Usually, our _.each calls are safe, since we usually iterate on arrays,
      or on object with safe keys, or on object with values that cannot be a
      number.
      
      But there was 2 unsafe calls in basic_model, which leads to strange
      bugs: some code is skipped, and the form view is then confused.  The
      motivation for this fix is the fact that onchanges are not applied at
      all, if there is a length field set to 0.
      
      To fix this, we can just avoid using _.each.  Note to every Odoo JS
      developers reading this: new Odoo code should avoid using the _ and $
      libraries, because we do not really need them, and we want to keep our
      dependencies to the strict mininum.
      
      OPW: #2465808
      closes odoo/odoo#66126
      
      closes odoo/odoo#67138
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      8dbd1efe
    • Laurent Smet's avatar
      [FIX] hr_expense: Don't write 'payment_id' on aml · 2d7f45e7
      Laurent Smet authored
      
      This line was an hack to manage the custom register payment wizard of hr_expense.
      Since this wizard is gone and 'payment_id' is a related stored field in account.move.line, we should not write such data explicitely.
      
      closes odoo/odoo#67127
      
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      2d7f45e7
    • Josse Colpaert's avatar
      [FIX] l10n_id_efaktur: filter invoice lines on display_type · 8cd0264d
      Josse Colpaert authored
      
      opw-2451571
      
      closes odoo/odoo#67119
      
      X-original-commit: 24c32607
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      8cd0264d
    • Arnold Moyaux's avatar
      [FIX] stock: keep the pricision for quantity · 744effb4
      Arnold Moyaux authored
      
      partial revert of 45fad70e
      digits=0 does nothing except define the colum type as numeric
      or float8.
      
      closes odoo/odoo#67129
      
      Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
      744effb4
  8. Mar 02, 2021
  9. Mar 01, 2021
  10. Feb 26, 2021
  11. Mar 02, 2021
  12. Mar 01, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: include all odoo files in src build · cfdf6f16
      Christophe Monniez authored
      Since this old commit 73592487, the files that are packaged are
      chosen by a list of allowed extensions. This list have to be maintained
      each time that a developer adds a new kind of file in a module. This is
      error prone [0] as most developer are not aware of that and it's difficult
      to monitor.
      
      Moreover, there is no reason to have a different list of installed files
      when one install from the git repo instead of the source package.
      
      With this commit, all [1] odoo sources files are included in the source
      packaging and the only thing to maintain is a small black-list of file
      extensions like for Python bytecode files and for version control files.
      
      [0] see commit d33c05b6 that fix `.json` missing files.
      [1] graft command: https://docs.python.org/3/distutils/commandref.html
      
      
      
      closes odoo/odoo#67016
      
      X-original-commit: 9c2ce1f1
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      cfdf6f16
    • Odoo's Mergebot's avatar
      [MERGE][FIX] survey, website_slides: split computed editable fields · 6cfaf10e
      Odoo's Mergebot authored
      
      Purpose
      =======
      Some computed stored editable fields are computed in the same method.
      
      In that case, when one of the value is provided in a create / write call,
      the computed method is not called and other fields computed in the same
      method do not have the right value.
      
      Task 2377119
      COM odoo/odoo/pull/65772
      ENT odoo/enterprise/pull/16221
      
      closes odoo/odoo#65772
      
      Related: odoo/enterprise#16221
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      6cfaf10e
    • std-odoo's avatar
      [REF] survey: split computed editable fields · 842a9936
      std-odoo authored
      Purpose
      =======
      Some computed stored editable fields are computed in the same method.
      
      In that case, when one of the value is provided in a create / write call,
      the computed method is not called and other fields computed in the same
      method do not have the right value.
      
      Task 2377119
      COM odoo/odoo/pull/65772
      ENT odoo/enterprise/pull/16221
      842a9936
    • std-odoo's avatar
      [REF] website_slides: split computed editable fields · d7e55926
      std-odoo authored
      Purpose
      =======
      Some computed stored editable fields are computed in the same method.
      
      In that case, when one of the value is provided in a create / write call,
      the computed method is not called and other fields computed in the same
      method do not have the right value.
      
      Task 2377119
      COM odoo/odoo/pull/65772
      ENT odoo/enterprise/pull/16221
      d7e55926
    • Goffin Simon's avatar
      [FIX] payment: Error when creating a transaction · 41b0d78c
      Goffin Simon authored
      
      The field partner_id on model payment.transaction is not required
      So in some cases if the field partner_id was not in the values
      It raised a traceback.
      
      opw:2467971
      
      closes odoo/odoo#66980
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      41b0d78c
  13. Feb 26, 2021
    • Adrien Dieudonne's avatar
      [FIX] hr_contract: Avoid horizontal scroll in contract form on mobile · 64552a61
      Adrien Dieudonne authored
      
      The following warning is very long in absolute position. The following
      text: "Calendar Mismatch : The employee's calendar does not match its
      current contract calendar. This could lead to unexpected behaviors."
      is invisible but takes a lot of width on the same line.
      
      Now, the item is a block of 0px height and doesn't take space.
      This avoids the horizontal scroll on mobile.
      
      Note that the item is displayed at the wrong place anyway.
      This will be fixed in master.
      
      Steps to reproduce:
      - Payroll / Employees / All contracts
      - Change "Working Schedule" field
      
      closes odoo/odoo#66944
      
      Task-id: 1929043
      X-original-commit: af81ac1a
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      64552a61
Loading