Skip to content
Snippets Groups Projects
  1. Feb 26, 2023
  2. Feb 24, 2023
  3. Feb 23, 2023
    • Martin Trigaux's avatar
      [I18N] l10n_it_edi: correct translation · b8f65c0e
      Martin Trigaux authored
      
      Courtesy of Marianna (cima)
      
      closes odoo/odoo#113524
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      b8f65c0e
    • gawa-odoo's avatar
      [FIX] l10n_de: wrong placement of line 83 (and computation) · 20638785
      gawa-odoo authored
      
      The line was supposed to mention the remaining surplus,
      not the total difference between input and output tax.
      
      closes odoo/odoo#113523
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      20638785
    • Julien Van Roy's avatar
      [IMP] account_edi_ubl_cii: UBL Bis 3 add support Finland · 75ce0280
      Julien Van Roy authored
      
      Finland is comprised in the EAS list but is not currently supported in
      Odoo. This commit makes UBL Bis 3 available for Finnish companies.
      
      opw-3178684
      
      closes odoo/odoo#113410
      
      Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
      75ce0280
    • Victor Piryns (pivi)'s avatar
      [FIX] snailmail: don't delete letter we trying to resend · 5cfbfa8e
      Victor Piryns (pivi) authored
      
      Current behaviour:
      When trying the resend a snailmail that had a format error, by
      adding a cover we get an error that a record we trying to access is
      deleted.
      
      Expected behaviour:
      We shouldn't delete the letter that we are trying to resend.
      
      Steps to reproduce:
      - Install Invoicing
      - Add an IAP account with some credits
      - Create a contact with a reallllyyyy long address, to overfill the
        fields.
      - Create an invoice for that customer, try to print/send a snailmail
      - It should fail without a message, then scroll down to the red
        paperplane, add the cover and update resend, you get an error
        about the missing record.
      
      Reason for the problem:
      This legacy code, so maybe in the past it used to work a bit
      differently. When trying to resend the letter, we are unlinking it's
      attachment (reasons for that are unknown to me), which is linked
      with a `Many2One` with letter with a cascading delete, so we end up
      deleting the `snailmail_letter` that we are iterating over, then
      when trying to write, it throws the error.
      
      Fix:
      Remove the link between the attachment and the letter before the deletion
      of the `attachment_id`, so the letter is not being deleted.
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - master
      
      opw-3111774
      
      closes odoo/odoo#113005
      
      Signed-off-by: default avatarPiryns Victor (pivi) <pivi@odoo.com>
      5cfbfa8e
  4. Feb 22, 2023
    • nda-odoo's avatar
      [IMP] core: add query time in the logging of SQL queries · b5ca9664
      nda-odoo authored
      
      backport of 46040d11
      
      closes odoo/odoo#112841
      
      Signed-off-by: default avatarRémy Voet <ryv@odoo.com>
      b5ca9664
    • Yolann Sabaux's avatar
      [FIX] account_check_printing: extend limit for check numbering · 36652653
      Yolann Sabaux authored
      Steps to reproduce:
      - Create a new journal Bank
      - In Sequence, find the 'New Bank Check" and edit it so the sequence can be 10 number digits long
      - Create a Vendor Payments with the the New Banck and Check as a method
      - Click on Print a check
      - Set any number > 2147483647 and validate
      
      Issue:
      Traceback
      
      Cause:
      The query SQL make a check to verifiy that the number is correct ('025'::integer == '25'::integer but '025'!='25)
      But using INTEGER limits the number up to 2147483647 (https://www.postgresql.org/docs/current/datatype-numeric.html
      
      )
      
      Solution:
      Use BIGINT whose limit is 9223372036854775807
      
      opw-3140973
      
      closes odoo/odoo#112832
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      36652653
    • xO-Tx's avatar
      [FIX] website: fix header shadow color · 3e58af4b
      xO-Tx authored
      
      To reproduce the issue:
      
      - Website > Edit mode > Click on header
      - Change the shadow color of the header to a suggested gray > it only
        works with normal colors but not grays.
      - Change the header to "Header full" (it has no shadow by default)
      - Add a shadow > It works
      - Change the shadow color to a gray > it is reverted to no shadow.
      
      To explain what happens exactly, let's suppose we want to set the gray
      color from the custom property "--900":
      
      When this color selected on colorpicker, the `customizeWebsiteVariable`
      method will update assets to set a new user value:
      
      `'menu-box-shadow': var(--900) ...`
      
      But when the SCSS is compiled, the property name (here "--900") is
      computed as a number which generates a wrong CSS value: `var(900) ...`
      
      The goal of this commit is to prevent this behaviour by protecting
      colorpicker variable names so they cannot be used for any further math.
      
      task-3069518
      
      closes odoo/odoo#105916
      
      Signed-off-by: default avatarArthur Detroux (ard) <ard@odoo.com>
      3e58af4b
  5. Feb 21, 2023
    • Florent de Labarre's avatar
      [FIX] product: prevent memory crash · 00fa2a3f
      Florent de Labarre authored
      
      In DB with lot of product.template with this domain [('barcode','!=','truc')] it is possible to get a MemoryError.
      
      closes odoo/odoo#113254
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      00fa2a3f
    • Rémy Voet (ryv)'s avatar
      [REM] base: remove `_patch_method` and `_revert_method` · 485aa71a
      Rémy Voet (ryv) authored
      
      There is only one legitimate usage of `_patch_method` (base_automation)
      and none of `_revert_method`. The other uses are in tests and they are
      all wrong: if the test crashes between the `_patch_method` and the
      `_revert_method`, the method will not be reverted.
      
      For the only proper usage of `_patch_method`, move the code to this
      place. Correct tests using `_patch_method`/`_revert_method` by calling
      the `patch` method of `BaseCase`.
      
      Also, remove the `api.returns` from the `create` method of `BaseModel`
      as it is useless and confusing. In fact, we never use it because we
      have a special treatment at the RPC level for the `create` method
      (see `_call_kw_model_create`).
      
      closes odoo/odoo#110370
      
      closes odoo/odoo#113171
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      485aa71a
    • Paolo Gatti (pgi)'s avatar
      [FIX] l10n_it_edi, l10n_it_edi_sdicoop: several fixes and improvements · cfd80127
      Paolo Gatti (pgi) authored
      - l10n_it_edi_sdicoop: EDI receiving cron error handling fix
      If we cannot receive invoices or bills from the IAP proxy we also can't
      iterate over them
      
      - l10n_it_edi: Check edi_format before trying to remove signature
      The edi_format must be checked before trying to remove the eventual
      PKCS#7 signature from the file, otherwise we're uselessly going to try
      and remove the signature for every edi_format check (facturX etc.)
      
      - l10n_it_edi: .p7m files can wrongly be missing the signature
      In the case that the .p7m extension is put by mistake, try to use the
      content of the file as it is before discarding it.
      
      Task link: https://www.odoo.com/web#id=3189457&model=project.task
      
      
      Task-3189457
      
      closes odoo/odoo#112845
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      cfd80127
    • Adrien Widart (awt)'s avatar
      [FIX] purchase_stock: add POL to existing PO if draft · e30da297
      Adrien Widart (awt) authored
      
      To reproduce the issue:
      1. In Settings:
         - Days to Purchase: 10
      2. Create two products P01, P02:
         - Storable
         - With the same seller
           - Delivery Lead Time: 1.0
      3. On replenishment page, create a new line:
         - Product: P01
         - Min Qty: 1.0
      4. Order once
         - a RfQ is created and the order deadline is in ten days
      5. Time travel to the next day
      6. Repeat steps 3-4 with P02
      
      Error: a second RfQ has been generated. However, as the first one is
      still in draft state, the POL of P02 should be added to that first RfQ
      
      When processing the orderpoint of P02, at some point, we try to find
      an existing RfQ with its order deadline equal to `today + 10 days`.
      Since we are the next day (step 5), the order deadline of the first
      RfQ is `today + 9 days`, so we don't find it.
      
      OPW-3047931
      
      closes odoo/odoo#112687
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      e30da297
    • Camille Spiritus's avatar
      [IMP] account-l10n_ch: remove ISR buttons · 703c09a9
      Camille Spiritus authored
      In Switzerland, an ISR payment file was to be added to an invoice.
      
      This file has since been replaced with the QR Bill: https://www.pikon.com/en/blog/everything-you-need-to-know-about-the-swiss-qr-bill/
      
      
      
      Removed the buttons allowing for the printing of ISR files, while keeping the variables and functions linked to it to follow stable policy.
      
      Those options will be permanently removed from 16.2.
      
      task-3040400
      
      closes odoo/odoo#110660
      
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      703c09a9
    • miad-odoo's avatar
      [FIX] survey: fix conditional display · 8ed4b7b6
      miad-odoo authored
      
      Before this commit, no check was made on conditional questions to see if their
      condition was valid when taking a survey.
      
      With this commit, if the survey is not in "random mode" (in which case,
      conditions do not apply), there is a check to see that a conditional question
      has a valid condition. If not, it is not used in the survey.
      
      Task-3083488
      
      closes odoo/odoo#110236
      
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      8ed4b7b6
  6. Feb 20, 2023
    • Stefan-Calin Crainiciuc (stcc)'s avatar
      [FIX] mrp: save qty_producing in tablet view · 25c34d1b
      Stefan-Calin Crainiciuc (stcc) authored
      
      Steps to reproduce:
      
      - Install mrp_workorder
      - Edit product Table > Inventory tab > Tracking: No Tracking
      - Manufacturing Orders > Create order for Table > Quantity = 3
      - Confirm > Work orders tab > Open Tablet View
      - Change the number of units to produce in the top from 3 to 2.
      - Pause > Continue
      
      Issue:
      The quantity to produce is reset to the original amount.
      
      Solution:
      Do not reset the qty_producing when it is already set.
      
      opw-3032052
      
      closes odoo/odoo#113046
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      25c34d1b
    • niyasraphy's avatar
      [FIX] pos_restaurant_adyen: typo in auto_install · 0265a513
      niyasraphy authored
      
      before this commit, there is a typo in auto_install
      
      after this commit, the typo will be corrected
      
      closes odoo/odoo#113090
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      0265a513
    • Archana Vaghasiya's avatar
      [FIX] point_of_sale: bring translation changes · e4cc1037
      Archana Vaghasiya authored
      This commit contains remaining changes which need to added in this
      https://github.com/odoo/odoo/pull/112394
      
      .
      
      sentry-3824163568
      
      closes odoo/odoo#112790
      
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      e4cc1037
    • Victor Piryns (pivi)'s avatar
      [FIX] web: datepicker dates reads from input field · b0fe3389
      Victor Piryns (pivi) authored
      
      Current behaviour:
      In Field Services, when selecting a task and applying let's say the
      ending time of 15:34, when the date picker shows up the minutes were
      set to 0, because 34 is not any multiple of the `timePickerIncrement`
      (which is 5 by default).
      
      Expected behaviour:
      Even if the minutes are not a multiple of the `timePickerIncrement`,
      we should round to the closest one.
      
      Steps to reproduce:
      - Install Field Services
      - Fields Services > Planning > By Project > Day
      - Choose a task, and play around with the minutes of either starting
        and ending (you need to save each time to see the effect)
      - If the minutes are a multiple of `timePickerIncrement` = 5, then
        there is the correct selection, but for everything else it is 0.
      
      Reason for the problem:
      When rendering the date range picker, only if the minute is exactly
      a multiple of timePickerIncrement and only then it is selected.
      For all other cases nothing is selected, therefor the first item is chosen by default.
      Also the date used for computation is the one set on the record when opening the form view,
      not the one from the input field on the form.
      
      Fix:
      When opening the date range picker, we read the values from the input fields,
      and update the view. This will also round the minutes to the closest multiple
      of `timePickerIncrement`, and doing a rollover if necessary (X:59 -> X+1:00).
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - master
      
      opw-3103490
      
      closes odoo/odoo#110399
      
      Signed-off-by: default avatarMichaël Mattiello <mcm@odoo.com>
      b0fe3389
  7. Feb 19, 2023
  8. Feb 17, 2023
  9. Feb 16, 2023
    • Benoit Socias's avatar
      [FIX] web_editor: make empty we-select visible · dc6ff203
      Benoit Socias authored
      
      When a `we-select` has no elements, it is drawn as a flat line.
      
      This commit puts a "/" in its toggler content. This character is the
      same one as the one that is displayed if the selected value is not one
      of the available values.
      
      Steps to reproduce:
      - Delete all `website.snippet.filter`
      - In debug mode, drop a "Dynamic Snippet" in a website page
      - Select it
      => The "Filter" option was displayed as a flat line.
      
      opw-3166634
      
      closes odoo/odoo#112117
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      dc6ff203
    • Thomas Lefebvre (thle)'s avatar
      [FIX] resource: prevent week switch for default schedule · 2f56ffbc
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      In Working Times, click on "SWITCH TO 2 WEEKS CALENDAR"
      for the default calendar used by the company.
      
      Issue:
      A ValidationError appears: 'Attendances can't overlap.'
      
      Cause:
      To create a two-week schedule, by default,
      we will use attendances provided for the company's default schedule.
      
      When we want to switch from a one-week schedule to a two-week schedule,
      we first delete the attendances from the schedule to be modified.
      However, if this schedule is the company's default schedule,
      it will no longer have the default attendances
      that we must use to build the two-week schedule.
      
      So we end up with the two "fictitious" attendances
      that are used to delimit the two weeks.
      
      With only these two attendances, the constraint of not having
      two overlapping attendances is not respected
      (because the two attendances created will be modified
      to belong to the same week).
      
      Solution:
      Check that the calendar to be modified
      is not the default calendar used by the company.
      
      opw-3127337
      
      closes odoo/odoo#111559
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      2f56ffbc
  10. Feb 15, 2023
    • Florent de Labarre's avatar
      [FIX] account: prevent wrong hash result · 9184dba0
      Florent de Labarre authored
      
      In case of the user have no access to all account.move, the hash result can be wrong.
      
      Before this PR a user with limited access can print this report.
      
      closes odoo/odoo#111185
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      Co-authored-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      9184dba0
    • Fernanda Hernández's avatar
      [FIX] payment_authorize: use name to send values when partner is a company · fb162e75
      Fernanda Hernández authored
      
      Currently, the name's fields to send to Authorize when the partner is a company are:
      
      * firstName
      * lastName
      
      if we consider following name `Company Duck Inc`:
      
      the code is sending:
      
      * firstName: ''
      * lastName: 'Duck'
      
      Only it sends the `lastName` with the second word found in the name,
      due to the new validations in Authorize.Net, this kind of transactions
      are marked as suspicious and it's not confirming the transactions, leave them
      as pending, this commit is sending the full name in `lastName`
      instead of only second word to meet with the validation in Authorize.Net
      
      Also, we are sending the fields `firstName` and  `lastName`, with the
      maximum length allowed by Authorize.
      
      closes odoo/odoo#112363
      
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      fb162e75
Loading