48eb674a7003f046207485cc127e314c0936313a
We generate the Mercury invoice number in JavaScript based on the uid property of the order. That uid is generated by Order.generate_unique_id() which generates a 12 digit number. A decimal 12 digit number can contain a maximum value of 10^12 - 1 which requires 40 bits to store. The issue is that Integer fields by default are backed by a PostgreSQL integer type which is only 4 bytes. This means you can end up with an invoice number you won't be able to store in the database. In order to resolve this we will update the field to be a Float field instead which will result in a PostgreSQL double precision type which allows values up to 10^308. opw-671362
…
…
…
…
…
…
…
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%