Skip to content
Snippets Groups Projects
  1. Feb 08, 2023
  2. Feb 07, 2023
    • Romain Derie's avatar
      [FIX] website: add website field in ir_asset list view · 1e6ea1a1
      Romain Derie authored
      For some reason the `website_id` field was added in the form view of the
      `ir.asset` model in a website module overide but it was not done for the
      list view where it matters equally (if not most regarding the flow).
      
      Indeed, those views / this model is mainly accessed for debugging
      purpose in which case you are most likely looking for a specific asset.
      In the website case, it's most of the time to find the custom asset
      that was created following a scss customization in the right panel of
      the website builder.
      In such a case, it will have a website_id and will be easy to find in
      the list view.
      
      It's also the case for all the records having a `website_id`, we show
      that field in both form and list view, it's always important when
      managing / debugging DBs in multi-website environment.
      
      See [1] for introduction of `ir.asset`.
      
      [1]: https://github.com/odoo/odoo/commit/8cc066173dfb61bd95b8e1f0716f71f4e251810a
      
      
      
      closes odoo/odoo#111883
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      1e6ea1a1
    • Guillaume (gdi)'s avatar
      [FIX] web_editor: fix inputs usable with the arrows and without preview · 2e668f9c
      Guillaume (gdi) authored
      
      The user can use arrows up/down to change the value of an input in the
      editor (inputs that handle numerical values). Unfortunately if this
      input does not trigger a preview (data-no-preview="true"), the
      modifications made by the user with arrow up/down are not saved. This
      commit solves this problem by notifying that the value has changed at
      the input blur (or on ENTER key press) if arrow up/down has been used.
      
      Details:
      Since we use text inputs in the editor, (even to manage numerical value)
      the management of arrow up/down is done manually, so Javascript does not
      consider the value of the input has changed and therefore does not
      trigger the change event. Another solution would have been to say that
      when we know that the input is going to manage a numeric value, we put
      the type="number" on it but in this case, the change event is triggered
      at each arrow up/down which breaks the fact that some inputs do not want
      to have a preview.
      
      Steps to reproduce the problem:
      - Drop the Products block in a page
      - Use arrow up/down to change the value of the Slider Speed input
      - Save and Edit again
      => The change made with arrow up/down has not been saved.
      
      task-2765868
      
      closes odoo/odoo#88791
      
      Signed-off-by: default avatarArthur Detroux (ard) <ard@odoo.com>
      2e668f9c
    • Touati Djamel (otd)'s avatar
      [FIX] repair: prevent cancelling a completed repair order · b21bbcef
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a repair:
          - Add any product to repair
          - Add any other product as part of the repair
          - Confirm the repair
          - Start the repair
          - End repair
      
      Problem:
      The cancel button becomes visible and clicking on it won't cancel the
      moves, so it doesn't make sense to cancel a finished repair.
      
      opw-3146606
      
      closes odoo/odoo#111902
      
      X-original-commit: 8d37cf46
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      b21bbcef
    • Touati Djamel (otd)'s avatar
      [FIX] delivery: compute total amount only if a sale order exists · afed7db3
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a delivery transfer:
      - Add any product
      - Select any carrier in the additional info tab
      - try to validate the transfer
      
      Problem:
      An error is triggered: `ValueError: Expected singleton: sale.order()`
      The `_compute_amount_total_without_delivery` function is called with an
      empty recordset whereas we need to trigger it with a sale_order
      
      opw-3164490
      opw-3168878
      opw-3166074
      
      closes odoo/odoo#112069
      
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      afed7db3
    • Nicolas Bayet's avatar
      [FIX] web_editor: write with string in update_checklist · e3900dfe
      Nicolas Bayet authored
      
      Before this commit, when the user tried to update a checklist, there
      was a traceback in `handle_history_divergence` because the `value` is a
      byte sequence instead of a string.
      
      opw-3158660
      task-3165844
      
      closes odoo/odoo#111616
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      e3900dfe
    • Antoine Guenet's avatar
      [FIX] web_editor: force custom style in ui on non-custom link with style · 7736d200
      Antoine Guenet authored
      This reverts commit [1] so as to avoid updating the DOM in two separate
      places of the code for link edition. Said commit intended to prevent the
      removal of custom styles on a button on which styles were applied
      (erroneously) without applying a custom button class. This fixes that
      issue by adapting the UI to show the button is custom if there are
      custom styles applied. This way, if any change is applied, when
      modifying the DOM, the custom class will be applied as well. This is the
      order in which such corrections are usually applied with the snippets
      bar.
      
      [1]: https://github.com/odoo/odoo/commit/eb4edac560227b46efdcfe958e3b93e0b88def64
      
      
      
      closes odoo/odoo#108615
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      7736d200
    • Antoine Guenet's avatar
      [FIX] mass_mailing: properly disable wrong link color option · 720576e6
      Antoine Guenet authored
      The background color snippet option contains a superfluous selector. To
      make sure the option doesn't actually appear for that selector, without
      modifying the XML file in stable, commit [1] hid it in those cases. But
      we want the option not to even be instantiated, which this commit
      achieves by modifying the selector when computing the snippet templates.
      
      [1]: https://github.com/odoo/odoo/commit/925e73e02c5bc054d06fc2097acc9e4244cabe38
      
      Part-of: odoo/odoo#108615
      720576e6
    • tsm-odoo's avatar
      [FIX] bus: Bus unavailable error in multi process mode · fe2c7928
      tsm-odoo authored
      
      closes odoo/odoo#111625
      
      Signed-off-by: default avatarStockbauer Matthieu (tsm) <tsm@odoo.com>
      fe2c7928
    • Florent de Labarre's avatar
      [FIX] account: can't get previous move · e88f7695
      Florent de Labarre authored
      
      In case of a user have no access to all account.move (restrict by ir.rules). An exception can raise during move posting.
      
      Add an index to speed up this function in large database.
      
      OPW #3159258
      
      closes odoo/odoo#112019
      
      X-original-commit: b2e3c58a
      Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
      e88f7695
    • Florent de Labarre's avatar
      [FIX] account: prevent change restrict mode hash · e58c08cd
      Florent de Labarre authored
      
      In case of an user can edit account.journal and have no access of all account.move of this journal, the user can set to false this field : restrict_mode_hash_table.
      
      closes odoo/odoo#112014
      
      X-original-commit: c1bcf20a
      Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
      e58c08cd
    • Nicolas Bayet's avatar
      [FIX] web_editor: get data-last-history-steps on corrupted data · 5e821e37
      Nicolas Bayet authored
      
      Before this commit, the odooEditor was aware of the initial history id
      by reading the data-last-history-steps attribute on the first node of
      the editable. When there is a corrupted html in an html field, the
      parsing made by wysiwyg can remove some node when it parses the string
      value before it is read by the odooEditor. If that process remove the
      first node, there is no way for the odooEditor to retrieve it.
      
      This commit makes the wysiwyg responsible to retrieve the initial
      history id by reading the string value rather than the generated dom
      tree.
      
      At the time of this commit, there is another problem in the editor
      that make the above case easy to reproduce. Pasting a table containing
      a tbody added a corrupted html. To reproduce:
      - open note
      - create task
      - write a letter in the first paragraph
      - hit enter (to create a new paragraph)
      - paste into the last paragraph an external html containing a `tbody`
        tag.
      => the pasted html will not contain the table but will contain the
         <tbody> and therefore be considered corrupted.
      - save the document
      - click edit
      - make any change in the document
      - click save
      => traceback because the initial history id was not found when the
      odooEditor was instanciated.
      
      The reason it was not found is because the first node of the editable
      was remove by the parsing of the jquery method `html` that removed the
      first node.
      
      This commit improve the retrievement of the id by reading the string
      instead of the gerenated dom tree.
      
      opw-3146216
      
      closes odoo/odoo#111596
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      5e821e37
  3. Feb 06, 2023
  4. Feb 05, 2023
  5. Feb 04, 2023
  6. Feb 03, 2023
  7. Feb 02, 2023
    • Nicolas Bayet's avatar
      [FIX] web_editor: retry peer to peer connection with exponential backoff · fd97295c
      Nicolas Bayet authored
      
      When there is a problem in the peer to peer network where we try to
      recover a connection, retry with exponential backoff instead of
      potentially spamming the server indefinitely.
      
      task-3164011
      
      closes odoo/odoo#111452
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      fd97295c
    • gawa-odoo's avatar
      [FIX] base: add German states · c741637f
      gawa-odoo authored
      
      We need German states when formatting the 'SteurNummer'.
      So we provide it so the user can select his, instead of having to
       create them by hand.
      
      task-3056694
      opw-2974560
      
      closes odoo/odoo#107617
      
      Related: odoo/enterprise#34853
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      c741637f
    • roen-odoo's avatar
      [FIX] point_of_sale: Correctly compute refund cogs value · e226bd36
      roen-odoo authored
      
      Current behavior:
      When making a refund of an order in the PoS, the cost of good was
      computed as if the refund was a classic order.
      
      Steps to reproduce:
      - Make sure you are in anglo-saxon accounting
      - Create a category that use AVCO and automated valuation
      - Create a product with a cost of 10€ that is part of the new category
      - Create a PoS order with the product
      - Refund the order
      - Close the session, and check the accounting entries, the cost of good
        sold is 20€ instead of 0€
      
      Note: this fix needs you to set the return picking type in the Operation
      type of the PoS
      
      opw-3149324
      
      closes odoo/odoo#111726
      
      X-original-commit: df2bd1f7
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      e226bd36
Loading