05de60cbf9
Fixes comparison with min_quantity orderpoint in scheduler - basic floating point math issue in procurement scheduler when comparing current quantity with orderpoint minimum quantity. In certain cases floating point comparison could result in e.g 400.0 < 400.0 == True due to typical floating point comparison issues, as Odoo doesn't use Decimal types where the issue doesn't exist. Fixes early exiting out of the loop cycle, in case qty is already near zero. Fixes the new procurement creation check, to not do that if it's close enough to zero already, to be considered a floating point math error, not really non-zero. These combined (or at least the last one) avoid each supply_method == buy pending in draft PO's getting a zero quantity extra procurement order each time the scheduler runs. Otherwise there could be hundreds of zero quantity procurement orders pending, which makes the confirming of the PO take hours, due to creating hundreds of stock moves for each order line. Use float_compare helper to solve all these with floating point type for now, instead of the more evasion possibility of converting to Decimal module. Two potential bad comparisons remain, add FIXME notes for now until further analysis. Also: Float rounding on reste when comparing and on the procurement qty |
||
---|---|---|
addons | ||
debian | ||
doc | ||
openerp | ||
setup | ||
.gitignore | ||
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 development
If you are a developer type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python
Then follow the developer tutorial
Packages, tarballs and installers
-
Debian packages
Add this apt repository to your /etc/apt/sources.list file
deb http://nightly.odoo.com/8.0/nightly/deb/ ./
Then type:
$ sudo apt-get update $ sudo apt-get install odoo
If you plan to use Odoo with a local database, please make sure to install PostgreSQL before installing the Odoo Debian package.
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