Skip to content
Snippets Groups Projects
  1. Aug 19, 2021
  2. Aug 18, 2021
  3. Aug 17, 2021
  4. Aug 18, 2021
    • Adrien Widart's avatar
      [FIX] mrp: set backorder name with custom sequence name · 076fe045
      Adrien Widart authored
      
      If the prefix of the production sequence contains some dashes, it can
      lead to undesirable behaviors
      
      To reproduce the error:
      (Enable debug mode)
      1. Settings > Technical > Sequences & Identifiers > Sequences, edit "San
      Francisco Sequence production":
          - Prefix: "WH-MO-"
      2. Create a MO
          - Quantity: 2
      3. Confirm, Edit:
          - Quantity: 1/2
      4. (Keep MO's name in mind and) Validate + Create backorder
      
      Error: Backorder's name is "WH-MO-002" instead of "WH-MO-0000X-002".
      Going back to the initial MO, its name became "WH-MO-001" (was
      "WH-MO-0000X")
      
      OPW-2618971
      
      closes odoo/odoo#75130
      
      Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
      076fe045
    • wan's avatar
      [FIX] l10n_ch_qr_iban: do not create new module category · 0793c52b
      wan authored
      
      We do not need to see this bugfix module in the list of modules, and
      certainly not with a new category that shows up in the controlpanel.
      
      closes odoo/odoo#75240
      
      Related: odoo/enterprise#20316
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      0793c52b
    • Adrien Widart's avatar
      [FIX] hr_expense: convert base amount if different currency · d6fd7301
      Adrien Widart authored
      
      In a multi-currencies environment, if the user creates an expense with a
      different currency than the company's, one of the associated account
      move lines will have an incorrect base amount.
      
      To reproduce the issue:
      (Need account_accountant. Let USD be the company's currency)
      1. In Settings, enable "Multi-Currencies"
      2. Edit the currency rates:
          - EUR: 2
          - USD: 1
      3. Create an expense:
          - Currency: EUR
          - Unit Price: 700
          - tax: 15%
      4. Create Report, Submit, Approve, Post Journal Entries
      5. Accounting > Reporting > Tax Report, This Financial Year
      6. Audit of "Tax 15.00%"
      
      Error: Base amount of the expense is $700, which is incorrect. It should
      be either 700€ or $350
      
      OPW-2613547
      
      closes odoo/odoo#74963
      
      X-original-commit: b57cdc9d
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      d6fd7301
    • Achraf (abz)'s avatar
      [FIX] l10n_ch: Don't count foreign iban as qr_iban · e7748ca3
      Achraf (abz) authored
      
      When creating a bill when we specify a French account in the recipient's account we receive the following warning "Please fill in a correct ISR reference in the payment reference. The banks will refuse your payment file otherwise."
      
      This PR adds a condition to limit the verification to Swiss accounts
      
      opw-2581434
      
      closes odoo/odoo#75210
      
      X-original-commit: b0e94b24
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      Signed-off-by: default avatarAchraf <abz-odoo@users.noreply.github.com>
      e7748ca3
  5. Aug 17, 2021
    • Philémon van Helden's avatar
      [FIX] base_vat: properly checks XI VAT numbers · 0268986b
      Philémon van Helden authored
      
      In 12.0+ when adding an XI (Northern Ireland) VAT number on a vendor and specifying the country as United Kingdom, an error shows the VAT number as not valid. This is because the method to check specifically XI VAT numbers doesn't recognize XI as a country, and thus uses the GB VAT number verification, which doesn't recognize XI VAT numbers as it isn't up to date yet.
      
      A temporary method to check XI VAT number was already added, but is never called because XI is not recognized as a country code.
      With this commit, we add a list of known legitimate country codes, that are not considered as such in Odoo.
      
      opw-2534541
      
      closes odoo/odoo#75189
      
      X-original-commit: d8b8ad47
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarpvh-odoo <SwagSamaSempai@users.noreply.github.com>
      0268986b
    • Audric Onockx (auon)'s avatar
      [FIX] hr_holidays: Fix accrual dates based on creation date · 3f7f0feb
      Audric Onockx (auon) authored
      
      Steps:
      1. Create new time off allocation
      2. Set type to accrual and set start date other than present day
      3. Set the accrual to add every month
      4. Validate and run the scheduled action for Accrual Time Off
      5. Check the field 'nextcall' with Studio or editing form view
      Result:
      Nextcall date is set to 1 month after the date of creation of allocation record instead of start date.
      
      Solution:
      Nextcall is now based on start date.
      
      opw-2558480
      
      closes odoo/odoo#75177
      
      Signed-off-by: default avatarAnh Thao PHAM <kitan191@users.noreply.github.com>
      3f7f0feb
    • Nikunj Ladava's avatar
      [IMP] l10n_co: update latam identification type · dc195e7b
      Nikunj Ladava authored
      
      task- 2486484
      
      closes odoo/odoo#74488
      
      Related: odoo/enterprise#19978
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      dc195e7b
    • Anh Thao Pham (pta)'s avatar
      [FIX] web_editor: fix invisible document links when sent via email · a703f257
      Anh Thao Pham (pta) authored
      
      - Go to any record with a chatter (i.e. a SO)
      - Use full composer to send a message
      - In editor, use "File/Image" option to upload a document to the body of the message
      - Upload any document (i.e. a PDF file)
      - PDF icon will appear in the message
      - Send the message
      In the chatter, PDF icon appear in the message, allowing to download the file.
      But in the sent email, the link is present but it is not visible. There is no icon.
      
      Such link is a <a> element with "o_image" class. When converting to inline, an <img>
      element is added with an icon depending on file mime-type.
      However, when getting its value, a cleaning is executed, removing this added <img>.
      
      It should not be cleaned when converting to inline.
      
      opw-2558602
      
      closes odoo/odoo#75204
      
      X-original-commit: 2924d0e9
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarAnh Thao PHAM <kitan191@users.noreply.github.com>
      a703f257
    • Philémon van Helden's avatar
      [FIX] website_form_project: prevent errors on task creation from a form · a5d86485
      Philémon van Helden authored
      
      In 14.0, when adding a form to a website and selecting "Create a Task" without
      an active project, an error pops up because no projects are found.
      
      In this commit, we prevent an error from popping up when adding the form
      without projects, by allowing the field to be empty (not required).
      
      task-2580436
      
      closes odoo/odoo#73269
      
      Signed-off-by: default avatarRomain Derie <rdeodoo@users.noreply.github.com>
      a5d86485
    • Touati Djamel (otd)'s avatar
      [FIX] hr_holidays: Prevent allocation date_to from switching to another day · 2ddabf08
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      
      Go to your computer's date settings
      Change region, e.g: (US or choose a region with a negative UTC)
      Go to the preferences settings in odoo > Change the timezone to US too
      Go to Time Off app > Manager > Allocations > Create a new one
      Allocation type : "Accrual Allocation"
      Set the end date to, e.g: "04/07/2021"
      save
      
      Problem:
      The end date moves back by one day.
      The field " date_to " is of ”datetime” type, so we use in the view "widget="date"
      Therefore, the user can only choose the date. We save the time in the database at" 00: 00:00 ".
      But as we use in the view "widget="date", after saving the record,
      the datetime will be converted to a date, based on the user's UTC.
      
      For example, in our case:
      in database, date_to = "2021-07-04 00:00:00"
      user UTC = "UTC-6"
      result = "2021-07-04 00:00:00" - 06:00:00 → "2021-07-03 00:18:00"
      
      Solution:
      Remove the widget date to allow a user entering the full date (eg: 2021-07-04 23:00:00), that
      will be stored correctly in UTC afterwards, instead of having the widget making the date switch to
      another day.
      
      opw-2607082
      
      closes odoo/odoo#75193
      
      X-original-commit: ceef1983
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      Signed-off-by: default avatarDjamel Touati <DjamelTouati@users.noreply.github.com>
      2ddabf08
    • qsm-odoo's avatar
      [FIX] web_editor: properly compare CSS variables and CSS values · 22b5d905
      qsm-odoo authored
      
      The editor sometimes compare CSS values, in particular in the
      selectStyle method where a given style is not applied if it would have
      no effect (e.g. applying an inline pink background-color is useless if
      the block is naturally pink because of CSS rules). That comparison
      failed when it was comparing 'var(--XXX)' and 'YYY' as 'var(--XXX)' was
      not processed as the CSS variable 'XXX' to be read.
      
      Related to task-2599770
      
      closes odoo/odoo#75188
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      22b5d905
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] sale_crm: always create a new customer when create is selected · e3d47af7
      Hubert Van de Walle (huvw) authored
      
      When clicking on the 'New quotation' action,
      if no current customer is linked to the lead,
      a popup opens with the following options:
      - Create a new customer
      - Link to an existing customer
      - Do not link to a customer
      
      If odoo found a potential matching customer but we decide it is the
      wrong one and select the first option, a new one should always be
      created
      
      opw-2545065
      Task-2622793
      
      closes odoo/odoo#74988
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      e3d47af7
    • Touati Djamel (otd)'s avatar
      [FIX] hr_expense: fix the approval of multiple expense sheet · bc421407
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Go to Expenses > Expense Reports to approve
      - Select expense reports with different managers
      - Click on the Action drop-down button > Approve report
      
      Problem:
      Traceback is triggered because we try to access `"self.user_id"` (manager) of expenses as a single element,
      While we have several `”user_id”`
      
      Solution:
      - Filter the `"hr.expense.sheet"` which must be approved
      - Approve each expense separately
      
      opw-2622837
      
      closes odoo/odoo#75093
      
      Signed-off-by: default avatarDjamel Touati <DjamelTouati@users.noreply.github.com>
      bc421407
  6. Aug 13, 2021
  7. Aug 16, 2021
  8. Aug 13, 2021
    • prro-odoo's avatar
      [FIX] sale_coupon: allow changing reward line quantity · 97b78e89
      prro-odoo authored
      
      How to reproduce the problem:
      - Install the sale_coupon module
      - Sales -> Products -> Promotion Programs
      - Create a promotion with "Fixed Amount" discount, "Apply on current
      order", with Based on Products as "Name = Large Cabinet"
      - Create a SO with 3 Large Cabinet.
      - Modify the quantity on the new reward line: the price unit became 0.
      
      A client should be able to manually change the discount quantity.
      That was not possible before due to the fact that the reward products of
      a promotion are saved in the DB with a list price of 0.
      As the reward generation handles the job of computing the correct
      unit price on a reward SOL, that unit price is simply re-used when
      the quantity is changed.
      
      Also corrects the case where a Free Product is different from the
      Rule Product(s): with the promotion
      "Buy 1 Product A, get 1 free Product B", if the Sale Order has
      3 Product A, for example, the promotion will offer only 1 Product B,
      while it should offer 3.
      
      opw-2522604
      
      closes odoo/odoo#75003
      
      X-original-commit: 609abfa3
      Signed-off-by: default avatarRomain Derie <rdeodoo@users.noreply.github.com>
      Signed-off-by: default avatarprro-odoo <proose@users.noreply.github.com>
      97b78e89
    • Adrien Widart's avatar
      [FIX] point_of_sale: use correct location_id · d54a806c
      Adrien Widart authored
      To reproduce the error:
      1. In Settings, enable "Multi-Step Routes"
      2. Create a storable product P
          - Available in POS
      3. Update P's quantity:
          - Location: WH/Stock/Shelf 1
          - On Hand Quantity: 1
      4. In a POS session, process an order with one P
      5. Close the session
      6. Consult P's moves
      
      Error: The location used to sell P is Stock instead of Stock/Shelf 1
      
      At some point, the step 5 triggers `_create_move_from_pos_order_lines`.
      Because "Consignment" isn't checked in the settings, the if-blocked is
      skipped and therefore the move isn't assigned:
      https://github.com/odoo/odoo/blob/4bcc63cf49a8c3ab73812de3d171024aa8059b8f/addons/point_of_sale/models/stock_picking.py#L152-L161
      Then, on L161, when setting `quantity_done`, it triggers the inverse
      method `_quantity_done_set` which will create a SML (because there isn't
      one yet):
      https://github.com/odoo/odoo/blob/2841525a3a2f1273783874947884b57494def849/addons/stock/models/stock_move.py#L355-L359
      
      
      but using the location of the move (i.e. Stock)
      
      The if-condition was introduced with d59fc6c9
      to fix another issue. In the meantime, another fix has been deployed for
      a second issue fe4323b5 However, this
      second commit also fixes the first issue, therefore the if-condition is
      no longer required. As a result, `_action_assign` will be called and a
      SML with the correct location will be created.
      
      OPW-2607748
      
      closes odoo/odoo#75090
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      d54a806c
  9. Aug 16, 2021
  10. Aug 12, 2021
  11. Aug 16, 2021
  12. Aug 15, 2021
  13. Aug 13, 2021
  14. Aug 12, 2021
Loading