Skip to content
Snippets Groups Projects
  1. Feb 19, 2023
  2. Feb 17, 2023
  3. 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
  4. 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
    • Kshitij Nariya's avatar
      [FIX] account: avoid traceback in migrations when Tax Mapping exists · c96da90f
      Kshitij Nariya authored
      
      When migrating, if a `Tax Mapping of Fiscal Position` already exists
      (for example, when manually created), any update of the module would
      raise a traceback trying to violate a uniqueness constraint.
      This commits fixes that
      
      opw-3166338
      
      closes odoo/odoo#112505
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      c96da90f
    • niyasraphy's avatar
      [FIX] mrp_subcontracting: show lot field only when lot/serial number is activated · 2f6f8ce7
      niyasraphy authored
      
      before this commit the lot field is visible even without activating the lot and serial number feature from the settings.
      
      after this commit the field will be visible only when the feature is activated in the settings.
      
      closes odoo/odoo#109273
      
      Related: odoo/enterprise#35500
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      2f6f8ce7
    • Archana Vaghasiya's avatar
      [FIX] point_of_sale: index error when send receipt to customer in offline · 8633c637
      Archana Vaghasiya authored
      
      An IndexError "list index out of range"  trace back that occurs in point_of_sale
      /RecieptScreen :async _sendReceiptToCustomer was caught by sentry.
       order_server_id is undefined because it is  not properly sync with the server
      
      step to reproduce:
      
      1. First of all start the session in point_of_sale to produce error we have to
         be in offline mode and generate product order.
      2. Add customer, select a payment method and validate.
      3. After validation send email to customer(failed to send mail.
         because we are in offline mode and order_server_id is undefined )
      4. Now get back to online mode and again send mail to customer
      5. This time an IndexError 'list index out of range' is trace-backed.
      
      So if order_server_id is null then we throw error to user.
      
      sentry-3824163568
      
      closes odoo/odoo#112394
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      8633c637
  5. Feb 14, 2023
  6. Feb 13, 2023
    • jbw-odoo's avatar
      [FIX] account: email alias, prevent settings company as partner on invoices · 1a24477f
      jbw-odoo authored
      
      There is a check that prevent to set "internal" (meaning from the current company) partners on invoices/bills created via a journal alias.
      When the "from" email is the email of the company, the check previously failed to recognize it as internal.
      This could happen in this scenario :
      If a customer/vendor sends a invoice/bill to the company email.
      If then, someone forward this email to the journal alias. The "from" field is now the company email address.
      
      closes odoo/odoo#112108
      
      Task: 3145287
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      1a24477f
    • niyasraphy's avatar
      [FIX] sale: remove quick_add from sales calendar view · d98e93fb
      niyasraphy authored
      
      before this commit, on clicking the sales calendar view, it allows the quick adding from the calendar view and entered value is going to the name field of sale.order model.
      
      after this commit, quick adding will be disable and on clicking form will be opened with selected date.
      
      closes odoo/odoo#112523
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      d98e93fb
    • gawa-odoo's avatar
      [FIX] l10n_de_skr04: fix number cash difference accounts · e26321c9
      gawa-odoo authored
      Following the DateV SKR04 standard, we should not use the
      automatically created codes for these accounts.
      So we have to create them by hand to specify the code.
      Backported https://github.com/odoo/odoo/commit/7015a45eba8507ab752adeb86494ff42fe9b5036
      
       for before 16.
      
      closes odoo/odoo#112528
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      e26321c9
    • Uttam Pragda's avatar
      [FIX] product: set default uom_po_id based on uom_id · 04a75f84
      Uttam Pragda authored
      Step to reproduce issue:
      - Go to sales settings, activate "Unit of Measure"
      - Set user define default of field "uom_id" of model "product.template"
      - install "loyalty" module.
         While loading file "addons/loyalty/data/loyalty_data.xml" file it will create product and gives traceback.
         Or
      - It will also give error while upgrade database from 14.0 to 15.0 or more
      Note : This error occurs while there is user-define value for uom_id is set and any module tries to
             create product from data file.
      
      Current behavior:
      - When product creates, uom_id and uom_po_id gets default uom value from
        "_get_default_uom_id" method which return "Unit" uom as default.
        But when user have default value for uom_id(let's suppose Days), it sets that default
        value and for uom_po_id we got uom value as "Unit".
      - So now as uom category of Days and Unit are not same it violates "_check_uom" constraint.
      
      Traceback: https://pad.odoo.com/p/utpr-set_default_uom
      
      
      
      Soultion:
      - When product creates, if there is default value for field uom_id in "ir.default" then
        "_get_default_uom_id" method sets same value for uom_po_id.
      
      closes odoo/odoo#110503
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      04a75f84
  7. Nov 30, 2022
  8. Feb 13, 2023
  9. Feb 10, 2023
  10. Feb 09, 2023
Loading