Skip to content
Snippets Groups Projects
  1. Apr 06, 2023
    • Yolann Sabaux's avatar
      [FIX] purchase: enable correct currency on onchange partner_id · 8985426b
      Yolann Sabaux authored
      
      Steps to reproduce:
      - company currency = USD
      - set a partner P with a `property_purchase_currency_id` in EUR
      - create a bill with Azure partner and set an bill line
      - change to partner P
      issue -> the currency of the line has not been change
      - change to Azure
      issue -> no change about the currency
      
      Cause:
      - We update the move.currency_id but not the line_ids.currency_id
      - after setting Partner P, we try to set a partner that no `property_purchase_currency_id`, we do not enter in the condition
      
      opw-3233527
      
      closes odoo/odoo#116852
      
      Signed-off-by: default avatarCedric Snauwaert <csn@odoo.com>
      8985426b
  2. Apr 05, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: UBLVersionID should not be present for Bis 3 · 863fa450
      Julien Van Roy authored
      
      Tag UBLVersionID should not be present for UBL Bis 3 and its inheriting
      formats.
      
      opw-3249153
      
      closes odoo/odoo#117792
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      863fa450
    • aliya's avatar
      [FIX] l10n_lu: add missing translations · 546f2777
      aliya authored
      
      Recently the tax report was updated with new tax report lines, but translations weren't added.
      This commit adds translations in FR, DE.
      
      task-3264626
      
      closes odoo/odoo#117790
      
      Related: odoo/enterprise#39373
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      546f2777
    • Kamen Zhekov's avatar
      [FIX] web_editor, website: fix website editor as restricted editor · bbf4e333
      Kamen Zhekov authored
      
      When assigned the role of restricted editor, there are many ways to
      break the web_editor when trying to do actions that should be
      unavailable. There is a traceback for the following scenarios under
      some circumstances (mainly because of pages without editable areas or
      features without the proper access rights):
      
      - Drag and dropping snippet when Restricted Editor.
      - Clicking on product when Restricted Editor in /shop.
      - Clicking on product image on specific product page.
      - Clicking on user name (e.g. Marc Demo).
      - Clicking on menu items or logo.
      - Clicking on a blog's image in /blog.
      - Clicking on a blog's image on specific blog page.
      - Clicking on calendar's image in /calendar.
      
      There is now no longer a traceback which makes the editor crash or
      freeze. This mimics the behavior in other cases where the editor does
      not show a traceback, but there is no message indicating that the action
      is unauthorized.
      
      When accessing a menu that cannot be edited, the "Edit the menu" button
      is not shown to the restricted editor.
      
      task-2747895
      opw-3164176
      
      closes odoo/odoo#76900
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarBenjamin Vray <bvr@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      bbf4e333
    • niyasraphy's avatar
      [FIX] stock_landed_costs: missing required account on invoice line · 66ea264f
      niyasraphy authored
      
      before this commit, on creating a vendor bill with
      landed cost product, is not allowing to save the bill,
      it shows the exception that missing required account
      on accountable invoice line.
      
      steps to reproduce:
      
      * create a product category with inventory
      valuation set as Manual
      * create a landed cost product using above category
      * enable anglo saxon accounting in accounting settings
      * create a vendor bill with this product and click save
      * exception is shown: missing required account
      on accountable invoice line
      
      after this commit, the exception wont be shown
      
      closes odoo/odoo#117474
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      66ea264f
    • payen000's avatar
      [CLA] Update Vauxoo's Contributor CLA · 6c4f0b08
      payen000 authored
      
      closes odoo/odoo#117727
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      6c4f0b08
  3. Apr 04, 2023
  4. Apr 03, 2023
  5. Feb 27, 2023
  6. Apr 01, 2023
  7. Mar 31, 2023
  8. Mar 30, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] hr_timesheet: timesheet uom fallback when AAL's company is False · b39642bf
      Victor Piryns (pivi) authored
      
      Current behaviour:
      When creating a timesheet, if in the vals passed the AAL doesn't
      have a company (possible since it's not required), then the `uom`
      of the timesheet is False, which doesn't make sense.
      
      Expected behaviour:
      The timesheet `uom` should fallback on the uom of the company
      of the project.
      
      Steps to reproduce:
      - Install hr_timesheet, Accounting
      - Activate the AAL in the settings
      - Create a project with an AAL
      - Remove the company on the AAL of the project
      - In that project create a task and log some timesheet.
      - `uom` field should be empty
      
      Reason for the problem:
      When setting the `product_uom_id` in the vals when creating/writing
      a timesheet, we just take the `project_time_mode_id` on the company
      linked to the AAL. The problem is that the company on an AAL is not
      a required field, so it can be `False`, leading the setting the val
      for `product_uom_id` to `False`.
      
      Fix:
      In case the AAL has no company, we get the `uom` from the company
      linked to the project.
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3245671
      
      closes odoo/odoo#117012
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      b39642bf
    • Mylyna Hy's avatar
      [FIX] coupon: writes on empty & multiple records · da88ad08
      Mylyna Hy authored
      
      Problem:
      When doing a write on an empty recordset from coupon programs,
      a traceback error about tuple index out of range is thrown.
      
      When doing a write on multiple records, it's not guaranteed to have the
      same (discount_line_product_id, reward_id) pair per record.
      Thus, it's not correct to use the reward_id of the first record and
      apply it to all records.
      
      Solution:
      Pass in self as a condition to check whether self is empty or not.
      The method should just return res if self is empty.
      
      For each coupon program in self, update its discount_line_product_id to
      its respective reward_id.display_name
      
      Steps to Reproduce in Runbot14:
      1. Install Sales & Coupons
      2. Enable Coupons & Programs in Settings
      3. Create a server action to do a write on an empty recordset
      ex. env['coupon.program'].write({'discount_fixed_amount': 0})
      4. Create a server action to do a write on multiple records
      
      opw-2658794
      
      closes odoo/odoo#116096
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      da88ad08
    • Rodrigo Serrano's avatar
      [CLA] Update Vauxoo's CLA · 7af8c2cb
      Rodrigo Serrano authored
      
      Incorporate Rodrigo Serrano (Rodrigosu_Vauxoo) as Vauxoo's contributor.
      I confirm I have signed the CLA and read the PR guidelines at:
      www.odoo.com/submit-pr
      
      closes odoo/odoo#117087
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      7af8c2cb
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: create partner at import if vat · 710714cd
      Julien Van Roy authored
      
      When importing an electronic invoice, we only want to create the partner
      when the vat and the name were retrieved.
      
      closes odoo/odoo#114900
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      710714cd
  9. Mar 29, 2023
    • qsm-odoo's avatar
      [FIX] portal: use proper muted color for portal chatter published dates · 29d69132
      qsm-odoo authored
      
      The color that was used for portal chatter published dates was the muted
      color that we use at some places in the backend. The portal screens
      being frontend screens, it of course did not work with all website color
      schemes.
      
      This simply uses the `$text-muted` color to fix the issue. This probably
      needs refactoring in master to avoid those extra CSS rules that could
      simply be gone with proper bootstrap XML structures.
      
      opw-3146164
      
      closes odoo/odoo#116968
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      29d69132
    • Paolo Gatti (pgi)'s avatar
      [FIX] l10n_it_edi_sdicoop: Revert retrigger · 5ee53342
      Paolo Gatti (pgi) authored
      The trigger that downloads FatturaPA used the `_trigger` function only available in Odoo 15.
      This means that if we manually re-trigger, each iteration will have less time before timeout and will eventually do.
      So, we revert the change in Odoo 14.
      
      Reversal of odoo#116373
      https://github.com/odoo/odoo/pull/116373
      
      
      
      closes odoo/odoo#116731
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      5ee53342
    • niyasraphy's avatar
      [FIX] website_profile: show + only when gained karma is positive · d4068589
      niyasraphy authored
      
      Before this commit, in the website profile frontend, if we filter the users
      using 'This week' or 'This month' filters we always get a '+' displayed before
      the karma gain.
      
      If user gained negative karma, lets say -500, currently it displays as follows
      --> +-500 , instead of -500.
      
      After this commit, if the gained karma during the period is it will show
      -500 instead of +-500.
      
      closes odoo/odoo#114506
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      d4068589
    • Stefan-Calin Crainiciuc (stcc)'s avatar
      [FIX] sale_stock: customer reference displays properly · a4859993
      Stefan-Calin Crainiciuc (stcc) authored
      
      Steps to reproduce:
      
      - Install Sales, Inventory
      - Sales > Create quotation > Fill data > Other Info tab >
      Customer Reference = *insert very long string here* > Confirm
      - Click on delivery stat button > Print > Delivery Slip
      
      Issue:
      
      The customer reference overlaps with the other information in the same row.
      In the resulting XML there are two nested divs with `class="row"`.
      
      Solution:
      
      Remove the row div in the derived xml.
      
      opw-3121097
      
      closes odoo/odoo#116681
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      a4859993
    • Mahamadasif Ansari's avatar
      [FIX] survey: consider question as normal if question selection is random · 73552632
      Mahamadasif Ansari authored
      
      Currently in the survey:
      - If we have a conditional question and the question selection mode is
        random and we select the question layout as one page with all questions
        or one page per section, the conditional question is not visible. This
        happens because the  random mode condition is ignored.
      - If we have a conditional question and the question selection mode is random
        and we select the question layout as one page per section, the traceback is
        generated when we start the survey. This is because it is trying to get value
        from the "selected_answer", which does not exist in random mode.
      
      Expected behaviour is If the question selection mode is random, the conditional
      questions are considered normal and visible and do not generate a trace back if
      the question layout is one page per section.
      
      This commit fixes the above issue by adding a condition that treats
      the conditional question as a normal question when the question
      selection mode is random.
      
      task-3142209
      
      closes odoo/odoo#111171
      
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      73552632
    • Laurent Smet's avatar
      [REV] account: Revert https://github.com/odoo/odoo/commit/687f479297fcaa047cd26a34883e7de11b3d3dea · 61d3b9d7
      Laurent Smet authored
      
      When creating an invoice from e-commerce, the invoice is not sent by mail but the user must be able to see it from the portal.
      
      closes odoo/odoo#116867
      
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      61d3b9d7
  10. Mar 28, 2023
    • Loan (LSE)'s avatar
      [FIX] hw_drivers: Avoid duplicated actions execution · fbea7227
      Loan (LSE) authored
      Before this commit:
      Assuming we have a "Shipping Labels Printer" set on an operation type.
      Assuming we also have a delivery carrier which send Label through the chatter of this picking type (like DHL or BPost).
      If we have several sessions connected with the same user (author of the chatter message), for examples, on different devices.
      Each session will send the same IoT request to print the label (as the code rely on the bus).
      
      In consequences, the same label will be printed multiple times
      
      After this commit:
      The label is print only once
      
      Associated enterprise PR: https://github.com/odoo/enterprise/pull/36904
      
      
      
      opw-3081423
      
      closes odoo/odoo#112355
      
      Related: odoo/enterprise#36904
      Signed-off-by: default avatarSens Loan (lse) <lse@odoo.com>
      fbea7227
Loading