Skip to content
Snippets Groups Projects
  1. Aug 29, 2023
    • dinolew's avatar
      [FIX] l10n_cn_city: correct the zipcode from the list · 157d279a
      dinolew authored
      
      closes odoo/odoo#133066
      
      X-original-commit: 854923b8
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      157d279a
    • Dino Lew's avatar
      [CLA] signature for wllbll · e0f12a6c
      Dino Lew authored
      X-original-commit: b9de6fc2
      Part-of: odoo/odoo#133066
      e0f12a6c
    • std-odoo's avatar
      [FIX] web: properties, fix the label requirement check · 5c072074
      std-odoo authored
      
      Bug
      ===
      The labels of the properties and their names are always required,
      the check was wrongly done and still used the historical name "id"
      instead of "name".
      
      If a property value is missing, the color of the label is marked in red.
      But the datepicker and dropdown are also in read which we don't want
      (only the label).
      
      Task-3188915
      
      closes odoo/odoo#123640
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      5c072074
    • Benjamin Vray's avatar
      [FIX] website: fix images wall with link on image · 9893391c
      Benjamin Vray authored
      
      After this commit, we prevent the slideshow from appearing when clicking
      on an "Images Wall" snippet image that has been set as a link.
      
      Steps to reproduce the bug:
      
      - Drag and drop an "Images Wall" snippet onto the page.
      - Add some images in the snippet.
      - Click on an image within the snippet.
      - In the editor text toolbar, click on the "Link" button.
      - Set the URL of the link to "/contactus".
      - Click on the "Save" button in the modal.
      - Save the page.
      - Click on the image with the link.
      - Bug: The slideshow briefly appears before redirecting to the "contact
      us" page.
      
      task-3425624
      
      closes odoo/odoo#133347
      
      X-original-commit: 8b29eabb
      Signed-off-by: default avatarColin Louis (loco) <loco@odoo.com>
      9893391c
    • Nshimiyimana Séna's avatar
      [FIX] loyalty: add link to discout products in loyalty.program form view · 767eccb1
      Nshimiyimana Séna authored
      
      A customer has a gift card product linked to a specific income account.
      When sold, the income account associated with the gift card product is
      credited correctly. The issue arises when the gift card is consumed
      within a sales order. An order line is added using a "dummy product" to
      indicate the gift card's usage (one dummy product is created for each
      loyalty program). Due to this, when an account move is created from the
      sale order, the income account defined on the dummy product is used
      instead of the one on the gift card product. This leads to the wrong
      income account being debited, causing unbalanced accounting entries.
      
      There's currently no way to link back to the original gift card product
      from a `loyalty.card` record. Because of this, the system cannot
      identify the correct income account to debit. Fixing this would require
      adding a new field, which we can't do in stable.
      
      A potential workaround is to find the dummy product and set the income
      account to the same as the gift card product. However, with one dummy
      product for each `loyalty.program`, all named "Gift Card", finding the
      right dummy product is difficult.
      
      This commit aims to simplify the workaround by adding a link to the
      associated dummy product on the `loyalty.program` form view. This change
      should ease the process of finding and modifying the correct dummy
      product, thus mitigating the issue in the current stable version.
      
      opw-3239720
      opw-3373287
      
      closes odoo/odoo#132857
      
      Signed-off-by: default avatarSéna Serge Nshimiyimana (sesn) <sesn@odoo.com>
      767eccb1
  2. Aug 28, 2023
  3. Aug 27, 2023
  4. Aug 26, 2023
  5. Aug 25, 2023
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] hr_maintenance: use hr.employee -> .public when missing rights · e78998c2
      Hubert Van de Walle (huvw) authored
      
      Steps to reproduce
      ==================
      
      - Login as a user with no rights
      - Use a mobile viewport
      - Create a new Maintenance Request
      - Edit the Created By field
      
      -> A traceback occurs because the user has no rights
      
      Solution
      ========
      
      We extend the Many2OneField to accept a relation option and Depending on
      whether the user has the rights, use the correct one.
      
      This is similar to 41eaff0f
      
      opw-3430105
      
      closes odoo/odoo#132197
      
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      e78998c2
    • Loan (LSE)'s avatar
      [FIX] hw_drivers: support for TM-U escpos printer models · a692a110
      Loan (LSE) authored
      Before this commit:
      When printing a receipt with an epson printers models TM-U2X0 (like
      TM-U220), random characters will be printed instead of the receipt.
      
      This happened as a picture of the receipt is sent to the IoT box, but
      the TM-U2X0 models does not support all "Bit Image commands". We
      currently use the GS v 0 one which is not supported by this printer
      models. See:
      https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=94
      
      In addition, of that, the command itself is obsolete.
      
      After this commit:
      The support for another command "ESC *" is added which is not obsolete
      and supported by TM-U2X0 models.
      
      Notes:
       - Compared to "GS v 0", the receipt printed with "ESC *" is worst:
        - It take longer to print (5 seconds vs 1 second)
        - There is consistently some thin "empty white lines"
       - Most of the code is inspired from `python-escpos`:
       https://github.com/python-escpos/python-escpos/blob/master/src/escpos/escpos.py
      
      
      
      Due to the drawbacks, making it the default way to print would be a bad
      idea. As such, we can configure the mode (with other parameters) using
      particular name for the printer (which can be done by adding it manually
       with cups)
      
      opw-3351084,3341907
      
      closes odoo/odoo#131301
      
      X-original-commit: f30085bf
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      Signed-off-by: default avatarLoan Sens (lse) <lse@odoo.com>
      a692a110
    • Maruan Aguerdouh (magm)'s avatar
      [FIX] web: many clicks on delete records not throwing error · 1553d556
      Maruan Aguerdouh (magm) authored
      
      Steps to reproduce:
      
      - Install an app like Sales, Purchase, etc. (any app where we can get
      many lines)
      - For example, get a sale order and add at least 10 lines.
      - Then we try to delete this lines as fast as we can, spamming the
      thrash can icon.
      
      Issue:
      
      A one2many contains a record, and when the user clicks on the trash icon
      to remove it, and it clicks a second time precisely when the model has
      been updated (so the record no longer exists there), but before the
      x2many field is re-rendered (so the icon is still present).
      
      Solution:
      
      We can avoid this behavior but just making sure we have still access to
      the (it exists) `record` and its `__bm_handle__` and then we can proceed
      afterwards.
      
      opw-3299395
      
      closes odoo/odoo#122315
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      1553d556
    • Pedram (PEBR)'s avatar
      [FIX] point_of_sale: scanning barcode should not update available_in_pos · a525df4b
      Pedram (PEBR) authored
      Prior to this commit, when limited product loading was enabled,
      scanning a product that had not been loaded yet would trigger a search
      for the product without taking into account the available_in_pos field,
      and it would also set available_in_pos to true.
      
      This commit ensures that when a product is loaded using its barcode,
      the behavior aligns with the changes introduced in this
      commit: https://github.com/odoo/odoo/pull/87329/commits/a83c7aea37b06e8b1f04f1f02982ff577d7058e9
      
      
      
      opw-3463427
      
      closes odoo/odoo#132851
      
      X-original-commit: 3a1ed26a
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      Signed-off-by: default avatarPedram Bi Ria (pebr) <pebr@odoo.com>
      a525df4b
    • Christophe Monniez's avatar
      [FIX] account,base: fix TestIrActionsReport · effff7e0
      Christophe Monniez authored
      
      With Python 3.11, PyPDF2 2.12.1 is used and the exception raised when
      the encryption type is not supported is now `NotImplementedError`
      instead of `PdfReadError` in previous version.
      
      In order to support both version, this commit adds a catche for the
      `NotImplementedError` too.
      
      closes odoo/odoo#133149
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      effff7e0
    • Victor Piryns (pivi)'s avatar
      [FIX] sale_project: correct expensable services in proj.profit. · cff36159
      Victor Piryns (pivi) authored
      
      Issue:
      Two services which difference is that one is expensable with an
      expense policy different of none, the expensable service is not
      included in the project profitability as revenue from a service,
      even it's not actually an expense, just a service that "could be"
      expensed. The other service which is not marked as "can be expensed"
      is correctly computed in the project profitability.
      
      Steps to reproduce:
      - Install Project, Accounting, Sales, Expenses
      - Settings > activate analytic accounting
      - Create a service, invoiced on milestones, creates a project on SO
        confirmation, can be expensed with an expense policy of Sales price.
      - Create an SO, confirm the SO
      - Set the milestone to 50% reached, invoice the SO, post it
      - Go to the project profitability of the project, notice there is no
        revenue section for the service.
      - If you follow these same steps for a service which is not set "can
        be expensed", the service is correctly included as revenue from
        service billable milestone.
      
      Cause:
      When computing the profitability items from services, we first get
      the `sale_line_ids` (whose domain excludes the expenses), then we get
      the product that are linked to those sale_line_ids, but we exclude
      products that have an expense_policy different than 'no'. This
      domain may not be necessary, because `sale_line_ids` already exclude
      expenses.
      
      Fix:
      Remove the particular domain leaf.
      
      Affected versions:
      16 up to master
      
      Reference:
      opw-3430020
      
      closes odoo/odoo#133141
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      cff36159
    • Sébastien Theys's avatar
      [FIX] mail: set automatic email signature from correct company · e5f31792
      Sébastien Theys authored
      
      When sending an email from a multi-company environment, the automatic
      email signature is not corresponding to the company from which the email
      is sent.
      
      This is because the user context is not properly forwarded, in
      particular the `allowed_company_ids` key.
      
      The issue comes from the new rpc service not autmatically adding the
      user context to the request, whereas the legacy rpc service did.
      
      opw-3394780
      
      closes odoo/odoo#132899
      
      X-original-commit: 058736a0433dbf09dc413789d68942f1c550e45a
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      e5f31792
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account: allow negative days/months in payment terms · 5fee3538
      Ricardo Gomes Rodrigues (rigr) authored
      
      Some companies require their clients to pay them always for the 10th day
      of the month (for instance), and if we're the 15th already, then pay the
      10th of the next month.
      
      However, with the changes in the payment terms, we can now only ask the
      client to pay for the 10th of the next month, which is not satisfying.
      
      Therefore, we now allow negative days/months to meet this demand.
      
      task-id 3127965
      
      closes odoo/odoo#133148
      
      Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
      5fee3538
    • Adrien Widart (awt)'s avatar
      [FIX] mrp: check cycle with 'apply on' feature · f6c47ec8
      Adrien Widart (awt) authored
      
      Commit [1] does not include the amazing feature "apply on variants".
      As a result, a legit configuration could lead to a `ValidationError`
      (see the new test `test_cycle_on_legit_apply_variants`)
      
      Note about the modifications of `test_11_multi_level_variants`:
      because of an ORM limitation, if we create a BoM line directly:
      ```py
      self.env['mrp.bom.line'].create({...})
      ```
      the constraint will not be triggered... We need to write the line
      creation directly on the BoM
      
      [1] 4a4f92c5
      
      opw-3200969
      
      closes odoo/odoo#133089
      
      X-original-commit: 31120a53
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAdrien Widart (awt) <awt@odoo.com>
      f6c47ec8
    • Guillaume (guva)'s avatar
      [FIX] account: don't auto save on boolean widget · 79647844
      Guillaume (guva) authored
      
      When creating a reconciliation model line on
      a new record, by activate the boolean toggle on
      `force_tax_included` field, the line is save
      but as the reco model is not, `check_company`
      will raise an error.
      
      Steps:
      
      - Create a new model
      - Before saving, create a line, set a tax and
        click on Tax included toggle button
      -> Error is raised
      
      opw-3473189
      
      closes odoo/odoo#132942
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      79647844
    • Antoine Guenet's avatar
      [FIX] mass_mailing: hide the Mail Debug tab · 240ee9de
      Antoine Guenet authored
      
      The Mail Debug tab is confusing for users and should only be used by
      people who know what can or cannot be expected from it. It is not
      providing a good preview of the e-mail's rendering since the HTML it
      displays is not meant to be rendered by a browser but by all sorts of
      e-mail clients. This means that some things that render properly in it
      won't necessarily render properly in some e-mail clients, but also
      likewise that some things that don't render properly in it will in fact
      render as expected in e-mail clients. This is why it's only available in
      debug mode but since many users routinely enable debug mode to get
      access to hidden features, this is not enough to prevent them from
      reporting issues that are not issues.
      
      closes odoo/odoo#132284
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      240ee9de
    • Miquel Raïch's avatar
      [FIX] base: deleting selection fields of non tabled models · 11f75dd6
      Miquel Raïch authored
      
      When a model selection record is going to be deleted, a _process_ondelete method is called in order to delete all the records of the corresponding model that have that selection. These records are obtained by calling _get_records, which uses a query that needs a table. Thus, we should avoid cases for non-abstract models that have _auto = False.
      
      closes odoo/odoo#133082
      
      X-original-commit: 408175a7
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      11f75dd6
    • Xavier ALT's avatar
      [FIX] mail: disable fetchmail servers on neutralize · f1871890
      Xavier ALT authored
      
      When neutralizing the database we should disactivate all
      fetchmail servers to prevent data loss (ex. when using POP)
      
      opw-2758998
      
      closes odoo/odoo#132379
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      f1871890
  6. Aug 24, 2023
    • Nicolas Lempereur's avatar
      [FIX] web: accept is_html_empty in layout wizard · 5f1ad0c1
      Nicolas Lempereur authored
      
      Scenario:
      - edit the current document layout and use is_html_empty method in it
      - it works in Preview Document, when printing any report, ...
      
      => it breaks when opening document layout wizard by clicking on
         "Configure Document Layout"
      
      Reason: is_html_empty was added to _get_rendering_context, but the
      preview instead the document layout wizard doesn't use this method.
      
      Fix: add is_html_empty in the context
      
      opw-3433583
      
      closes odoo/odoo#133029
      
      X-original-commit: c56942e8
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      5f1ad0c1
    • Valeriya(vchu)'s avatar
      [FIX] payment_adyen: fix paypal button style · c4c43d10
      Valeriya(vchu) authored
      
      in commit 5316c903 paypal button was badly placed due to width limit
      
      closes odoo/odoo#133028
      
      X-original-commit: 3282afc9
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      Signed-off-by: default avatarValeriya Chuprina (vchu) <vchu@odoo.com>
      c4c43d10
    • roen-odoo's avatar
      [FIX] pos_sale: correctly cancel all moves with 0 qty · 32178c8f
      roen-odoo authored
      
      Current behavior:
      When you settle an order in the PoS and completely validate it, the
      remaining moves from the original sales should be cancelled.
      However, it was not the case because we were not adding all the picking
      in the `waiting_picking_ids` list. And so when we were checking this
      list we were not cancelling all the moves.
      
      Steps to reproduce:
      - Setup multi-step routes (Inventory > Settings > Multi-Step Routes)
      - Change the configuration of the warehouse to use the multi-step routes
      - Create a sale order for any product and confirm it
      - Open the PoS, and settle the order you just created
      - Validate the order
      - Go back to the sale order, and check the state of the delivery
      - Only one picking has been cancelled
      
      opw-3390529
      
      closes odoo/odoo#132850
      
      X-original-commit: 22d53075
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      Signed-off-by: default avatarRobin Engels (roen) <roen@odoo.com>
      32178c8f
    • Pablo Montenegro's avatar
      [FIX] l10n_latam_check: check number if payment method is "New Third Party Checks" · 697f67b3
      Pablo Montenegro authored
      
      Task Adhoc: 33137
      Task Latam: 1073
      
      Description of the issue/feature this PR addresses:
      Check number is not required for payments when payment method "New Third Party Checks" but is needed to be required.
      
      Current behavior before PR:
      Check number is not required for payments when payment method "New Third Party Checks".
      
      Desired behavior after PR is merged:
      Check number is required for payments when payment method "New Third Party Checks".
      
      closes odoo/odoo#132204
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      697f67b3
    • Mathieu Walravens's avatar
      [FIX] web_editor: getScrollOptions not initialized in translations · 233cc343
      Mathieu Walravens authored
      Steps to reproduce:
      1. Go to a blog post
      2. Add a header
      3. Hide the element on desktop and save
      4. Click the button to translate the page
      
      When translating a page, `getScrollOptions` is not initialized, which
      throws an error when updating invisible DOM, as it could require the
      function to be loaded.
      
      This is because `_updateInvisibleDOM` needs this property to be set.
      
      Similar fix: https://github.com/odoo/odoo/commit/62cc16dae74729a805a08f17db8ba75d9c51d096
      
      
      
      opw-3430581
      
      closes odoo/odoo#130080
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      233cc343
    • Pedram (PEBR)'s avatar
      [FIX] point_of_sale: improved GS1 Barcode Recognition for PoS · cc3e899b
      Pedram (PEBR) authored
      
      Before this commit, when a regular barcode, like '3700000000370', which
      could be interpreted using GS1 rules, was scanned in PoS, it was
      incorrectly identified as a GS1 barcode even though it didn't contain
      a product reference. This commit addresses this issue by implementing
      a validation check during barcode scanning. The system now verifies
      whether a scanned barcode conforms to GS1 rules and contains a product
      reference. This ensures accurate barcode recognition.
      
      opw-3468158
      
      closes odoo/odoo#132709
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      cc3e899b
    • odoo's avatar
      [FIX] web: fix task form view is broken with long user-name issue · a53d8062
      odoo authored
      
      Description of the issue/feature this PR addresses:
      in task form view, when assignees field contains too long name, due to which
      form view of task is broken.
      
      Current behavior before PR:
      task form view is broken due to assignees long name.
      
      Desired behavior after PR is merged:
      task form view is fixed even when name is long.
      
      Fix:
      - o_badge_text has property which fix the form view when assignees name is long.
      - o_tag_badge_text class is added with o_badge_text class so that all the
      property of o_badge_text class can access by o_tag_badge_text.
      
      task-3217427
      
      closes odoo/odoo#116805
      
      Related: odoo/enterprise#38875
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      a53d8062
    • aliya's avatar
      [FIX] l10n_ua: change the name of 973 account · e1d0c2d4
      aliya authored
      
      This PR odoo/odoo#125747 missed the account 973, which is still not in Ukrainian.
      This account should be translated as well.
      
      closes odoo/odoo#132921
      
      X-original-commit: 6acb5660
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarAliya Tastemirova (alta) <alta@odoo.com>
      e1d0c2d4
    • Rodolpho Lima's avatar
      [FIX] web_editor: mobile toolbar visibility over modals · 992904cb
      Rodolpho Lima authored
      
      When the editor is displayed in a modal, the floating toolbar needs a
      higher z-index than the modal in order to be visible. This is due to the
      fact that the toolbar is mounted on the 'body' element (therefore, behind
      the modal in terms of z-index).
      
      The mobile toolbar, on the other hand, is mounted as a sibling of the
      editable's element, which means it is always visible when the html field
      is in a modal, without the need for a z-index. In fact, the mobile
      toolbar, being fixed (no auto-hide) and having a z-index higher than
      modals, leads to the undersired effect of being visible over modals that
      are displayed on top of the html field. An example can be seen in the
      Project app, where the editor is inside the task's description tab and a
      modal can be opened for the customer.
      
      This commit fixes such undesired visibility of the mobile toolbar over
      modals by not applying the z-index to the toolbar when it's not
      necessary (when not a direct child of the 'body' element).
      
      task-3263463
      
      closes odoo/odoo#132714
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      992904cb
Loading