Skip to content
Snippets Groups Projects
  1. Sep 19, 2022
    • Loan (lse)'s avatar
      [FIX] website_event: prevent send Register form as HTTP POST request · 34db5005
      Loan (lse) authored
      To reproduce:
      Video: https://drive.google.com/file/d/1bAh7KA_5UhhIrr-qF5A5gOVWhk3_9clj/view
      
      
       1. Have multi-language website
       2. Event with one ticket
       3. Reload page and click the "Register" button
       -> in some cases there is a traceback
       `/event/great-reno-ballon-race-2/registration/new: Function declared as capable of handling request of type 'json' but called with a request of type 'http'`
      
       Reason of the issue:
       As the button "Register" in the form is defined with `type="submit"` it will send the form as plain HTTP if clicked.
       This behavior is modified in the JavaScript to prevent this default behavior.
       However, if the button is clicked before the JS load, the HTTP behavior is used which does create the above traceback (as the `registration/new` route accept only `json` type).
      
       Solution proposed:
       Prevent the button default behavior and make it deactivated and let the JS activate it when it is ready
      
       Note on stability:
       As JS code and XML view is modified, this fix was thought so that the JS won't have an impact if the view isn't updated.
       There is theoretically no way that the XML view would be updated without the JS being updated (except manual modification in the view or rollback on the version revision after performing a module update on odoo.sh). If it was the case then the button will be deactivated until the user change the number of ticket.
      
       OPW-2946706
      
      closes odoo/odoo#98091
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      34db5005
  2. Sep 18, 2022
  3. Sep 16, 2022
  4. Sep 15, 2022
    • Demesmaeker's avatar
      [FIX] sale_product_matrix: error in matrix tour · e0461e1d
      Demesmaeker authored
      
      Following the steps that changed every quantity in a matrix, the next
      step was triggered after at least one sale order line's quantity was
      changed. Due to the number of lines created, one of the so lines was
      sometimes not updated before the next step, which produces an error in
      the final sale_count.
      
      In order to check the total and ensure every line was updated, we set
      the partner sooner in the tour, which in turn sets the pricelist used to
      get the price of each line. Thus allowing a check on the subtotal.
      
      Backport of commit-af1e67aa2c6c676479ee4ea73106bcabd20c621e
      
      closes odoo/odoo#100273
      
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      e0461e1d
    • nouraellm's avatar
      [FIX] stock: fix todo filter for product moves · 49c8351f
      nouraellm authored
      
      Steps to reproduce:
      - Create a transfer and choose whatever operation
      - Enable detailed operations option for the operation
      - Check availability and set quantities
      - Cancel the transfer then Go to Product Moves
      
      Current behavior:
      - todo filter is broken, it shows canceled moves
      
      Desired behavior:
      - Show only moves that are assigned or waiting
      
      - Task id: #2981249
      
      closes odoo/odoo#100265
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      49c8351f
  5. Sep 14, 2022
  6. Sep 11, 2022
  7. Sep 10, 2022
  8. Sep 09, 2022
    • Walid HANNICHE (waha)'s avatar
      [FIX] account: auto-complete apply the correct currency rate · fd4a8d98
      Walid HANNICHE (waha) authored
      
      Steps to reproduce:
      - enable multi currency in settings
      - set different rates for multiple days
      - create a vendor bill in a different currency
      - create a second vendor bill
      - fill the second bill using auto complete from the first one
      
      Bug:
      the correct currency rate isn't applied unless date is changed when
      the source is a vendor bill not a purchase order
      
      Fix:
      update currency rate after adding a line with a different currency
      
      opw-2890210
      
      closes odoo/odoo#99640
      
      Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
      fd4a8d98
  9. Sep 08, 2022
  10. Sep 05, 2022
  11. Sep 04, 2022
  12. 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
  13. Sep 01, 2022
  14. Aug 30, 2022
  15. Aug 29, 2022
  16. Aug 28, 2022
  17. Aug 26, 2022
  18. Aug 25, 2022
  19. Aug 24, 2022
  20. 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
  21. Aug 22, 2022
  22. Aug 21, 2022
  23. Aug 18, 2022
Loading