bemade-addons/bemade_margin_vendor_pricelist
Marc Durepos 5f6fb6002a bemade_margin_vendor_pricelist: Fix division by zero
Added tests and fixed an edge case where computing the gross profit
resulted in a division by zero. This happened in production with a zero
ordered quantity on a sales order line and a negative product
availability value.

Also added some test cases to ensure that the calculations for GP and GP
% are correct across logically different cases.
2024-09-19 09:52:57 -04:00
..
i18n for migration 2023-11-16 09:01:22 -05:00
migrations/17.0.0.0.4 bemade_margin_vendor_pricelist: add pre-migration to clear old views. 2024-05-08 18:54:35 -04:00
models bemade_margin_vendor_pricelist: Fix division by zero 2024-09-19 09:52:57 -04:00
tests bemade_margin_vendor_pricelist: Fix division by zero 2024-09-19 09:52:57 -04:00
views fix column visibility in bemade_margin_vendor_pricelist 2024-05-07 10:11:27 -04:00
__init__.py for migration 2023-11-16 09:01:22 -05:00
__manifest__.py bemade_margin_vendor_pricelist: Fix division by zero 2024-09-19 09:52:57 -04:00