bd9cbdfc41
The `check` decorator expects the context to be in the `kwargs` or to be the last arguments of the method. The `call_kw` route, which is decorated by the `check` decorator, like every route, expands its kwargs arguments. Therefore, once in the `check` decorator, the context is located in the `kwargs` key of the kwargs. (More simply, instead of `kwargs.get('context', {})` it's `kwargs.get('kwargs', {}).get('context', {})` As the context is not retrieved correctly, the lang is not set correctly either, and the sql constraints were not translated. In 7.0, it worked, because there was a double check, as the call_kw was called trough an rpc (`dispatch_rpc`) call, which was decorated by the `check` as well. As a fix for 8.0, we apply the same logic, we perform a double check, with an indirection. The check decorator should probably be refactored, but this cannot be done in a stable release such as 8.0. Closes #3634 |
||
---|---|---|
.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