diff options
| author | Abridbus <bve@odoo.com> | 2020-08-24 12:25:33 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2020-09-03 09:34:01 +0000 |
| commit | fa545eb660ec63663eaa7ddd456f2ea20c113cef (patch) | |
| tree | 6c8388cfab75fc9641a2800796a5ad5a58d6e3a8 /doc/reference/javascript_cheatsheet.rst | |
| parent | 781bf9ec2eb5606d76ba3afa61cf06b5c3ac85fc (diff) | |
[FIX] stock-account: UserError on div by zero
With:
- Anglo-saxon activated,
- Costing Method: FIFO,
- Inventory Valuation: Automated.
Create a PO for product AAA, receive the product and archive it,
create and try to POST the vendor bill.
> This lead to a ZeroDivisionError: float division by zero
The anglo-saxon entries cannot be generated as the product
is not valued anymore.
This commit is displaying a clearer error message for end users.
more info from SLE on 2250451
opw-2307562, 2317338, 2320080, 2311843
Fine tuning of https://github.com/odoo/odoo/commit/8ce4db8ca04cd8e5266fc186b35deef76506da46
closes odoo/odoo#57007
X-original-commit: 83239af1d396cf7f5aca37e33445405238fcfc48
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Co-authored-by: simongoffin <sig@odoo.com>
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions
