Skip to content
Snippets Groups Projects
  1. Aug 25, 2022
  2. Aug 24, 2022
  3. Aug 23, 2022
    • Jinjiu Liu's avatar
      [FIX] product: a temporal variant copy for future convenience · a72bb463
      Jinjiu Liu authored
      Reproduction:
      1. Create a dynamic attribute "dyn_att" with a couple of values
      2. Create a product template "dyn_prod" with those attribute values
      3. Create an order for "dyn_prod", this will trigger creating a variant
      4. Make sure to check Variant Grid Entry in Sales Settings
      5. Open variant form view of dyn_prod and edit it to allow duplication
      6. Duplicating it leads to an error
      
      Reason: copying the variant is not possible and disabled here:
      https://github.com/odoo/odoo/pull/38303
      
       For future convenience, maybe
      it’s better to give a temporal working solution. The function
      _create_first_product_variant is used in the product module but only
      defined in its child module website_sale
      
      Fix: copy the product template, create and return its first possible
      variant. Added test for dynamic variant copy. change the definition
      place of _create_first_product_variant to module product
      
      opw-2790543
      
      closes odoo/odoo#88075
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      a72bb463
  4. Aug 22, 2022
  5. Aug 21, 2022
  6. Aug 18, 2022
  7. Aug 16, 2022
    • Ivan Yelizariev's avatar
      [FIX] account: add missing _name_search for account.move.line · d1baf02b
      Ivan Yelizariev authored
      
      The model had name_get, but not _name_search, which leads to difference between
      what user sees and what he get as search results.
      
      This patch doesn't fix the issue completly, but adds more search results on
      searching just by account move (e.g. invoice) name.
      
      STEPS:
      
      * open menu Analytic Items (account.analytic.line)
      * make custom filter *Journal items contains "INV/"* (
      `[["move_id","ilike","INV"]]` )
      
      BEFORE: no items found even if you see such analytic items
      
      ---
      
      opw-2691495
      
      closes odoo/odoo#87156
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      d1baf02b
    • Ivan Yelizariev's avatar
      [FIX] website_sale: prevent changing name when invoiced are issued · 7314d3b8
      Ivan Yelizariev authored
      /my/account controller blocks name/vat/company_name updating if there are issued invoices.
      
      However Before this commit, user can change name via /shop/address page
      
      STEPS
      
      1/ install sales, eCommerce,inventory,Accounting
      2/ create a sales order from the portal page, validate and create an invoice from SO and post it
      3/ Try to change the name from the Portal > Account
      Result - not possible = correct
      4/ Place a new SO by the same portal user and edit the name on the address before proceeding to checkout
      
      [1]: https://github.com/odoo/odoo/blob/1f49528a4b198e8912beb33be921d2855c694e2e/addons/account/controllers/portal.py#L111-L113
      
      
      
      opw-2848251
      
      closes odoo/odoo#97686
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      7314d3b8
    • snd's avatar
      [FIX] sale_mrp: do not use template bom · 98f6c247
      snd authored
      
      Consider this case:
      Template A has 2 variants: KIT and NOKIT
      KIT has a total cost of 100, NOKIT costs 50
      When selling NOKIT, the current code will select the bom of KIT
      to calculate the price_unit of NOKIT, which means that when
      reconciling the aml of the invoice (amount = 100) with the aml of
      the cogs move (amount = 50), it will be partial due to the difference
      in amount. This alse messes with the balance sheet report.
      
      This fix ensures that only boms directly related to the product
      or for the generic template are selected.
      
      opw-2918080
      
      closes odoo/odoo#97453
      
      Signed-off-by: default avatarSteve Van Essche <svs@odoo.com>
      98f6c247
    • Florian Charlier's avatar
      [FIX] mass_mailing_crm: fix link in demo data · bee1d655
      Florian Charlier authored
      
      So that the link works...
      
      Task-2954531
      
      closes odoo/odoo#98155
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      bee1d655
    • William Braeckman's avatar
      [FIX] website_sale_wishlist: fix undeterministic error in tour · e10f50e6
      William Braeckman authored
      
      This commit attempts to fix an undeterministic error during one of
      `website_sale_wishlist` tests.
      Due to a race condition it may happen that the button to add to the
      wishlist would be re enabled while it should be disabled (if the product
      is already in the wishlist) causing the tour to fail.
      
      closes odoo/odoo#98143
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      e10f50e6
    • Renaud Thiry's avatar
      [FIX] mail: Give reply-to non-template value · 002650a2
      Renaud Thiry authored
      
      When sending a mass mail through the composer, if the field ``reply_to`` had to
      fall back to being ``email_from``, reply_to would take the value of the template
      syntax instead of the rendered value.
      
      This is notably the case when mass-mailing invoices through the accounting app.
      Resulting in reply_to fields such as: '{{user.email}}'
      
      On some mail clients (including mailhog), this could also result in template
      syntax being shown as part of the subject or sender field.
      
      This commit fixes that by correctly taking the rendered value of 'email_from'
      
      Task-2816845
      
      closes odoo/odoo#95227
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      002650a2
    • Renaud Thiry's avatar
      [IMP] test_mail: add test for from and reply-to computation in composer mass mode · ef568627
      Renaud Thiry authored
      When sending a mass mail through the composer, if the field ``reply_to`` had to
      fall back to being ``email_from``, reply_to would take the value of the template
      syntax instead of the rendered value.
      
      This is notably the case when mass-mailing invoices through the accounting app.
      Resulting in reply_to fields such as: '{{user.email}}'
      
      On some mail clients (including mailhog), this could also result in template
      syntax being shown as part of the subject or sender field.
      
      Task-2816845
      
      Part-of: odoo/odoo#95227
      ef568627
  8. Aug 14, 2022
  9. Aug 12, 2022
  10. Aug 11, 2022
    • Nasreddin Boulif (bon)'s avatar
      [FIX] l10n_latam_invoice_document: Allow digitalization · 784de77b
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install l10n_ar module (or any l10n_* module that depends on
          l10n_latam_invoice_document)
        - Go to Accounting -> Vendors -> Bills
        - Click on Upload and select a bill file
        - Open draft bill
        - Click on `Send For Digitalization`
      
      Issue:
      
        Digitalization don't start and a warning message is diplayed saying
        that some required fields are invalid.
      
      Cause:
      
        When clicking on the button to digitalize the invoice, we try
        to save the form first before executing the action.
        By doing so, if some fields are required and empty, a warning message
        will be displayed.
      
        In this case, the issue is with the fields `Document Type` and
        `Document Number`.
      
      Solution:
      
        Set `Document Type` and `Document Number` to not required if there is
        no partner_id set on the bill.
      
      opw-2797444
      
      closes odoo/odoo#96004
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      784de77b
  11. Aug 10, 2022
  12. Aug 09, 2022
  13. Aug 08, 2022
  14. Aug 07, 2022
  15. Aug 05, 2022
  16. Aug 04, 2022
    • momegahed's avatar
      [FIX] sale_stock: duplicate SN/LN for rental products · 953fefe7
      momegahed authored
      Steps to reproduce:
      
      1. Go to Inventory-->Settings-->Check option to "Display Lots & Serial
      Numbers on Invoices"
      2. Go to Rental App
      3. Create a new Rental Order for a product that is tracked by Serial
      Number. Pop up shows up. Also something to note here, though not
      necessarily related to this ticket, but you cannot select available
      serial number from this pop-up. It doesn't let you choose anything
      even when there are multiple serial number available/in stock.
      4. Confirm the order.
      5. Validate the Pickup and set the Serial Number in the popup.
      6. Create the invoice.
      7. Confirm the invoice.
      8. Print "Invoices without payment"
      
      Bug:
      
      in https://github.com/odoo/odoo/commit/7a030f616f7e04b3994fc718840d265b1dd21068
      
      
      
      the filter functions were removed. They had the effect
      of making sure that the sml is either a delivery or a return
      by filtering on `sml.location_id.usage` and
      `sml.location_dest_id.usage`
      
      Fix:
      check if the product is a delivery or a return by
      making sure that either of `sml.location_id.usage` and
      `sml.location_dest_id.usage` is `customer`
      
      OPW-2936505
      
      closes odoo/odoo#97449
      
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      953fefe7
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] web: parseMonetary with NBSP as a thousands separator · 9d367227
      Hubert Van de Walle (huvw) authored
      Steps to reproduce:
      
        - Switch odoo language to french
        - Create a client bill for Azure Interior of $1 000 000
        - Confirm it
        - Go to the accounting dashboard
        - On the bank, click on reconcile
        - Select Azure interior
        - Click on the correct bill
        - Switch to Manual operations
        -> $1 000 000 is not a correct monetary field
      
      Cause of the issue:
      
        Recently in https://github.com/odoo/odoo/pull/94126
      
       , `formatMonetary`
        switched from joining the currency and symbol from `&nbsp;` to a non
        breaking space, NBSP.
        To parse monetary values, the behavior was to split around NBSP to
        get the symbol on one side and the value on the other which is then
        passed to `parseFloat`.
      
        For the following examples, NBSP is replaced with an underscore.
        So `$_1000` becomes `$, 1000`
        But some languages such as french uses the same char as thousands
        separator.
      
        In that case, `$_1_000` becomes `$, 1, 000` and then the parse fails.
      
      opw-2937403
      
      closes odoo/odoo#97425
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      9d367227
    • Florian(flg)'s avatar
      [FIX] l10n_be: change tab to space · 56f9e90d
      Florian(flg) authored
      
      This old file is indented with tabs instead of spaces.
      This is a problem because the file is using as template to
      write new localization.
      
      closes odoo/odoo#97412
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      56f9e90d
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account: fix bank statement import from BNP · 9a98d192
      Ricardo Gomes Rodrigues (rigr) authored
      
      Before this commit, importing an .OFX file from BNP failed because the account number format is not the same.
      
      This is a problem on BNP's side but it is blocking for our clients and needs to be fixed.
      
      This commit fixes this by checking that the account number corresponds to a specific part of the IBAN (for France only).
      
      Task id 2860720
      
      closes odoo/odoo#97413
      
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      9a98d192
  17. Aug 01, 2022
Loading