Skip to content
Snippets Groups Projects
  1. Apr 03, 2022
  2. Apr 01, 2022
    • Adrien Widart's avatar
      [FIX] stock: avoid inter-warehouse transfer only if planned · 440c259f
      Adrien Widart authored
      
      Improve 06188f61
      
      The user does not have the possibility to create a delivery to the
      inter-warehouse transit location (the destination location is
      invisible). Same for the receipt.
      
      So, the user should only avoid transferring some products between two
      warehouses if the internal transfer is a planned one.
      
      closes odoo/odoo#87797
      
      X-original-commit: 09fd3867
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      440c259f
    • dbkosky's avatar
      [FIX] l10n_it_edi: demo data bank and partner · f8da2dbe
      dbkosky authored
      
      Demo data to improve the flow of testing the edi. A bank account and a
      partner with a street/city/zipcode/codice fiscale are required for the
      edi, so having these as demo data is useful.
      The demo company vat code and codice fiscale are also changed to those
      of a valid company, so that they will be accepted by the sdi testing
      environment. The address of the demo company is updated so that, if by
      accident, an invoice is sent using the demo company, through the
      official channel, the address will make it an obvious test.
      
      closes odoo/odoo#87249
      
      Task-id: 2809328
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      f8da2dbe
    • Ipsita Borisagar's avatar
      [FIX] mail: regarding scheduling activity in list view · 6436950b
      Ipsita Borisagar authored
      
      Open a activity view(record modal), that will show records, clicking on the
      'o_activity_btn' of a record will show dropdown and make sure that there are
      many scheduled activity there .
      
      Before this commit:
      
      The dropdown was bigger than the record modal which had a scroll bar. It was not
      scrollable properly and "+ Schedule Activity" button is not accessible.
      
      After this commit:
      
      The dropdown follows the scroll, and it will be possible to click the button.
      
      Task- 2528111
      
      closes odoo/odoo#72441
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      6436950b
    • William Henrotin's avatar
      [FIX] mrp_{subcontracting_}account: read price unit at validation · 6c086d82
      William Henrotin authored
      
      In a subcontracting flow, the extra_cost on the subcontracted production
      is read on the purchase line (via _get_price_unit() ) at the production
      creation. In case the price unit on this purchase line change before the
      validation, the stock valuation layer linked to the production will not
      take this new value into account.
      
      This commit ensures the price unit is the right one at validation
      
      closes odoo/odoo#87689
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      6c086d82
    • Kevin Baptiste's avatar
      [FIX] hr_recruitment: fix perf of new_application_count · b5988a23
      Kevin Baptiste authored
      
      On large databases, the method `_compute_new_application_count` could
      take up to 80% of the total loading time of the Job positions as each
      job was generating 2 queries.
      
      closes odoo/odoo#87745
      
      Taskid: 2812400
      X-original-commit: aa3abd22
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      b5988a23
    • Jeremy Kersten's avatar
      [FIX] auth_totp: don't redirect to url prefixed with lang · 4dea1b9b
      Jeremy Kersten authored
      
      This commit removes the multilang feature on the /web/login/totp controller,
      it doesn't really add value since it triggers a redirect and that the page is
      all the same translated.
      
      It is a good practice by default for SEO, but in this case it brings
      some bug with the IOS apps that doesn't follow the redirect, while we don't
      need to optimize this page for Search Engine.
      
      The bug into the IOS apps, create a loop when we request the totp screen.
          Device request /web/login/totp
          Server ask a redirect to /fr_FR/web/login/totp
          Device redirect to /web/login/totp
          Server ask a redirect to /fr_FR/web/login/totp
          ...
      
      closes odoo/odoo#87740
      
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      4dea1b9b
    • Miquel Raïch's avatar
      [FIX] l10n_es: improve some tax descriptions · eb87f03e
      Miquel Raïch authored
      
      closes odoo/odoo#87580
      
      X-original-commit: 288b5460
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      eb87f03e
    • aliya's avatar
      [IMP] account: clarify credit note creation message · c45d641d
      aliya authored
      
      Task: 2760136
      
      Currently, when a credit note is created there is a message in the chatter "Invoice created", which is not coherent.
      - Credit Note creation message should be "Credit Note created"
      
      closes odoo/odoo#84526
      
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      c45d641d
    • Adrien Widart's avatar
      [FIX] stock: avoid internal SM for inter-warehouses transfers · a9a317fc
      Adrien Widart authored
      When using an internal transfer to move some products between two
      warehouses, the forecasted inventory becomes incorrect
      
      To reproduce the issue:
      (Let WH01 be the existing warehouse)
      1. In Settings, enable "Multi-Warehouses"
      2. Create a second warehouse WH02
      3. Create a storable product P
      4. Update its quantity: 1 x P at WH01/Stock
      5. Create a planned internal transfer (the warehouse does not matter):
          - Source: WH01/Stock
          - Destination: WH02/Stock
          - Operations:
              - 1 x P
      6. Mark the transfer as Todo
      7. Consult the Forecasted Inventory report:
          - Filters:
              - Forecasted Stock
              - Product: P
          - Group By:
              - Warehouse
      
      Error: The line for WH02 is missing and the line for WH01 is incorrect
      (qty is 1 for next days while it should be 0)
      
      The report used (`report_stock_quantity`) does not handle this transfer.
      Because both locations (source and destination) are defined, the SM is
      not considered as an in-move or out-move:
      https://github.com/odoo/odoo/blob/07f0ffad6ecc08f4165902db45ae96e4b41199e8/addons/stock/report/report_stock_quantity.py#L38-L43
      
      
      Moreover, it would be hard to change the SQL view to generate two lines
      (one 'in' and one 'out') from the same SM (the internal move).
      
      The graph on the forecasted report of product P is also incorrect (it
      uses `report_stock_quantity` to get the data, so if the user selects a
      specific warehouse in the filters, the result will be incorrect)
      
      To easy all computations, the user should rather use two pickings
      (delivery+receipt) when moving some products between two warehouses.
      
      OPW-2752017
      
      closes odoo/odoo#87642
      
      X-original-commit: 06188f61
      Signed-off-by: default avatarSteve Van Essche <svs@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      a9a317fc
  3. Mar 31, 2022
  4. Mar 30, 2022
    • Touati Djamel (otd)'s avatar
      [FIX] (mrp,stock)_account: fix user group check · e9e05ca6
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      1:/
      - Give user access to Marc Demo
      - Connect with Marc
      - Go to any product
      - The "update cost" button is visible
      
      Problem:
      Marc can modify the cost, whereas normally only users with manager rights can modify the product
      
      2:/
      - remove MRP access to Marc Demo
      - connect with Marc
      - Go to any product with variant and BOM > variants > then open any variant
      
      Problem:
      The user could Compute Price from BoM, while he does not have manager access to MRP
      
      opw-2794179
      
      closes odoo/odoo#87441
      
      X-original-commit: 42898874
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      e9e05ca6
    • Nicolas (vin)'s avatar
      [FIX] l10n_fr_fec: allows exporting FEC without TVA number. · 1f08e690
      Nicolas (vin) authored
      
      Not all company needs a French TVA number but still needs to provide
      FEC file.
      Improve that by making the TVA number optional, allowing to export the
      FEC file without it. The only difference is that in such case, the vat
      number won't be appended to the file name.
      
      Task id #2801629
      
      closes odoo/odoo#87556
      
      X-original-commit: 5ccf115d
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      Signed-off-by: default avatarNicolas Viseur <vin@odoo.com>
      1f08e690
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] base: config setting search: unhighlight settings not matching anymore · 4a4ba638
      Hubert Van de Walle (huvw) authored
      
      Steps to reproduce
      
        - Install procurement_jit
        - Go to settings
        - Search for 'serv'
        -> Re**serv**ation is highlighted but also ba**se**d
      
      closes odoo/odoo#87550
      
      X-original-commit: 7b52c632
      Signed-off-by: default avatarHubert Van De Walle <huvw@odoo.com>
      4a4ba638
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] base: config setting search contains '&amp;' · 1b3f901d
      Hubert Van de Walle (huvw) authored
      Steps to follow
      
        - Go to Settings
        - Type 'Import' in the search bar
        -> 'Import &amp; Export' is displayed
      
      Cause of the issue
      
        `_wordHighlighter` works on the HTML as a string
      
      Solution
      
        - Use textContent to get the correct text value
        - Replace the content of the highlighted element by
          * a textnode with the text before the matched substring
          * a `span.highlighter` with the search word
          * a textnode with the text after the matcher substring
      
      Other issues
      
        A string concatanated css rule was used to filter the matching elements
        This could cause an invalid selector
        -> Filter nodes by their textContent instead.
      
      opw-2778304
      
      X-original-commit: d7a439f2
      Part-of: odoo/odoo#87550
      1b3f901d
    • Touati Djamel (otd)'s avatar
      [FIX] mrp_landed_costs: validate a landed cost without the need for MRP access · 01f1530c
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Install mrp_landed_costs
      - Connect as Admin
      - Remove MRP access to Admin and Give him Stock manager access
      - Go to inventory settings > Enable “Landed costs”
      - Go to inventory > operation > Select any landed cost
      - Try to validate
      
      Problem:
      An access error is triggered because we check if there are finished moves in the associated pickings and manufacturing orders
      before validating the landed cost, but in the "_get_targeted_move_ids" function we access the "mrp_production_ids" field, which is reserved for mrp users.
      
      Solution:
      Creating and validating a landed cost is a feature for stock manager users.
      We can therefore have users who do not need access to MRP, but who need to  validate and submit landed costs.
      So we can give access to all of them even if they are not MRP users.
      
      opw-2800367
      
      closes odoo/odoo#87361
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      01f1530c
    • sang250399's avatar
      [FIX]: fix bug when click to Overview, sometime will action error . · 28a48c5e
      sang250399 authored
      
      Change actions to act_window
      
      closes odoo/odoo#87425
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      28a48c5e
    • Abdelouahab (abla)'s avatar
      [FIX] google_calendar : fix default reminder · a25d38dd
      Abdelouahab (abla) authored
      
      To reproduce
      ============
      
      - Sync Google Calendar to Odoo
      - Create an event in GCaledar without setting a notification
      In Odoo Notification reminder is set
      
      Purpose
      =======
      
      we use default reminder given by Google which is notification 30 minutes before even if the event
      doesn't have a reminder.
      
      Specification
      =============
      
      To solve the issue we use empty reminder instead of the default given by google if no reminder is set.
      
      opw-2792364
      
      closes odoo/odoo#87069
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      a25d38dd
    • Odoo's Mergebot's avatar
      [FW][ADD] fetchmail_outlook, microsoft_outlook: add OAuth authentication · 4f5cea83
      Odoo's Mergebot authored
      
      Purpose
      =======
      As it has been done for Gmail, we want to add the OAuth authentication
      for the incoming / outgoing mail server.
      
      Specifications
      ==============
      The user has to create a project on Outlook and fill the credentials
      in Odoo. Once it's done, he can create an incoming / outgoing mail
      server.
      
      For the authentication flow is a bit different from Gmail. For Outlook
      the user is redirected to Outlook where he'll accept the permission.
      Once it's done, he's redirected again to the mail server form view and
      the tokens are automatically added on the mail server.
      
      Technical
      =========
      There are 3 tokens used for the OAuth authentication.
      1. The authentication code. This one is only used to get the refresh
         token and the first access token. It's the code returned by the user
         browser during the authentication flow.
      2. The refresh token. This one will never change once the user is
         authenticated. This token is used to get new access token once they
         are expired.
      3. The access token. Those tokens have an expiration date (1 hour) and
         are used in the XOAUTH2 protocol to authenticate the IMAP / SMTP
         connection.
      
      During the authentication process, we can also give a state that will
      be returned by the user browser. This state contains
      1. The model and the ID of the mail server (as the same mixin manage
         both incoming and outgoing mail server)
      2. A CSRF token which sign those values and is verified once the browser
         redirect the user to the Odoo database. This is useful so a malicious
         user can not send a link to an admin to disconnect the mail server.
      
      Task-2751996
      
      closes odoo/odoo#87498
      
      Forward-port-of: odoo/odoo#87294
      Forward-port-of: odoo/odoo#87040
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      4f5cea83
    • std-odoo's avatar
      [ADD] fetchmail_outlook, microsoft_outlook: add OAuth authentication · 1e1a494a
      std-odoo authored
      Purpose
      =======
      As it has been done for Gmail, we want to add the OAuth authentication
      for the incoming / outgoing mail server.
      
      Specifications
      ==============
      The user has to create a project on Outlook and fill the credentials
      in Odoo. Once it's done, he can create an incoming / outgoing mail
      server.
      
      For the authentication flow is a bit different from Gmail. For Outlook
      the user is redirected to Outlook where he'll accept the permission.
      Once it's done, he's redirected again to the mail server form view and
      the tokens are automatically added on the mail server.
      
      Technical
      =========
      There are 3 tokens used for the OAuth authentication.
      1. The authentication code. This one is only used to get the refresh
         token and the first access token. It's the code returned by the user
         browser during the authentication flow.
      2. The refresh token. This one will never change once the user is
         authenticated. This token is used to get new access token once they
         are expired.
      3. The access token. Those tokens have an expiration date (1 hour) and
         are used in the XOAUTH2 protocol to authenticate the IMAP / SMTP
         connection.
      
      During the authentication process, we can also give a state that will
      be returned by the user browser. This state contains
      1. The model and the ID of the mail server (as the same mixin manage
         both incoming and outgoing mail server)
      2. A CSRF token which sign those values and is verified once the browser
         redirect the user to the Odoo database. This is useful so a malicious
         user can not send a link to an admin to disconnect the mail server.
      
      Task-2751996
      
      X-original-commit: e54d63b3c0f39fd8a05e430442cf84d1d6c8de78
      Part-of: odoo/odoo#87498
      1e1a494a
    • std-odoo's avatar
      [IMP] {microsoft, fetchmail}_outlook: do not reset the email config · 28ca6c2e
      std-odoo authored
      Purpose
      =======
      Do not reset the email configuration when unchecking "is Gmail".
      
      Task-2751996
      
      Part-of: odoo/odoo#87498
      28ca6c2e
    • std-odoo's avatar
      [FIX] google_gmail: do not copy the authorization code · 6048902d
      std-odoo authored
      Bug
      ===
      When we copy a GMail outgoing / incoming mail server, an error
      occurs because we try to refetch the access token, based on the same
      authorization code (which can be used only once).
      
      To fix this issue, we do not copy the authorization code (and other
      related fields).
      
      Task-2751996
      
      X-original-commit: 2879976160bc0777cde1368ed2b69ce821c85ff1
      Part-of: odoo/odoo#87498
      6048902d
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: cancel the WOs even if it is an MO without components · ff27b67b
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      1:/
      - Create a new MO:
          - Select any product
          - Delete all components
          - Add a work order
          - Save
      - Cancel the MO
      
      Problem:
      The work order is not cancelled because when we cancel a MO without components,
      we only change the status of the MO but do not check if there are WOs to cancel
      
      2:/
      when the MO is cancelled, the buttons ('start', 'Pause', 'block' and 'Done') must be hidden
      
      opw-2803052
      
      closes odoo/odoo#87528
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      ff27b67b
    • Huy's avatar
      [FIX] website_crm: skip archived visitors in stat button · 325aaebc
      Huy authored
      
      Currently stat button on crm.lead form view still shows page views count of
      archived visitor records. This is not coherent with the action performed
      when clicking which filters out archived records.
      
      We now correctly count only active visitors page count.
      
      closes odoo/odoo#87447
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      325aaebc
    • Giang Phạm's avatar
      [FIX] core: computed stored many2many field not computed at install · b54f78de
      Giang Phạm authored
      
      closes odoo/odoo#87320
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      b54f78de
  5. Mar 29, 2022
  6. Mar 28, 2022
Loading