Skip to content
Snippets Groups Projects
  1. May 08, 2023
    • Tom De Caluwé's avatar
      [FIX] hr_holidays: ignore unconfirmed leaves in current leave status · 73f1d733
      Tom De Caluwé authored
      
      As of this commit, only confirmed leaves will be considered when computing the
      current leave or absence of an employee. Additionally, a bug in the is_absent
      search implementation was fixed: before this commit, the same results were
      returned for absent and non-absent searches.
      
      opw-2877328
      
      closes odoo/odoo#118475
      
      X-original-commit: 37f2fc5c
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      Signed-off-by: default avatarDe Caluwé Tom (tdc) <tdc@odoo.com>
      73f1d733
    • Renilkumar Kajavadra's avatar
      [FIX] base: change logger type to 'warning' on format mismatch · b2a604ec
      Renilkumar Kajavadra authored
      
      If applied, this commit will handle the KeyError: res_id when the user tries to
      import the translation of .csv file in settings -> translations, and if .csv
      file doesn't have the res_id column.
      
      I handled the traceback by changing the logger level to warning.
      
      sentry - 4049419481
      
      closes odoo/odoo#120757
      
      X-original-commit: dd0ec40c
      Signed-off-by: default avatarRenilkumar Kajavadra (reka) <reka@odoo.com>
      b2a604ec
    • Harsh Modi's avatar
      [IMP] l10n_in_edi_ewaybill: added error handling for error code 4026 · 886536ce
      Harsh Modi authored
      
      Handled error for if e-waybill is already generated and we send request for
      e-way bill generation it will give error -
      [4026] Duplicate e-waybill for the given document.
      
      Fix - It will fetch the ewaybill details and shows the ewaybill has been already
            generated
      
      task-3262244
      
      closes odoo/odoo#117609
      
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      886536ce
    • Valentin Chevalier's avatar
      [FIX] sale: check the right partner in the access token · be865672
      Valentin Chevalier authored
      
      When using a different invoicing address for a partner on a sale order,
      an error is thrown up. This is caused by checking the wrong partner in
      the access token.
      
      opw-3298228
      
      closes odoo/odoo#120751
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      be865672
    • LeDungViindoo's avatar
      [FIX] mrp: enforce constrains check for cost share of byproducts in MO · 9d6ff93d
      LeDungViindoo authored
      
      Steps to reproduce:
      
      Step 1: Create new MO
      Step 2: In page by-products click three dots to show column cost_share
      in tree by-products
      Step 3: Create new Byproduct and input cost share >100% or <0% or input
      two byproducts
              where their cost share adds up to more than 100%
      
      Expected result:
      Validation error: total byproduct cost_share cannot exceed 100
      or Validation error: cost_share values must be positive
      
      Actual result:
      Values saves without issue
      
      Issue is due to `move_byproduct_ids` being removed in the mrp_production
      overrides of
      `write()` or `create()` and having the `_compute_move_byproduct_ids`
      populate its values.
      This removal is causing the constrains to not be enforced, therefore we
      set the constrains
      field to `move_finished_ids` since changing of this value will ensure
      that the values are
      correctly checked.
      Note: There will be a decrease in performance since this means the
      constrains will be
      called whenever the MO's product to produce is changed, but hopefully it
      will be
      minimal since there is no simple fix for this issue.
      
      closes odoo/odoo#119009
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      9d6ff93d
  2. Feb 10, 2023
  3. May 07, 2023
  4. May 05, 2023
    • Andrew Gavgavian's avatar
      [FIX] stock: fix report.stock.quantity search_read · e112a7f9
      Andrew Gavgavian authored
      
      	Currently `report.stock.quantity` has a field defined in it called `move_ids`:
      	`move_ids = fields.One2many('stock.move',readonly=True)`
      
      	This virtual field has no corresponding inverse field so when performing a search_read on the model, it fails
      	in fields.py when trying to do:	`inverse_field = comodel._fields[inverse]`
      
      	In addition, this field is apparently not used anywhere in the source code and not queried in the SQL View.
      
      	This means the model can never be search_read by default.
      
      	Since this field is never used, it isn't stored, and the model is `_auto = False`, removing it won't break any database.
      
      closes odoo/odoo#120416
      
      X-original-commit: e3b1a887
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAndrew Gavgavian (andg) <andg@odoo.com>
      e112a7f9
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: search for deprecated account · b9f374f8
      Andrea Grazioso (agr-odoo) authored
      
      Duplicate the default Account Payable (211000)
      Set the default Account Payable to Deprecated
      Create a Vendor Bill with a line
      Save
      
      Error will raise
      The account Account Payable (211000) is deprecated.
      
      opw-3199157
      opw-3229350
      
      closes odoo/odoo#120710
      
      X-original-commit: 4305ea5a
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      b9f374f8
    • Jinjiu Liu's avatar
      [FIX] web_editor: deleting copied table causing a false error traceback · 77f2c589
      Jinjiu Liu authored
      
      Reproduction:
      1. Open LibreOffice Calc (linux), create an empty xls file
      2. In LibreOffice, input random things as a 4 (rows) by 2 (columns)
      table
      3. Create a new note in Odoo, copy the table to it
      4. Hold Shift and click the place right before the first cell (out of
      the table but still in the editable area)
      5. Delete the selected table, a trace back popped up
      
      Fix: add an extra condition to make sure parentFragmentTr is not null
      before unpacking it
      
      Note: as you probably noticed, the cleared table does not retain the
      original dimensions, e.g. it turns to a 2-row, 4-column table. This is a
      deeper issue of how we restore the table, and another task will be
      created for this. This PR is a first-aid patch to solve the error
      message as it confuses the client a lot
      
      opw-3255144
      
      closes odoo/odoo#119674
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      77f2c589
    • Khushi Vakil's avatar
      [FIX] mrp_subcontracting: change resupply subcontractor source location · 13f078e4
      Khushi Vakil authored
      
      In this commit the resupply subcontractor source location is changed from
      virtual production to WH/stock
      
      Task id: 3263796
      
      closes odoo/odoo#118316
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      13f078e4
    • yhu-odoo's avatar
      [FIX] mrp: duplicate lot when auto-generate serial · 697399be
      yhu-odoo authored
      
      Previous commit 1b840d06 tried to fix
      the issue action_generate_serial may try to generate a existing lot.
      But it made the lot number completely product specific. This change is
      too big for stable, we revert the change in this commit.
      
      Also to fix the issue, when action_generate_serial tries to generate a
      lot, we always try the result from ir.sequence frist, only when the lot
      already exists, we then try create one based on the product's lastest
      lot number.
      
      Task-3187003
      
      closes odoo/odoo#120581
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      697399be
    • Roy Le's avatar
      [CLA] Viindoo updates Odoo's CLA · 1c10ab5c
      Roy Le authored
      
      closes odoo/odoo#120583
      
      X-original-commit: 8aefb386
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      1c10ab5c
    • flvr-odoo's avatar
      [FIX] hr_expense: prevent linking of expense with no perm · 1d83f202
      flvr-odoo authored
      
      Previously, a user could link his own expenses to a expense sheet
      of someone else.
      
      This would not be allowed upon creation but was allowed when updating
      the values of the expense.
      
      This commit add a simple check at the beginning of the write()
      
      closes odoo/odoo#120592
      
      X-original-commit: 7bcd64c5
      Signed-off-by: default avatarVranckx Florian (flvr) <flvr@odoo.com>
      1d83f202
    • Kamlesh Pathekar's avatar
      [FIX] website_sale: fix the disappearing attribute filter · 28bb2cc7
      Kamlesh Pathekar authored
      
      Steps:
      - In eCommerce activate Filter by prices and Attributes & variants filters
      - select one attribute with >1 item (e.g. aluminum legs)
      - put a price limit.
      - the attribute filter is removed.
      
      The commit will prevent the removal of the 'variants attribute filter'
      when an attempt is made to apply a price range.
      
      task-3101343
      
      closes odoo/odoo#111478
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      28bb2cc7
  5. May 04, 2023
    • Ivan Yelizariev's avatar
      [FIX] website_sale_digital: let salesman download digital via portal · 17780c6a
      Ivan Yelizariev authored
      Portal shows all Sale Orders available for current user. For example, salesman
      can see his sales. If such a user can download digital files via product form in
      backend, it makes sense to let user download them via SO page on portal.
      However, it wasn't the case because /my/download requires product be purchased
      by current user [1]. Fix it by checking read access first.
      
      STEPS
      
      * in backend create SO with digital product (customer must be different from
      current user)
      * create invoice and register a payment
      * navigate to portal  (without using customer's token),
      * open SO, click download on digital product
      
      [1]: https://github.com/odoo/odoo/blob/1a24477fab4dd323cf94c010321d8942fb2c1a01/addons/website_sale_digital/models/account_invoice.py#L14-L22
      
      
      
      opw-3144600
      
      closes odoo/odoo#120492
      
      X-original-commit: 51fd5d3c
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      17780c6a
    • ravb-odoo's avatar
      [REV] project: revert 'fix recurrence boolean should be hidden issue' · 66480c0f
      ravb-odoo authored
      
      Description:
      This reverts commit f3c306260fbd0766c2cfe98bd0ac826b7662acbc.
      
      Previous Change:
      In project module, when sub-tasks is created then recurrence boolean field
      should not be visible in that task. It only visible in parent tasks.
      
      Changes Made:
      This commit reverts the changes made in commit
      f3c306260fbd0766c2cfe98bd0ac826b7662acbc. to return the code to its previous
      state, where the recurrence field is visible in sub-tasks.
      
      task-3252521
      
      closes odoo/odoo#120392
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      66480c0f
    • Victor Feyens's avatar
      [FIX] sale: recompute taxes on company change · fc5e5b05
      Victor Feyens authored
      
      When the company is modified on a SO, the taxes will be recomputed
      iff the fiscal position has changed (which will only happen if the fiscal
      positions were configured/set on the SO).
      
      After this commit, the behavior is harmonized with the purchase flows,
      and the taxes will always be recomputed on company change, even if the fiscal
      position was not modified by the company change.
      
      opw-3234905
      
      closes odoo/odoo#120298
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      fc5e5b05
    • Patrick Hoste's avatar
      [FIX] website_slides: fix multiple course review bug · c3b11554
      Patrick Hoste authored
      
      Before this commit, it was possible for one to post
      multiple reviews when all the already posted reviews
      had the 'Employee Only' state. A traceback was also
      thrown when trying to update an 'Employee Only'
      comment. It was also possible to edit a log note.
      This commit fixes all these issues.
      
      Task-2810085
      
      closes odoo/odoo#107958
      
      Signed-off-by: default avatarStéphane Debauche (std) <std@odoo.com>
      c3b11554
    • Guillaume (guva)'s avatar
      [FIX] hr_expense: expense{_sheet} state reset move to draft · f6a13938
      Guillaume (guva) authored
      
      Override the button_draft method, in order to
      reset the expense and expense_sheet state
      when resetting a move to draft.
      
      Steps:
      
      - Create an expense
      - Submit and approve the report
      - Post journal entry and register payment
      - Reset the JE to draft
      -> The expense and expense sheet states
         remain the same as before resetting
         to draft. They should be respectively
         'approved' and 'post'
      
      opw-3279364
      
      closes odoo/odoo#120514
      
      X-original-commit: d1d12574
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      Signed-off-by: default avatarGuillaume Vanleynseele (guva) <guva@odoo.com>
      f6a13938
    • Guillaume (gdi)'s avatar
      [FIX] web: remove prohibited dropzones of the menu editor · 3e278f87
      Guillaume (gdi) authored
      
      In the website menu editor and in the studio menu editor, the user can
      drag & drop the elements that constitute the menu of his website/app.
      Users can also put a menu into another menu to create a sub-menu. For
      the website, we allow two levels of menu but not more. For studio we
      allow 5 levels of menu. When the user starts to drag an item, dropzones
      can be drawn on the prohibited level (3 in website, 6 in studio) while
      he can't create this level of menu. This commit adds a css rule to hide
      those forbidden dropzones.
      
      task-3251032
      
      closes odoo/odoo#120470
      
      X-original-commit: dac80feb
      Signed-off-by: default avatarloco-odoo <loco@odoo.com>
      3e278f87
  6. May 03, 2023
    • MerlinGuillaume's avatar
      [FIX] mail: disable the sidebar when opening a pdf in the chatter · 74e76bfb
      MerlinGuillaume authored
      
      The pdf viewer sometimes displays the sidebar when we open the pdf
      
      Solution:
      Add `pagemode=none` to the url when opening a pdf in attachments
      
      opw-3193516
      
      closes odoo/odoo#120347
      
      X-original-commit: da9b89ad
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
      74e76bfb
    • Mahamadasif Ansari's avatar
      [FIX] payment: prevent deletion of payment acquirer if it has external reference · a0bfc654
      Mahamadasif Ansari authored
      "ValueError: External ID not found in the system: payment.payment_acquirer_
      stripe" is generated because the user deleted the Stripe payment acquirer
      record and its corresponding model tried to access the record of it.
      
      Steps to produce the error:
      1. Install e-commerce
      2. Install install 'Stripe Payment Acquirer ' module
      2. delete the Stripe payment from payment acquirer
      3. Go to the e-commerce dashoboard
      4. Click Set Payment
      5. select Credit card (via Stripe)
      6. enter any secret and Publishable key
      7. click apply
      
      This commit solves the above issue by preventing the deletion
      of the payment acquirer if it has a external reference.
      
      sentry-4041178833
      
      closes odoo/odoo#120391
      
      X-original-commit: https://github.com/odoo/odoo/commit/c54a398513666508161796a498e8f8c3c7401b9f
      
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      a0bfc654
    • Naman Shah's avatar
      [FIX] crm: remove the field date_closed from demo data · b4e3eace
      Naman Shah authored
      
      Purpose:
      The purpose of this commit is to change the current behavior of days to close
      graph generating from customizable desk demo data.
      
      Specification:
      For the opportunities, the day_close field is a compute field depending upon the
      date_closed field. For the customizable desk demo data, the date_closed field
      pre-existed, due to that customizable desk opportunity was not won or lost but
      the graph report was generated.
      so, this commit fixes the current behavior for customizable desk opportunity.
      
      Task-3278039
      
      closes odoo/odoo#120384
      
      X-original-commit: e368725b
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b4e3eace
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: handle paid invoice at import · b1e07f81
      Julien Van Roy authored
      
      The edi attachment (for every format in `account_edi_ubl_cii`) contains
      a tag indicating whether the invoice is fully/partially paid.
      
      Before this fix, when this tag was filled, a down payment section was
      created on the invoice. For a fully paid invoice, the resulting amount
      was then 0, so the invoice was marked as "Paid".
      
      This was wrong. The correct amounts need to be kept on the invoices.
      This fix no longer creates a down payment, instead a message is logged
      in the chatter.
      
      task-3264843
      opw-3248200
      
      closes odoo/odoo#120340
      
      X-original-commit: 47905d21
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy <juvr@odoo.com>
      b1e07f81
    • Victor Piryns (pivi)'s avatar
      [FIX] project: add access_token to portal pager · 73d8c5ca
      Victor Piryns (pivi) authored
      
      Current behaviour:
      If a project has more than 80 tasks, there is pagination activated
      in the project portal view. But when clicking on the second page, we
      are requested to login, even when we come from a shared link.
      
      Expected behaviour:
      You should be able to scroll through the pages of tasks related to
      the shared project without being requested to login.
      
      Steps to reproduce:
      - Install Project
      - Create 100+ tasks in 1 project
      - Copy the share link of that project.
      - Log out, open the shared link.
      - Go to page 2 of the tasks -> login request.
      
      Reason for the problem:
      Missing `access_token` in the pager urls to browse through the tasks.
      
      Fix:
      Add the `access_token` as url argument in the links when creating
      the pager for the portal view. Backport PR #119941
      
      Affected versions:
      - 15.0
      - saas-15.2
      
      opw-3220659
      
      closes odoo/odoo#120382
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      73d8c5ca
    • Benjamin Vray's avatar
      [FIX] website_blog: fix read next article block · 05b04d84
      Benjamin Vray authored
      
      Before this commit, on a blog page with the "regular cover" and "read
      next article" options enabled, the image in the "read next article"
      block would shrink when the text was too long.
      
      Steps to reproduce the bug:
      
      - Go to a blog page (e.g. "Sierra Tarahumara").
      - Enable the "regular cover" and "read next article" options.
      - Enter edit mode.
      - Scroll down the page.
      - Enter a lot of text as the title of the "read next article" block.
      - Bug: As the text increases, the width of the image decreases.
      
      opw-3267842
      
      closes odoo/odoo#119945
      
      X-original-commit: 06a6e78b
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      05b04d84
    • xO-Tx's avatar
      [FIX] web: fix autoMoreMenu with no-hamburger option · 615ef8d0
      xO-Tx authored
      
      On small viewports, and with the "Same as desktop" option enabled on
      header, The "autohide menu" adaptation is disabled and overflowing
      menu items are visible.
      
      The goal of this commit is to fix this behaviour by keeping the
      "autohide" feature enabled on expanded navbar.
      
      task-3261909
      
      closes odoo/odoo#119553
      
      Signed-off-by: default avatarloco-odoo <loco@odoo.com>
      615ef8d0
  7. May 02, 2023
  8. Apr 30, 2023
  9. Apr 28, 2023
    • roen-odoo's avatar
      [FIX] pos_sale: correctly update move qty when settling a pos order · 20461135
      roen-odoo authored
      
      Current behavior:
      When settling a pos order containing 2 different product, the qty of the
      2 products would be modified even if you only deliver one of them
      through the pos order.
      
      Steps to reproduce:
      - Create 2 product A and B
      - Create a sale order with 1 product A and 1 product B
      - Open a PoS session, and settle the order you just created
      - Deliver only 1 product A
      - Close the PoS session
      - Go the the sale order delivery, you will see that the qty are not
        correct
      
      opw-3227053
      
      closes odoo/odoo#117402
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      20461135
    • HuylenbroeckFlorent's avatar
      [FIX] Install l10n_eu_oss without chart template · d6907d7a
      HuylenbroeckFlorent authored
      
      When installing l10n_eu_oss without a localization installed, a line fails
      in the get_oss_tags function of res_company, thus halting the installation
      and returning an error.
      
      This fail is due to the function relying on the company in self having its
      'chart_template_id' set, when this is not always the case.
      
      Adding a failsafe to that function allows the installation of the module to
      proceed in the event that the chart_template_id is not set.
      
      opw-3291118
      opw-3289913
      
      closes odoo/odoo#120104
      
      X-original-commit: 4b140806
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      Signed-off-by: default avatarHuylenbroeck Florent (flhu) <flhu@odoo.com>
      d6907d7a
Loading