Skip to content
Snippets Groups Projects
  1. Sep 08, 2022
  2. Sep 05, 2022
  3. Sep 04, 2022
  4. Sep 02, 2022
    • Nasreddin Boulif (bon)'s avatar
      [FIX] purchase: Update price unit on new line even if confirmed RFQ · 063f7af8
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install purchase
        - Go to Settings and activate `Variant Grid Entry`
        - Create a new Requests for Quotation
        - Add a customer and add a product that has a variant min 2 variant
        - Wizard should ask for the variant
        - Select 1 variant by increasing quantity in the grid and confirm
        - Confirm order
        - Add again a product variant with the wizard
      
      Issue:
      
        Price unit is not set on the new line.
      
      Cause:
      
        In `_onchange_quantity` (triggered by the purchase_product_matrix
        module), we do not update price unit if order line
        is in state `purchase` or `done`.
      
      Solution:
      
        Replace condition to not perform `_onchange_quantity` if order line
        has an invoice line.
      
      opw-2956755
      
      closes odoo/odoo#98960
      
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      063f7af8
    • oco-odoo's avatar
      [FIX] account: don't use CABA transition account when using a tax in reconciliation widget · ff87397b
      oco-odoo authored
      
      Before, when using a cash basis tax in the bank reconciliation widget, the account chosen for the tax line corresponded to the tax transition account. This was wrong: since the entry is already reconciled, we want to use the actual repartition account, as nothing will move this amount from the transition account afterwards.
      
      Indirectly linked to OPW 2865789
      
      closes odoo/odoo#99427
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      ff87397b
  5. Sep 01, 2022
  6. Aug 30, 2022
  7. Aug 29, 2022
  8. Aug 28, 2022
  9. Aug 26, 2022
  10. Aug 25, 2022
  11. Aug 24, 2022
  12. 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
  13. Aug 22, 2022
  14. Aug 21, 2022
  15. Aug 18, 2022
  16. 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
  17. Aug 14, 2022
  18. Aug 12, 2022
  19. 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
  20. Aug 10, 2022
Loading