Skip to content
Snippets Groups Projects
  1. Jun 20, 2022
    • Rémi Rahir's avatar
      [FIX] hr_skills_slides: Fix completion step · 6e9d7615
      Rémi Rahir authored
      
      This commit addresses several issues:
      
      1. The overwrite of `_recompute_completion` was not properly filtering
      the partners that had actually completed the course. meaning that
      passing through this function could add a course/slide.channel as an
      employee skill iven if they did not complete it. Now, we only act upon
      employees that have actually finished the course.
      
      2. The function would add the same skill over and over again, assuming
      that we could only pass through it once but it is actually called every
      time we publish or archive any slide of a course since 9920f20e.
      This can lead to a bit of bloat on an employee resume  (See task
      attachments). Now, we try to make the function idempotent and only add a
      resumé line only once.
      
      3. The addition of a resume line could not be achieved and would raise
      an ACL when the current user was not an HR Officer (group `hr_user`).
      Since it can be called by any eLearning(`slides`) manager, a sudo
      privilege is necessary.
      
      Related Task: 2830016
      
      closes odoo/odoo#93555
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      6e9d7615
    • Pierre-Yves Dufays's avatar
      [FIX] website_event_track: fixes the condition of event start warning · 17a46270
      Pierre-Yves Dufays authored
      
      The condition to display the start event warning in the track view was that
      the event was not ongoing. This fix adds the condition that the event is
      upcoming, preventing the warning to be displayed after the event date.
      
      Task-2692907
      
      closes odoo/odoo#90948
      
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      17a46270
    • Julien Castiaux's avatar
      [REV] mail: don't trust attachment content-type · 248c687b
      Julien Castiaux authored
      
      This reverts commit 3e877d31.
      
      closes odoo/odoo#94006
      
      Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
      248c687b
  2. Jun 19, 2022
  3. Jun 17, 2022
    • Huy Le's avatar
      [FIX] website: `og:url` should be localized · 94f74aed
      Huy Le authored
      
      Before this commit, with a website using multiple languages, when sharing
      any links with a language other than the original language on Facebook,
      the content of Optimize SEO always receives the value of the default
      language.
      
      The reason is that `og:url` does not change according to the
      language of the website because it's using `http.httprequest.url`.
      
      Note that `http.httprequest.url` doesn't contain the lang part since we
      already went through the dispatch's rerouting.
      So we need to localize `og:url` to fix this.
      
      Steps to reproduce:
      1. Set up 2 different languages for your website (e.g. English, Vietnamese).
       Set the default language for the website to English.
      2. Create any page, promote seo page for both languages.
      3. Share this link on Facebook with Vietnamese language, see the title
      and description on preview are still in English.
      
      closes odoo/odoo#93937
      
      X-original-commit: 3e718971
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      94f74aed
    • TheAlekLuna's avatar
      [CLA] Update Vauxoo's Contributor CLA · a66bed19
      TheAlekLuna authored
      
      closes odoo/odoo#93891
      
      X-original-commit: 7e2e92dd
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      a66bed19
    • dbkosky's avatar
      [FIX] l10n_it_edi: use currency amounts in edi · 34315a91
      dbkosky authored
      
      When adjusting the currency rates, the amounts in the edi invoice become
      incorrect and the Italian EDI system rejects them (due to contraints on
      the content of these fields).
      
      This commit changes the referenced amount to the 'amount_currency' (for
      the taxes and the base) for the fields in the EDI templates.
      
      closes odoo/odoo#93927
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      34315a91
    • Iryna Vyshnevska's avatar
      [CLA] Add Iryna Vyshnevska to C2C CLA · 7fe2a02e
      Iryna Vyshnevska authored
      
      closes odoo/odoo#93921
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      7fe2a02e
    • Julien Van Roy's avatar
      [ADD] account_edi_ubl_cii,l10n_account_edi_ubl_cii_tests: support common UBL and CII edi formats · b467c2c6
      Julien Van Roy authored
      This commit aims at unifying the UBL formats for invoices and credit notes.
      
      Starting from the work of LAS, the module account_edi_ubl_cii contains the templates for UBL and CII,
      and provides inheritance for UBL: UBL 2.0 < UBL 2.1 < UBL Bis 3.
      It contains also the formats E-FFF, EHF3 (fully covered by Bis 3), XRechnung (in UBL), Factur-x (the only one in CII).
      All these formats are also improved to pass the ecosio validator and/or the country specific validator
      (for Factur-x: the validator from the FNFE, and Chorus Pro).
      
      Note that the xml files generated contain the pdf of the invoice/credit note encoded in base64.
      An xml file alone imported in Odoo will thus automatically retrieve the pdf.
      
      Before generating the xml files, we now also check a series of known constraints and possibly display
      a warning on top of the move view if some are not enforced (the xml file is generated anyway but it might not be valid).
      
      Tests were required: a new module was needed with dependency to the tested l10n: l10n_account_edi_ubl_cii_tests.
      The prefix "l10n_" prevents runbot from launching the tests everytime.
      
      Backport of: https://github.com/odoo/odoo/pull/88027
      
      
      
      closes odoo/odoo#83849
      
      Task: 2628093
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      b467c2c6
    • lejeune quentin's avatar
      [FIX] pos_adyen: Add logger for Adyen · 8a9417fb
      lejeune quentin authored
      
      To fix problems with lost payments in Adyen we add loggers
      
      closes odoo/odoo#93902
      
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      8a9417fb
    • Yolann Sabaux's avatar
      [FIX] account: prevent deletion partner · 91ceb950
      Yolann Sabaux authored
      
      Steps to reproduce:
      - Create a partner-individual, assign to a company
      - Create an invoice and set the new partner as the customer
      - Go to the partner view
      - Delete it
      
      Issue:
      - It is possible to delete it
      
      Cause:
      The constraint in "account.move.line" uses the "commercial_partner_id" as the partner
      
      Solution:
      - Prevent the unlink if the partner is used in 'account.move' -> To delete in Master
      - add "ondelete='restrict' for partner and commercial_parner in 'account.move'
      
      opw-2858789
      
      closes odoo/odoo#93854
      
      X-original-commit: e0f75f73
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      91ceb950
    • Jeremy Kersten's avatar
      [FIX] web_unsplash, website: fix deps between website and web_unsplash · da157512
      Jeremy Kersten authored
      
      Website has no dependency to web_unsplash, we cannot warranty the order
      of the execution of the overwrite done in 5ef8300c.
      So to avoid to create a new module bridge, with a lot of code, we prefer
      to make a check for website user directly in unsplash module.
      It is 'safe' since if you don't have website, the group
      `group_website_designer` doesn't exists and so it will do a `or False`.
      
      closes odoo/odoo#93842
      
      X-original-commit: 05f9f5db
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      da157512
  4. Jun 16, 2022
  5. Jun 15, 2022
  6. Jun 14, 2022
    • Miquel Raïch's avatar
      [FIX] delivery: assure stock user can validate pickings · 5a8690b3
      Miquel Raïch authored
      
      Steps to reproduce:
      
      - Delivery module is installed.
      - User_1 is stock_manager and sale_manager.
      - User_1 creates sale_order with set carrier_id and confirms it
        (Automatically is created a picking P).
      - User_2 is stock user/manager but in sale is "Own documents only".
      - User_2 open picking P and validates it.
        => Error: cannot validate due to access rules.
      
      closes odoo/odoo#93447
      
      X-original-commit: 3955d48c
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      5a8690b3
    • John Laterre (jol)'s avatar
      [REV] l10n_nl: set 'Cost of Revenue' in allowed account types for Vendor Bills... · 60aa39ab
      John Laterre (jol) authored
      [REV] l10n_nl: set 'Cost of Revenue' in allowed account types for Vendor Bills journal created for a l10n_nl chart of account
      
      This reverts commit f4235243.
      
      This commit introduced an unwanted effect, by using the
      `type_control_ids` to allow an account type on a journal.
      
      But it was intended as a constraint, to limit the account types
      allowed on the journal and exclude all the others.
      
      In this case, by allowing the type of the account
      `data_account_type_direct_costs`, it also excluded all other
      account types on the Vendor Bill journal.
      
      closes odoo/odoo#93608
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      60aa39ab
    • Laurent Desausoi (lade)'s avatar
      [FIX] mail: properly place dropdowns in Kanban Activity views · 38fa6a70
      Laurent Desausoi (lade) authored
      
      For the kanban_activity view (e.g.: in the CRM module), when we have enough
      entries to require the scrolling, dropdowns are not displayed at the correct
      location.
      Furthermore, in kanban views, when dropdowns are opening on the edge of the
      parent element (e.g.: in Documents), the dropdowns are partially hidden and not
      accessible by the client.
      
      Step to reproduce the issue:
      1) Install CRM and Documents module
      2) Go to CRM and create multiple leads with at least one activity
      3) Go to the Activity view and scroll down and click on an item. The dropdown
      is not placed at the correct location -> BUG 1
      4) Go to the Documents modules and check the activity (the small clock icon)
      of a Document on the right most column. The dropdown is hidden by the
      description of the file.
      
      Solution: Firstly, the parent container of the Kanban Activity view did not had
      the `overflow: auto` property activated. Consequently, while the children were
      somehow taking all the spaces of the screen, Popper (the third party that
      handles the dynamic positioning of the dropdowns) was wrongly computing the
      positionning.
      Secondly, dynamically creating the dropdown via Javascript (through the
      JQueryInterface of the Dropdown class in Bootstrap) somehow allows to fix the
      issue in Documents. Consequently, it is important to keep them into the
      Javascript and not move the arguments into the XML.
      
      opw-2827873
      
      closes odoo/odoo#91209
      
      Signed-off-by: default avatarLouis Wicket (wil) <wil@odoo.com>
      38fa6a70
    • Julien Castiaux's avatar
      [FIX] mail: don't trust attachment content-type · 3e877d31
      Julien Castiaux authored
      
      Some mail client send wrong content-type charset for attachments,
      advertising US-ASCCI instead of UTF-8. Using `get_content()` with no
      argument, python replaces the incorrect bytes by tofu (the black "?"
      character).
      
      In this commit, if the given charset is invalid, we fallback on utf-8
      replacing the still incorrect characters by tofu.
      
      closes odoo/odoo#93305
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      3e877d31
    • MerlinGuillaume's avatar
      [FIX] account: fix accounting dashboard bar graphs · a0b77887
      MerlinGuillaume authored
      
      The Customer Invoices and Vendor Bills bar graphs in the accounting
      dashboard skip empty weeks so the following weeks will be displayed
      sooner
      
      Steps to reproduce:
      1. Install Accounting
      2. Go to the accounting dashboard
      3. The bar graph of Customer Invoices is not correct: it ends with empty
      weeks but they should be in between the data
      
      Solution:
      Choose where each query result should be by using the aggr_date to find
      in which week the data is included
      
      Problem:
      The SQL query didn't return any date for empty weeks so sorting the
      result by date would leave some weeks out of the bar graph
      
      opw-2844159
      
      closes odoo/odoo#93527
      
      X-original-commit: 2743d8f3
      Signed-off-by: default avatarCedric Snauwaert <csn@odoo.com>
      Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
      a0b77887
    • Ivan Yelizariev's avatar
      [FIX] purchase_stock: keep qty on return · fd22fe22
      Ivan Yelizariev authored
      
      When purchase is returned, the product may move to internal location first. If
      option `Update quantities on SO/PO` is active, it does decrease the qty.
      However, when the option is disabled, it increase the qty instead of doing
      nothing.
      
      Fix it by making a proper if-else block structure
      
      STEPS:
      
      - Create a PO, confirm it and receive the product
      - On the transfer, make a return to a location that is not a child of your warehouse (PhysicalLocations/W/...), for instance, choose the location Physical Locations/Subcontracting Location
      - Untick the "Update quantities on SO/PO" (visible in debug), and validate the return transfer
      - Check your initial PO
      
      BEFORE: the received quantities have been updated, even if we asked not to do it
      AFTER: the received quantities is not changed
      
      opw-2858390
      
      closes odoo/odoo#93394
      
      X-original-commit: eb16b4ec
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      Signed-off-by: default avatarIvan Elizaryev (iel) <iel@odoo.com>
      fd22fe22
    • Touati Djamel (otd)'s avatar
      [FIX] sale: prevent wizard opening if the discount isn’t changed · 804daa8c
      Touati Djamel (otd) authored
      Steps to reproduce the bug:
      - Install rental app
      - Go to the sales settings and enable the “discount” option
      - Create a new rental order
      - add 3 products and one of them must be rentable
      - save
      - edit the rental date of the rentable product
      
      Problem:
      A wizard that asks to apply the discount to all lines is displayed,
      while we have not changed the discount field
      
      since this commit:
      https://github.com/odoo/enterprise/pull/25874/commits/c934267a17e7df71f7a129c0b4cb51f56e1efe93#diff-60c63f93d325ddf63bde80d039a8805fe69b7eea99fbb87e5769178f3fc0fd93R19
      
      when the date is modified, the discount field is reset to 0
      in the modified line to avoid applying the pricelist.
      
      Then, we check that the discount field has been modified to call
      the function that creates the wizard:
      https://github.com/odoo/odoo/blob/696ea173d3f6cb1230444c34d6f19bc4519fda04/addons/sale/static/src/js/product_discount_widget.js#L26-L27
      
      and as all lines have the same discount "0", the popup will be
      displayed: https://github.com/odoo/odoo/blob/696ea173d3f6cb1230444c34d6f19bc4519fda04/addons/sale/static/src/js/sale_order_view.js#L30
      
      
      
      Solution:
      Check that the first order line discount has been changed before
      displaying the wizard
      
      opw-2844932
      
      closes odoo/odoo#93134
      
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      804daa8c
  7. Jun 13, 2022
Loading