Skip to content
Snippets Groups Projects
  1. Apr 09, 2023
  2. Apr 07, 2023
    • Denis Ledoux's avatar
      [IMP] core: models `__repr__` should show when ids is wrong · ca263767
      Denis Ledoux authored
      
      As a developer,
      when you craft your records set manually,
      and wrongly use the API and set something weird in `ids`,
      something else than a tuple of integers,
      `repr` should help you to understand you did something wrong.
      
      e.g.
      
      before
      ```py
      In [1]: env['res.partner']._browse(self.env, '(1,)', 'bar')
      Out[1]: res.partner(1,)
      ```
      
      after
      ```py
      In [1]: env['res.partner']._browse(self.env, '(1,)', 'bar')
      Out[1]: res.partner'(1,)'
      ```
      
      We could put an assert in `_browse` to make sure `ids`
      is a tuple of integers, but this is considered a non-stable
      change, as it will suddenly crashes when you will update
      Odoo while it wasn't the case before.
      
      closes odoo/odoo#118076
      
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      ca263767
    • niyasraphy's avatar
      [FIX] website_profile: remove duplicated import in init · 3496c25b
      niyasraphy authored
      
      before this commit, the controllers directory is
      imported twice in the init file.
      
      after this commit, the duplicated import is
      removed.
      
      closes odoo/odoo#118069
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      3496c25b
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: allow importing any bis3 related format · b999489d
      Julien Van Roy authored
      
      After 863fa450, the UBLVersionId node
      was removed from the Bis 3 and its inheriting formats.
      
      Thus, the fonction infering the format from an xml etree needed to be
      apdated too, since we can no longer rely on the `UBLVersionID` node for
      UBL Bis 3 and its inheriting formats. The `CustomizationID` node is
      used.
      
      closes odoo/odoo#118043
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      b999489d
    • Florent de Labarre's avatar
      [FIX] website_sale : wrong amount is display · ad01728c
      Florent de Labarre authored
      
      In case of the amount of the transaction is not the same of the order. A customer can be a misunderstanding between the amount paid with the acquirer and the amount show in the confirmation page.
      
      closes odoo/odoo#117869
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      ad01728c
    • Renaud Thiry's avatar
      [IMP] base: Clear precommits on test cleanup · 4d2fdbab
      Renaud Thiry authored
      
      Precommit hooks would stock data until a call to ``cr.flush`` was made.
      Notably, this happens when the ``assertRaises`` method is called.
      Functions were applied on records already cleared from the cache.
      
      This change adds a cleanup call for `SavepointCase` as it keeps
      the same cursor for all tests. Cursor precommits can now
      be safely executed inside tests.
      
      Task-2834304
      
      closes odoo/odoo#117555
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      4d2fdbab
    • Maruan Aguerdouh (magm)'s avatar
      [FIX] web: remove leading 0 in filters float field · 2d24921d
      Maruan Aguerdouh (magm) authored
      
      Steps to reproduce:
      
      - Install Sales as an example.
      - Go to Products, and try to filter them by Sales Price.
      - You have 0.0 as default value, now try to remove it and put 5.
      
      Issue: We can't delete the leading 0 even though the filter is still
      working as expected.
      
      Solution: Changed the `t-on-input` to match `t-on-change` as this is
      what we use in future versions, like 15.0.
      
      opw-3131261
      
      closes odoo/odoo#114837
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      2d24921d
  3. Apr 06, 2023
  4. 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
  5. Apr 04, 2023
  6. Apr 03, 2023
  7. Feb 27, 2023
  8. Apr 01, 2023
  9. Mar 31, 2023
  10. 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
Loading