Tuesday, June 16, 2020
1 change · master
Resolved issues and error corrections
This fix automatically keeps the maximum reorder quantity at least equal to the minimum quantity when users edit stock replenishment rules. It helps avoid confusing inventory settings while preserving existing scheduler behavior.
Original PR description
**Description of the issue/feature this PR addresses:** Before this commit an user can write `product_max_qty` bellow than `product_min_qty`, it is not an issue for stock scheduler because https://github.com/odoo/odoo/blob/master/addons/stock/models/stock_orderpoint.py#L253. But for the user, it can source of misunderstanding. This PR add an onchange to set the `product_max_qty` same as `product_min_qty` if needed. @sle-odoo -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr