bb72dea98de4dae8f59e397f232a0636411d37ce
Use copysign to take into account the sign of the base amount which includes the sign of the quantity and the sign of the price_unit Amount is the fixed price for the tax, it can be negative Base amount included the sign of the quantity and the sign of the unit price and when a product is returned, it can be done either by changing the sign of quantity or by changing the sign of the price unit. When the price unit is equal to 0, the sign of the quantity is absorbed in base_amount then a "else" case is needed. opw:684459
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, 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.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/9.0/odoo.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./odoo.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./odoo.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%