diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2020-12-10 14:59:53 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2020-12-10 15:04:56 +0000 |
| commit | 9f70f405bc453ce56b75d22a318c9fd72e8bd496 (patch) | |
| tree | af41cef371872b5979b455ab4239e4aa01a300a7 /doc/reference/javascript_reference.rst | |
| parent | e5c3d63375bf314f6748fd3f8b95eba313b154ac (diff) | |
[FIX] sale: Traceback on update price (price list) and price = 0
Issue
- Create a Price list and set 'Discount Policy' as
"Show public price & discount to the customer "
- Create an SO
- Add a multiple product with at least one with price unit = 0
- Change the pricelist and update prices
Cause
Division by zero when calculating discount.
Solution
Calculate discount only if there is a price_unit.
opw-2393790
closes odoo/odoo#63180
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
