ea2c80cad0
Javascript and Python handle the rounding of -x.5 differently. In JS, `Math.round(-0.5)` is equal to `-0`. In Python, `round(-0.5)` is equal to `-1`. This will lead to inconsistencies between Python and Javascript, but it can also lead to inconsistencies in the Javascript itself. Indeed, in the POS, a refund to the client is entered as a negative number. For example, `4.245` will be rounded to `4.25`, but a refund of `-4.245` will be rounded to `-4.24`. The payment and the refund are not consistent. Sources: - http://www.ecma-international.org/ecma-262/6.0/index.html#sec-math.round - https://docs.python.org/2/library/functions.html#round - https://en.wikipedia.org/wiki/Rounding#Round_half_up Fixes #9249 opw-653034 |
||
---|---|---|
.tx | ||
addons | ||
debian | ||
doc | ||
openerp | ||
setup | ||
.gitignore | ||
.mailmap | ||
CONTRIBUTING.md | ||
LICENSE | ||
MANIFEST.in | ||
Makefile | ||
README.md | ||
odoo.py | ||
openerp-gevent | ||
openerp-server | ||
openerp-wsgi.py | ||
requirements.txt | ||
setup.cfg | ||
setup.py |
README.md
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/8.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