Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0] [IMP] Purchase: onchange quantity hook #56

Open
wants to merge 2 commits into
base: 13.0
Choose a base branch
from

Commits on Oct 15, 2021

  1. [FIX] mrp: Delivered quantity with kit

    Steps to reproduce:
    
    - Set the Decimal Accuracy at 5 digits for Product UoM
    - Create a product X
    - Create a kit BOM for X with a component Y, and qty 0.08600
    - Create a Sale Order for 10 product X, confirm and deliver all
    
    Issue
    
    - On the SO, quantity delevered is 9.00000 instead of 10.00000, same
      issue occur with the same flow with a Purchase Order.
    
    Cause
    
    As the quantity per kit was rounded when calling _compute_qty,
    the calcul of quantity ratio was not well computed.
    
    Solution
    
    Avoid rounding the quantity per kit, as the quantity ratio is rounded
    a few steps after.
    
    opw-2590126
    
    closes odoo#78400
    
    Signed-off-by: William Henrotin <[email protected]>
    guva-odoo committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    4289d17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    777255d View commit details
    Browse the repository at this point in the history