1ca5c01b36ef29406abb860fd2e638a34db22052
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.
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%