summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2019-08-21 07:03:14 +0000
committerLaurent Smet <las@odoo.com>2019-08-21 07:03:14 +0000
commit1ca5c01b36ef29406abb860fd2e638a34db22052 (patch)
tree209a2e80a8ebc8350e33e32427ae91bc9de72fe9 /addons/web/static/src/js/views/basic/basic_controller.js
parentf26de445e5579913e27ea6a630bcee6d40eefc7d (diff)
[FIX] account: Fix price_unit sign in taxes computation
Since the base in compute_all could be negative but is signed to perform the computation, the price_unit should follow the same logic and be signed when evaluating a python tax. Before this commit, the price_unit was equivalent to the base line balance and then, was negative in case of a customer invoice. E.g. For an out_invoice of 100, the price_unit is 100 but the balance is -100 for the base line. Then, the computation is done using a base of 100 but having a sign of -1. However, when evaluating a python tax dependent of the price_unit (here the balance), the price_unit was negative and then, the tax amount will have a wrong sign at the end.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions