Tuesday, June 16, 2020
2 changes · master
Resolved issues and error corrections
This fixes an issue where manually entered time off allocation durations could be overwritten with a default value after saving. Allocations entered in days or hours now keep the intended amount, helping HR teams avoid incorrect leave balances.
Original PR description
Purpose: - Purpose of this commit is to should not be change the duration automatically in time off allocation. Task: 2275933 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
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