Tuesday, February 7, 2017
1 change · master
Resolved issues and error corrections
This fix makes supplier selection more reliable when a product has multiple possible vendors. Purchase and stock flows now pass available context consistently, reducing the risk of choosing the wrong seller during procurement.
Original PR description
**Description of the issue/feature this PR addresses:** The `_select_seller` method returns incorrect seller. **Current behavior before PR:** The result of `_select_seller` is potentially inconsistent when dealing with multiple sellers (`product_supplierinfo`). **Desired behavior after PR is merged:** If the data is available in the current context it should be passed to `_select_seller`. The parameters used to call `_select_seller` throughout the lifetime of a purchase should be consistent (as possible). This is related to #11413. ## I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr