Skip to content
Snippets Groups Projects
  1. Jun 20, 2022
    • grzana12's avatar
      [FW][CLA] sign CLA grzana12 · 19e685d6
      grzana12 authored
      
      closes odoo/odoo#91533
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      19e685d6
    • grzana12's avatar
      [FW][FIX] mass_mailing: check fields for seen list are stored before going into SQL · c11f6113
      grzana12 authored
      Seen list (aka already mailed records) computation is done in SQL to speedup
      computation. It is based on an heuristic to find fields to check (either
      a partner, either an email). However it checks fields are present in model
      but does not check they are stored. This leads to traceback if fields
      are not stored.
      
      Task-2852943
      
      X-original-commit: odoo/odoo@0a2420f08bc18c5b93a54f387b062b405d3c2453
      Part-of: odoo/odoo#91533
      c11f6113
    • Thibault Delavallée's avatar
      [FW][IMP] test_mass_mailing: check partner_id usage in seen list · 61fb01d6
      Thibault Delavallée authored
      Add a model and a test allowing to test the seen list using raw SQL based
      on partner_id field. Test indicates a not stored partner_id field currently
      crashes beyond redemption.
      
      Task-2852943
      
      X-original-commit: odoo/odoo@cff53e078db2f3c9dc03a873f94146a7808e6989
      Part-of: odoo/odoo#91533
      61fb01d6
    • mafo-odoo's avatar
      [FIX] hr_timesheet : allow project managers to handle timesheets · 70a0ad28
      mafo-odoo authored
      
      Steps to reproduce:
      - Install project and timesheet
      - Create a project with settings "invited employees only"
      - Create a user with administrator project right (and non admin
      rights for timesheet)
      - Create a task in the new project
      - Try to generate a timesheet on the task with the new user (the
      user has to not follow the task)
      
      Current behavior:
      This generate an access error due to not respecting some rules
      
      Expected behavior:
      The timesheet is created
      
      Explanation:
      The project admin should be able to handle any timesheet that is
      linked to a project to do so we add its groupto the rule that gives
      access to the model analytic.model_account_analytic_line if there
      is a project_id.
      
      opw-2861042
      
      closes odoo/odoo#92771
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      70a0ad28
    • Jeremy Kersten's avatar
      [FIX] website: fix twitter image format and use it · b02bd28b
      Jeremy Kersten authored
      
      Twitter image was wrongly computed, appending /300x300 after the unique
      parameters.
      
      Twitter image was always overwrite by `website_meta_og_img` or
      `opengraph_meta['og:image']`
      
      closes odoo/odoo#93953
      
      X-original-commit: ffdfa26a
      Signed-off-by: default avatarJérémy Kersten <jke@odoo.com>
      b02bd28b
    • Sylvain Francis's avatar
      [FIX] mass_mailing: Allow reply_to mode 'email' for mailing contacts · 39f619df
      Sylvain Francis authored
      
      Before this commit:
      When creating a mail template for a marketing campaign targeting mailing
      contact, the reply_to_mode would be set to 'thread', and the reply_to
      field would be be read-only. Since there is no way to target a mailing
      list from a marketing campaign (see the domain on marketing.campaign's
      model_id), and there is no default followers mailing.contact, email
      responses would be "lost".
      
      After this commit:
      The reply_to_mode is set to 'email', and the reply_to is set
      accordingly
      
      OPW-2803314
      
      closes odoo/odoo#92968
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      39f619df
    • Iryna Vyshnevska's avatar
      [FIX] stock_picking_batch: compute properly scheduled time on batch · c008e8e8
      Iryna Vyshnevska authored
      
      closes odoo/odoo#93920
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      c008e8e8
    • 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
Loading