Skip to content
Snippets Groups Projects
  1. Mar 03, 2023
    • Louis (loco)'s avatar
      [FIX] web, website: restore the use of the scroll to top button · 4ca793a3
      Louis (loco) authored
      
      Steps to reproduce the bug:
      - Go to the website and edit a page.
      - Make sure there is enough content to be able to scroll the page.
      - Go to the "Theme" tab and disable the "Show Header" option.
      - Click on the footer and enable the "Scroll Top Button".
      - Click on "Save".
      => Clicking on the "Scroll To Top" button does nothing.
      
      The "Scroll To Top" button is an anchor with its `href` set to `#top`.
      By disabling the "Show Header" option, the header is removed from the
      DOM and there is no existing element with `id=top` anymore. To fix
      this, the `scrollTo` function has been patched in order to be able to
      receive selectors as arguments. In the '#top' and '#bottom' case, those
      positions are known and always the same (either at the top of the
      document or the bottom of it) so there is no need to have the header or
      the footer present in the DOM in order to be able to scroll up to those
      positions.
      
      Now that the `scrollTo` function is able to scroll to the top or the
      bottom of the page even without header or footer, those two positions
      can always be suggested as internal link anchors during link edition.
      
      opw-3133464
      
      closes odoo/odoo#113117
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      4ca793a3
    • Arthur Detroux (ard)'s avatar
      [FIX] website: give correct height to image gallery on smaller screens · c36607dc
      Arthur Detroux (ard) authored
      
      Prior to this commit, the height of the Image Gallery snippet was set to
      auto on screens smaller than 400px.
      
      This ensures that the snippet looks the best on phones.
      
      However, when using Bootstrap, what defines a smaller screen is not
      any screen below 400px, but any screen below 768px.
      This meant that the Image Gallery snippet did not look the same on an
      iPhone 11 Pro max as it would on an iPhone 11 for example.
      
      This commit fixes that by using the built-in mixin that relies on
      Bootstrap's breakpoints (in this case SM).
      
      Steps to reproduce:
      - Go in edit mode and drop an "Image Gallery" snippet
      - Open the dev tools and choose "iPhone 11" or 375x812
      - The image gallery does not have white bands
      - Change the resolution to "iPhone 11 Pro Max" or 414x896
      - The image gallery has white bands / has a different layout
      
      opw-2995100
      task-2997119
      
      closes odoo/odoo#109761
      
      Signed-off-by: default avatarVray Benjamin (bvr) <bvr@odoo.com>
      c36607dc
    • Maruan Aguerdouh (magm)'s avatar
      [FIX] purchase: no more bold rows when unreaded messages that won't dissapear · 8741db1a
      Maruan Aguerdouh (magm) authored
      
      Steps to reproduce:
      
      - Install purchase and discuss.
      - Go to the purchase list view.
      - You will see the purchase lines in bold.
      
      Issue:
      
      The bold lines are supposed to indicate that we have unreaded messages
      in the chatter, but they are not working as expected, and instead it is
      mixed with discuss, and they bold line won't dissappear until we send a
      message in discuss.
      
      Solution:
      
      We removed from the views the "feature" of showing bold lines as it is
      not well implemented, and it is not working as expected. This will avoid
      confusion for the clients on not knowing what it is for, and when it's
      bold or when it's not. Also this feature was removed in future versions.
      
      Extra info:
      
      If you don't have any lines in bold, and you realize they don't appear
      when you send messages through the chatter. The easiest way I found to
      test it is removing `cp.channel_id = msg.res_id AND ` from the SQL query
      in the code inside `_compute_message_unread`. With this you will see the
      bold row whenever you send a message in the chatter, but it won't
      dissappear when you open the RfQ.
      
      Forward bot up to saas-15.2.
      
      opw-3185071
      
      closes odoo/odoo#113166
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      8741db1a
    • sofiagvaladze's avatar
      [FIX] hr_contract: proceed cron action even when ValidationError occurs · 66ba7a1b
      sofiagvaladze authored
      
      The method update_state is called from cron. When the contracts are
      updated couple things are checked. There are constraints set that can
      throw ValidationError. As a result, none of the contract states are updated.
      
      In this PR we do the following:
      In case the ValidationError occurs when we run the cron, we update
      contracts that can be updated, and silently pass the invalid contracts.
      
      task - 3069480
      
      bloupbloup
      
      closes odoo/odoo#110941
      
      Related: odoo/enterprise#36771
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      66ba7a1b
    • Benjamin Vray's avatar
      [FIX] website_form: fix items width in we-list when dragging them · f87daf1d
      Benjamin Vray authored
      
      This commit fixes an issue with the width of items in the we-list not
      being correct when they are being dragged using jQuery's sortable
      feature.
      
      Steps to reproduce the bug:
      
      - Drop a "Form" snippet on a page.
      - Add a "Multiple Checkboxes" field in the form.
      - Move an option from the list using the move button.
      - Bug: while dragging the item, the width of the items is too small.
      
      When an element is dragged, it is given an absolute position which takes
      it out of the normal flow of the document, causing the input element
      within the list item to no longer be able to correctly occupy 100% of
      the available width.
      
      task-3138662
      
      closes odoo/odoo#110871
      
      Signed-off-by: default avatarGuillaume-gdi <gdi@odoo.com>
      f87daf1d
  2. Mar 02, 2023
    • Valentin Vallaeys (vava)'s avatar
      [FIX] sale: compute price unit on downpayment line · 4d3a92ee
      Valentin Vallaeys (vava) authored
      
      For the moment, the price unit of the down payment line on the sale
      order is not always correctly computed. If the price unit is updated on
      the down payment invoice, it is not updated on the sale order; or if a
      regular invoice is created, the price unit of the down payment is set to
      zero on the sale order.
      
      This commit corrects the behavior by using the unit price of the invoice
      line.
      
      opw-3140740
      opw-3160406
      opw-3160420
      
      closes odoo/odoo#113769
      
      Signed-off-by: default avatarVallaeys Valentin (vava) <vava@odoo.com>
      4d3a92ee
    • Abdelouahab (abla)'s avatar
      [FIX] account_edi: continue uploading pdf if decrypting failed · 124250d1
      Abdelouahab (abla) authored
      To reproduce
      ============
      - on accounting -> Vendor -> Bills
      - upload the PDF attached on the ticket
      an exception is raised
      
      Problem
      =======
      PyPDF2 finds that this pdf is encrypted,so we try to decrypt it with empty password,
      but the decryption fails which rise an error.
      
      Solution
      ========
      according to this [commit](https://github.com/odoo/odoo/commit/851fe64f7789bb398383c22e3ebbaebb051791f6
      
      ), when the decryption fails
      we skip reading the attachments and carry on to allow the user to upload the document.
      
      opw-3196780
      
      closes odoo/odoo#114050
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      124250d1
    • Adrien Widart (awt)'s avatar
      [IMP] stock_landed_costs: test case with rounding issue · f26de2be
      Adrien Widart (awt) authored
      
      OPW-3115528
      
      closes odoo/odoo#108072
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      f26de2be
    • William Henrotin's avatar
      [FIX] stock_account: compensate rounding error · ae060c63
      William Henrotin authored
      To reproduce the issue:
      1. Create a product:
         - Type: Storable
         - Category:
           - Costing Method: AVCO
      2. IN 1000 @ 0.17
      3. IN 800 @ 0.23
      4. OUT 1000
      5. OUT 800
      6. Open the inventory valuation of the product
      
      Error: the total value is $-6.00, it should be zero
      
      Once all products received, the standard price is $0.20. Its value
      has been rounded because the real value is
      `(1000 * .17 + 800 * .23) / 1800 = 0,196666667`
      The standard price will create a difference when using the products,
      because:
      `(1800 * .20 = 360) != (1000 * .17 + 800 * .23 = 354)`
      That's the reason why a feature tries to compensate such rounding
      errors. So, step 4, when preparing the values of the out-SVL, we
      check if there is a rounding error, and we find a difference of $6,
      which is correct. However, the difference is above the treshold, so
      we will not consider it as a rounding error:
      https://github.com/odoo/odoo/blob/3ff51daa93a1d670b8f67f79418d4dd48e94875f/addons/stock_account/models/product.py#L197-L200
      
      
      
      Here is the issue: the threshold is based on the outgoing quantity
      (1000) while the value difference is based on the whole quantity
      (1800). This difference should also be proportional to the outgoing
      quantity.
      
      Note: The fix will still not work with a small quantity. The only and
      best solution is to change the type of the SVL unit cost into a
      float.
      
      OPW-3101374
      
      Part-of: odoo/odoo#108072
      Co-authored-by: default avatarAdrien Widart (awt) <awt@odoo.com>
      ae060c63
    • Elias Regopoulos's avatar
      [FIX] base_iban: Avoid KeyError on IBAN with non-ASCII characters · c081af94
      Elias Regopoulos authored
      
      If the IBAN includes a non-ASCII alphanumeric character and has just the right length, the IBAN validation crashes with a KeyError before validation can take place.
      
      Fictional example: The supposed IBAN code "Bank München-Wiesn GmbH" gets normalized to "BankMünchenWiesnGmbH"; a string that starts with a valid country code ('BA', ie. Bosnia-Herzegovina) and happens to have the same length as Bosnia-Herzegovina's IBAN format (20 characters). Normally this erroneous IBAN would've been rejected as invalid, but Python throws a KeyError when trying to convert 'ü' to an int right before the validation step.
      
      We therefore need to also check if all characters in the IBAN code are within the expected range, namely [a-zA-Z0-9] (strictly speaking, the IBAN's specification range is only [A-Z0-9], but we can be lenient since Python's `int()` is case-insensitive).
      
      closes odoo/odoo#113719
      
      X-original-commit: fc468f5a
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarElias <elre@odoo.com>
      c081af94
    • Thomas Lefebvre (thle)'s avatar
      [FIX] sale_timesheet: link timesheets that have a reversed invoice · 5fa8b13b
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      - create a sale order;
      - add products which are based on timesheets for invoicing policy;
      - create an invoice an confirm it;
      - make a full refund for this invoice with "ADD CREDIT NOTE" button;
      - create an new invoice for the sale order.
      
      Issue:
      There is no longer a statistics button
      that displays the hours worked on the invoice view.
      
      Cause:
      To reassign an account move to an account analytic line,
      it is necessary either that there is no invoice
      or that the invoice is in the cancel state.
      The case where the invoice has been refunded is not taken into account.
      
      Solution:
      Correct the domain that determines the timesheets (account analytic line)
      to be linked with the invoice being created.
      
      opw-3187219
      
      closes odoo/odoo#113985
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      5fa8b13b
  3. Mar 01, 2023
    • Abdelouahab (abla)'s avatar
      [FIX] account: specify `groups_id` for adding bank action · 68090907
      Abdelouahab (abla) authored
      
      To reproduce
      ============
      - with Invoicing installed, give a user the group Billing Administrator without giving any Administration group
      - connect to this user and try to add a bank account
      an access right is raised
      
      Problem
      =======
      the `groups_id` on the action `action_new_bank_setting` is not specified
      so when runing the action we check if it has `groups_id`, if not, we check
      if the user has the right to write on the target model which is `res.company`
      here, which is not for this user because he doesn't have any Administration group.
      
      Solution
      ========
      specify `groups_id` to `account.group_account_manager`
      
      opw-3199435
      
      closes odoo/odoo#113836
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      68090907
    • Loan (LSE)'s avatar
      [FIX] payment_payulatam: Adapt rounding method if webhook · fab913e7
      Loan (LSE) authored
      backward port of:
      https://github.com/odoo/odoo/pull/113768
      
      Before this commit:
       If a payulatam payment is received from the confirmation
       page (so, with the webhook). If the value have some decimals
       it might be rounded in the wrong way.
       As such, the generated signature to compare with is wrong
       and the payment validation cancelled
      
      After this commit
       If we cross compare the signature generation documentation:
       https://developers.payulatam.com/latam/en/docs/integrations/webcheckout-integration/response-page.html#signature-validation
       https://developers.payulatam.com/latam/en/docs/integrations/webcheckout-integration/confirmation-page.html#signature-validation
      
      
       We notice that the `new_value` computation is slightly different
       depending on the return.
       The one we currently use for both method is the "return"
       one which is computed differently from the "confirm" one.
      
       With this change of code a "confirmation" page payment
       will be validated as intended.
      
      I also changed the log level from warning to exception
      so that the traceback and exception message is logged.
      Before this commit there was just a generic warning message
      
      opw-3018628
      
      closes odoo/odoo#113987
      
      X-original-commit: 0e29f948
      Signed-off-by: default avatarLoan (LSE) <lse@odoo.com>
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      fab913e7
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] l10n_id_efaktur: use shipping address for Column "ALAMAT LENGKAP" · df74fb68
      Andrea Grazioso (agr-odoo) authored
      To generate an e-faktur
      
      1. Settings > Users & Companies/Compagnies:
      - Create a new company ‘ID Indonesia’:
      - Set the state (e.g Yogyakarta (ID))
      - Set the country ‘Indonesia’
      
      2. Accounting > Customers > e-Faktur
      - Set a range of numbers (which are supposed to be assigned by the
      Indonesian government)
      
      3. Accounting > Configuration > Settings
      - Fiscal Localization: select the Indonesian package
      
      4. Accounting > Customers > Customers
      - Create a new res.partner:
      - Set the country ‘Indonesia’
      - Check ‘ID PKP’ field
      - Fill Tax Address field
      - Fill NIK field
      - Under ‘Accounting tab’: set both accounting entries (Receivable +
        Payable)
      - Create a delivery address
      
      5. Accounting > Customers > Invoices
      - Create a random invoice with the res.partner set in point 5. as the
      Customer
      - Confirm the invoice
      - Action > Download e-Faktur
      
      Under column ALAMAT LENGKAP the tax Address will be used, but the
      delivery address should be used
      Follows the official documentation with translation
      https://www.pajakku.com/tax-guide/12490/PER_DIRJEN_PJK/PER
      
       - 03/PJ/2022
      (Article 6, paragraph 6)
      
      Translation:
      Paragraph 2 : The identity of the Buyer of Taxable Goods and Services or
      the Recipient of Taxable Goods and Services which includes name,
      address, NPWP, NIK, and passport number as referred to in Article 5
      letter b must be filled in accordance with the actual or actual name,
      address, NPWP, NIK, and passport number.
      
      Paragraph 6 : In the event that the delivery of Taxable Goods and/or
      Taxable Service is made to the Buyer of Taxable Goods and/or Receiver of
      Taxable Service which is the place where the VAT or VAT and STLG payable
      is concentrated, but the Taxable Goods and/or Taxable Service is sent or
      delivered to the place where the VAT or VAT and STLG payable is
      centralized, the following provisions shall apply:
      a. the name and NPWP as referred to in paragraph (2) shall be the name
      and NPWP of PKP where the VAT or VAT and STLG payable is centralized;
      and
      
      b. the address as referred to in paragraph (2) shall be the address of
      the place where the VAT or VAT and STLG payable that is centralized
      receives the Taxable Goods and/or Services.
      
      opw-2878096
      
      closes odoo/odoo#94338
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      df74fb68
    • Guillaume (gdi)'s avatar
      [FIX] website,web_editor: prevent horizontal scroll on we-matrix · 356e0a1f
      Guillaume (gdi) authored
      
      Before this commit, we-matrix could create a horizontal scroll bar in
      the editor. This was because the inputs had a minimum width size.
      
      Steps to reproduce the bug:
      - Drop a chart block on a page
      - Add some series
      
      => The matrix overflows from the editor.
      
      There is no perfect solution to this problem... We have the choice
      between:
      1) Leave the existing overflow on the editor.
      2) Put a horizontal scroll on the we-matrix.
      3) Distribute the available space between the columns.
      
      As we don't want a horizontal scrollbar, the best solution is to
      distribute the available space between the columns. This solution has a
      drawback which is that the cells can become really small if there are a
      lot of columns but this solution seems to be the least bad from a UX
      point of view.
      
      task-3094162
      
      closes odoo/odoo#107400
      
      Signed-off-by: default avatarBojabza Soukéina (sobo) <sobo@odoo.com>
      356e0a1f
    • Romain Derie's avatar
      [FIX] website_blog: prevent params to be lost when only one blog · 6d4dba27
      Romain Derie authored
      
      With DB having only one blog (most common case, but we are used to test
      it with demo data where we have two), the query params are lost when
      accessing the blog controller without passing a blog.
      
      Eg, `/blog?search=hubble` will redirect to `/blog/traval-1`
      
      This is because the business code is doing an early redirect if we
      access the `/blog` URL without a blog post passed to it to redirect to
      that blog post URL directly (since there is only one), but that redirect
      is not passing the query parameters.
      
      The main impacted params are `state`, `order` and `search` but it's the
      same for all others.
      
      Step to reproduce (in later version):
      - Be sure to only have one blog
      - Drag & drop the search snippet in the homepage or anywhere
      - Make it search on blog only (through the snippet option)
      
      Type anything, it will not work and won't do the search. It will just
      redirect to the blog page.
      
      closes odoo/odoo#113855
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      6d4dba27
    • Louis (loco)'s avatar
      [FIX] web: prevent multiple clicks on the log in button · 7caba372
      Louis (loco) authored
      
      Before this commit, the user had the possibility to spam the "Log in"
      button when trying to connect. This could lead to a change of the CSFR
      token and an errror of type "werkzeug.exceptions.BadRequest: 400 Bad
      Request: Session expired (invalid CSRF token)" could then happen.
      This commit makes the “Log in” button un-clickable once it has been
      clicked and adds a loading effect to it.
      
      task-2996329
      
      closes odoo/odoo#104323
      
      Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
      7caba372
    • Guillaume (gdi)'s avatar
      [FIX] website_profile: prevent losing search params · 64f525ea
      Guillaume (gdi) authored
      
      Before this commit, the "rank by" parameter was deleted when a visitor
      added a search criteria. This commit solves this problem.
      
      Steps to reproduce the issue:
      - Go to "/profile/users"
      - Click on "Rank by" and select "This week"
      - Search for a user (e.g. "admin")
      
      => The "rank by" parameter is lost and if you click on "This week"
      again, the search (admin) will be lost.
      
      task-3058239
      
      closes odoo/odoo#105462
      
      Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
      64f525ea
    • Guillaume (gdi)'s avatar
      [FIX] website_blog: prevent losing search params · 835230b2
      Guillaume (gdi) authored
      Before this commit, search criteria could be lost when a visitor added a
      new search criteria on blogs. This commit solves this problem.
      
      Steps to reproduce the issues (with activate the sidebar):
      - Go to the /blog
      - Click on the adventure tag
      - Select a month in the date filter
      
      => The adventure tag is lost.
      
      - Go to the /blog
      - Select a month in the date filter
      - Click on the adventure tag
      - Remove the date filter
      
      => The adventure tag is lost.
      
      - Go to the /blog
      - Select a month in the date filter
      - Search for the blogs containing the word "heli"
      
      => The date filter is lost.
      
      task-3058239
      
      Part-of: odoo/odoo#105462
      835230b2
    • Guillaume (gdi)'s avatar
      [FIX] website_event_track_quiz: keep search filter on page change · 026d08b1
      Guillaume (gdi) authored
      Before this commit, following these steps:
      - Have more than 30 attendees for an event
      - Go to the event page
      - Click on community
      - Search for a letter that is in the +30 attendees names
      - Go to the second page of search results
      
      => We lose the filtering of the attendees by the letter. This commit
      allows to keep the filters when the user is on a result page and
      changes page.
      
      task-3058239
      
      Part-of: odoo/odoo#105462
      026d08b1
    • Guillaume (gdi)'s avatar
      [FIX] website_profile: make the pager work when searching · 6614c90b
      Guillaume (gdi) authored
      Before this commit, following these steps:
      - Have more than 30 users
      - Go to /profile/users/
      - Search for a letter that is in the +30 users names
      - Go to the second page of search results
      
      => We lose the filtering of the users by the letter. This commit allows
      to keep the filters when the user is on a result page and changes page.
      
      task-3058239
      
      Part-of: odoo/odoo#105462
      6614c90b
    • Guillaume (gdi)'s avatar
      [FIX] website_blog: make the pager work when searching by word/date · 51fce398
      Guillaume (gdi) authored
      Before this commit, following these steps:
      - Have more than 12 blog posts
      - Search for a word that is in the +12 blog posts
      - Go to the second page of search results
      
      => We lose the filtering of the blog posts by the word. The same
      behavior can be observed if you search by date (via the sidebar). This
      commit allows to keep the word and date filters when the user is on a
      result page and changes page.
      
      task-3058239
      
      Part-of: odoo/odoo#105462
      51fce398
    • Guillaume (gdi)'s avatar
      [FIX] website_blog: fix the blogs search · 444e511a
      Guillaume (gdi) authored
      Before this commit, following these steps:
      - Go to /blog
      - Enable the customize option 'Top banner - Name / Latest Post'
      - Disable the customize option 'Full-Width Cover'
      - Search for the word 'helicopter' in the blog post search bar
      
      Two problems are then visible:
      1) The top banner is always visible with a blog post that does not match
      the search. This top banner should not be visible (like for tag and date
      searches).
      2) There is an alert message 'No results for "helicopter".' while the
      blog post 'Maui helicopter tours' matches the search.
      
      This commit corrects both errors.
      
      task-3058239
      
      Part-of: odoo/odoo#105462
      444e511a
    • Guillaume (guva)'s avatar
      [FIX] l10n_de: add shipping address in .pot · 9a54916d
      Guillaume (guva) authored
      
      Add missing term "Shipping Adress"
      
      opw-3198115
      
      closes odoo/odoo#113958
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      9a54916d
  4. Feb 28, 2023
    • pedrambiria's avatar
      [FIX] google_calendar: send the request URL for the `redirect_uri` · 7b321a42
      pedrambiria authored
      
      Before this commit: if a different `web.base.url` is set with
      `web.base.url.freeze`, during the first synchronization of Google
      calendar it will show a mismatch URL error. The problem is that we
      send the `redirect_uri` based on the `web.base.url` in the
      `_get_authorize_uri` function.
      
      The solution is to use the request root URL instead.
      
      opw-3175539
      
      closes odoo/odoo#113902
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      7b321a42
    • pedrambiria's avatar
      [FIX] google_calendar: use the event user token to send the request · 83f0f180
      pedrambiria authored
      
      Before this commit: it was possible to create an event for another user as
      its organizer. But even if that user has a synchronized Google calendar, it
      will be sent by the current user token, and it causes several issues.
      
      The solution is to use the event's organizer token if it exists.
      
      opw-3076595
      
      closes odoo/odoo#110858
      
      Signed-off-by: default avatarPedram Bi Ria (pebr) <pebr@odoo.com>
      83f0f180
    • Paolo Gatti (pgi)'s avatar
      [FIX] l10n_it_edi_sdicoop: fix EDI notification logic · 536d3f28
      Paolo Gatti (pgi) authored
      In some cases, Odoo's move state is unaligned to that on the
      IAP Proxy Server, because the ACK message from Odoo to IAP
      deletes all attachments from the EDI transactions on the IAP
      without regard if they are with type "Send" or "Receive".
      
      We fix both cases by making Odoo just look at the state and not
      to the attachment when it's not needed, and it's only needed when
      there is a rejection of the document being sent.
      
      We reserve for the future a change to the ACK to only delete the
      attachments by transmission type (Send/Receive) so that they don't
      interfere.
      
      Error case 1:
      - Odoo client sends an invoice to the IAP Proxy
      - The IAP proxy will send it to the SdI
      - If everything goes well, the SdI will send a notification back
      - The IAP proxy sees the notification and saves it
      - The Odoo of the client downloads the notification and sends an ack
      - The IAP proxy sees the ack and deletes the attachment
      - (ERR!) The client resets to draft, modifies and re-confirms
      - The state of his invoice is set again To Send
      - Odoo tries to re-send the invoice with the same Id Transaction
      - The notification for that Id Transaction is already on the IAP proxy
      - Odoo client asks for changes, but just sees the old notification
      - (-->) The old notif. has no attachment, so Odoo thinks there's no news
      - The move in Odoo stays in the To Send state forever
      
      Error case 2:
      - Odoo client sends a Tax Integration for a Vendor Bill (reverse charge)
      - The IAP proxy will send it to the SdI
      - If everything goes well, the SdI will send the same Vendor Bill back
        as the client's CodiceDestinatario is actually the recipient in the XML
      - The IAP proxy sees the file, the Id Transaction is the same
        for both the received and the sent documents
      - The SdI sends a notification because the tax integration is OK
      - The IAP proxy saves the notification, there are now two EDI
        transactions with the same Id Transaction.
      - Odoo checks for new documents
      - IAP proxy sends the document to Odoo
      - Odoo sends an ACK for that
      - (ERR!) the IAP proxy sees the ACK and clears the attachment
        from BOTH the records for sent and received document
      - Odoo checks for documents updates and gets the record without
        the attachment
      - (-->) The notification has no attachment, so Odoo thinks there's no news
      - The move in Odoo stays in the To Send state forever
      
      Ticket link: https://www.odoo.com/web#id=3194378&model=project.task
      
      
      opw-3194378
      
      closes odoo/odoo#113666
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      536d3f28
    • Benjamin Vray's avatar
      [FIX] web_editor: fix moving inner content in carousel slides · f22444d6
      Benjamin Vray authored
      
      Before this commit, when moving inner content inside a carousel slide
      (with the 'move' button), the carousel was jumping to the first slide.
      
      Steps to reproduce the bug:
      
      - In website edit mode, drag and drop a Carousel snippet onto the page.
      - Move to the second slide.
      - Click on the column to activate its overlay.
      - Click and hold the "drag and drop" button of the column to start
      dragging it.
      - Release the mouse button.
      - Bug: the carousel jumps to the first slide.
      
      task-3006831
      
      closes odoo/odoo#103086
      
      Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
      f22444d6
    • Hansun (hale)'s avatar
      [FIX] website_crm_partner_assign: foolproof translation for partner lvl · 1cb32caa
      Hansun (hale) authored
      
      To reproduce the issue:
      1. Add French as a language to your profile
      2. Install [CRM], [Resellers] on Apps
      3. On [Settings]>[Website]
      - set the language to French then SAVE
      4. Go to [CRM]
      - click [Configuration]>[Partner Level]
      - click Gold
      - click [Go to Website] at the top right corner
      - adjective and subject order is not natural for French speakers
      
      Desired behavior: Remove the word 'Partner' (show level only)
      
      Impacted versions: 14.0 up to master
      
      opw-3160102
      
      closes odoo/odoo#113395
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      1cb32caa
    • Hansun (hale)'s avatar
      [FIX] account: control account payment creation · 8b473eff
      Hansun (hale) authored
      
      1. Install [Studio], [Accounting] on Apps
      2. Enter [Accounting]
      - Click the Studio icon second to left on the top right corner
      - [Edit Menu]
      - [NEW MENU]
      - Fill in e.g.`Test`, select [Existing Model], Model: Payment Methods
      - Click the icon on the right, check it is `account.payment.method`
      - [SAVE & CLOSE]
      - [CONFIRM]
      - [CLOSE]
      3. Click on `Test` menu created next to [Configuration]
      - [NEW]
      - Type in all info, click to Save
      - Error is thrown
      
      Desired: block users from creating a `payment.method` by all means
      
      Impacted versions: 14-master
      
      opw-3148453
      
      closes odoo/odoo#113787
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      8b473eff
    • maximilien(malb)'s avatar
      [FIX] sms: invisible description when empty · 050e9c77
      maximilien(malb) authored
      
      Before this change, when the recipient_single_description field was empty (the field is then false), the field box was still displayed before the number. Since the field is not editable there is just a blank space.
      
      This PR hides the field when it is empty to avoid having the empty space.
      
      closes odoo/odoo#105436
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      050e9c77
    • Guillaume (guva)'s avatar
      [FIX] l10n_de: add missing translations · 7bba9c99
      Guillaume (guva) authored
      
      Add missing translations to .pot
      
      opw-3198115
      
      closes odoo/odoo#113831
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      7bba9c99
    • Benjamin Vray's avatar
      [FIX] web: fix smooth scroll on drag in iframes · f083e664
      Benjamin Vray authored
      
      This commit addresses a bug in jQuery Draggable where the 'stop' event
      did not trigger a 'mouseup' event outside of the dragged element window
      if it was inside an iframe. This issue only occurred in Chrome (Firefox
      was not affected).
      
      In mass_mailing, this issue occurred in the email editor when the mouse
      was released in the area above the editor. This error also affected the
      Sign module, where elements can be dropped into a PDF, and where the
      'stop' event of the dragging did not trigger outside of the iframe.
      
      Steps to reproduce the bug in mass_mailing:
      
      - Open the Email Marketing app.
      - Create a new mailing.
      - Choose the second available email template.
      - Click and hold the "drag and drop" button of the first snippet (Your
      logo) to start dragging it.
      - While dragging the snippet, move the mouse outside of the email editor
      iframe.
      - Release the mouse button.
      - Bug: the drop zones are still present in the DOM, and it is possible
      to save the template with them.
      
      opw-3164969
      
      closes odoo/odoo#112979
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      f083e664
    • Tiffany Chang (tic)'s avatar
      [FIX] mrp: always assign allowed_mo_ids · 5d161fc5
      Tiffany Chang (tic) authored
      
      PR: odoo/odoo#113475 replaced the computation of allowed_mo_ids with a
      `pass` since this field was no longer needed anymore but could not be
      removed in a stable version. This breaks the unbuild flow since this
      value must be assigned and throws a ValueError without it, therefore
      we now default allowed_mo_ids = False to avoid this error. (i.e. cannot
      open any existing unbuild records + cannot validate new unbuilds)
      
      closes odoo/odoo#113824
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      5d161fc5
  5. Feb 27, 2023
  6. Jan 23, 2023
  7. Feb 27, 2023
  8. Feb 26, 2023
Loading