You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[IMP] account: Normalize factors in _distribute_delta_amounts_smoothly
At the moment, `_distribute_delta_amounts_smoothly` requires the factors
to be pre-nomalized. However, normalizing the factors robustly requires
more logic than just dividing by the sum of factors, especially if the
factors have different signs.
This commit moves the normalization into
`_distribute_delta_amounts_smoothly` itself meaning the calling code
doesn't need to take care of it anymore.
task-none
X-original-commit: 80d5eed
Part-of: odoo#232025
Related: odoo/enterprise#97443
Signed-off-by: Antoine Dupuis (andu) <[email protected]>
Signed-off-by: Laurent Smet (las) <[email protected]>
0 commit comments