Skip to content
Snippets Groups Projects
  1. Feb 09, 2023
    • Martin Trigaux's avatar
      [I18N] migrate to the nex transifex API · a7c02c7f
      Martin Trigaux authored
      Tansifex is deprecating it's client and switches to a go-based
      solution in its API v3
      
      The new client is still backward compatible with the old format but
      the v2 API is going to be phased out.
      See https://github.com/transifex/cli
      
       to install the deplyments using
      the tx client
      
      This PR is the result of the "tx migrate" command
      
      closes odoo/odoo#112269
      
      Transifex: adapt to new URL format
      X-original-commit: af865ec1
      Related: odoo/documentation#3514
      Related: odoo/enterprise#36853
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      a7c02c7f
    • std-odoo's avatar
      [FIX] google_gmail: fix google gmail oauth crashing · 3624a071
      std-odoo authored
      
      Bug
      ===
      When an error occurs, the error received is wrongly stringified.
      
      closes odoo/odoo#112290
      
      X-original-commit: 1bf9278b
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Signed-off-by: default avatarStéphane Debauche (std) <std@odoo.com>
      3624a071
    • Touati Djamel (otd)'s avatar
      [FIX] stock, purchase_stock: apply putaway strategy even if no package · 08ba0fd4
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Enable “Storage location” option
      - Create a storable product “P1”
      - Create a putaway rule:
          - When in: WH/Stock
          - Store to: WH/Stock/shelf1
          - product: P1
      - Go to operation types -> “Receipts orders”
          - Enable “Show Detailed operations” and
          “Pre-fill detailed operations”
      - Create a purchase order:
           - Add 2unit of “P1”
           - Confirm the PO
      - Go to the receipt:
           - the destination location is correctly set “WH/stock/shelf1”
           - set the qty done to 1
           - validate the delivery and create a back order
      
      Problem:
      The destination location is “WH/Stock” instead of “WH/stock/shelf1”
      because the ```_apply_putaway_strategy``` function is not called on
      the ```stock.move.line``` when there is no package
      
      opw-3162934
      
      closes odoo/odoo#112227
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      08ba0fd4
    • Rodopho Cammarosano de Lima (rcdl)'s avatar
      [FIX] web_editor: fix issues caused by textContent · 249de26b
      Rodopho Cammarosano de Lima (rcdl) authored
      
      Issue #1: reading textContent
      
      When reading the textContent property of an element, its does not take into
      account line breaks introduced by <br> and block elements, whilst innerHtml
      does.
      
      This commit solves the issue of updating a link's href to a non-sense url
      upon label change. Before this commit, "www.abc.com <br> www.xyz.com" was
      being incorrectely parsed as "www.abc.comwww.xyz.com".
      
      Issue #2: setting textContent
      
      When setting the textContent property of an element, all of its child nodes are
      removed and replaced by a single text node. While this is fine when the
      element contains a single text node, it might not be the desired result when
      the element contains other children.
      
      This commit solves the issue obtained when pasting html such as
      "link.com<br>link.be" inside an empty inline element such as STRONG or A,
      in which cleanForSave was changing its content (removing the line-break) due
      to misuse of textContent, when the intended effected was simply removing
      ZeroWidthSpace characters. A safer alternative for removing ZeroWidthSpace is
      thus provided.
      
      task-3081254
      
      closes odoo/odoo#108521
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      249de26b
    • Richard deMeester's avatar
      [FIX] stock_account: Changing costing method with negative stock · 862d3bdf
      Richard deMeester authored
      
      Usecase to reproduce:
      - Set product as FIFO and a cost of 10$
      - Sell 5 units
      - Modify the cost method to average
      
      We expect the value of the stock to remain -50$.
      However it went to -150$
      
      It happens because the change of cost method is not supported
      with negative quantity of stock. It's not really a huge bug because
      it will be reconcile to the real value in the next in and when the
      stock will be positive again but at least it gives a proper valuation
      of the inventory.
      
      opw-3100717
      
      closes odoo/odoo#111327
      
      X-original-commit: 3ff51daa
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      862d3bdf
    • clesgow's avatar
      [FIX] stock: Allow previous move in chain to reserve for forecast · fae74163
      clesgow authored
      
      When chaining multiple moves (like in a multi-step delivery), if
      products are reserved on the previous moves of the chain, the products
      won't appear as "Reserved" in the forecast report, leading to
      inconsistencies between reservation done in stock and the one showed in
      the report.
      
      Steps to reproduce :
      - Enable multi-step deliveries for this warehouse
      - Put enough quantity in stock for a single product
      - Create a Sale Order, validate it and the validate the firsts pickings
      (i.e. pick/pack transfers)
      - Create another Sale Order, validate it. Check that the quantity is
      reserved in the first picking (i.e. pick transfer)
      - Go to the forecast report, only the first SO will me marked as
      "Reserved from Stock", even if both are.
      
      opw-3074572
      
      closes odoo/odoo#107973
      
      X-original-commit: c429c05d
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      fae74163
  2. Feb 08, 2023
  3. 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
  4. Feb 06, 2023
  5. Feb 05, 2023
  6. Feb 04, 2023
  7. Feb 03, 2023
Loading