d99ae3fd87aa07a1d7e201dbcd2defd144dfdec3
The previous code used to create its own args array for the search_read method, replacing the one that was originally given to it. This lead to silent errors since positional arguments to this function were completely ignored in the case of search_read. I took this commit as an opportunity to improve a bit on the current state of these rpc helpers. Namely, the basic args/kwargs priority is the following (top-to-bottom): - kwargs defined in the rpc call - kwargs defined in the kwargs key of the params kwarg of the rpc call - positional arguments are passed as is For read_group and search_read methods, the priority is the following: - kwargs defined in the rpc call - kwargs defined in the params kwarg to the rpc call - kwargs defined in the kwargs key of the params kwarg of the rpc call - positional arguments are passed as is For the /web/dataset/search_read controller, only the params kwarg is supported, resulting in the following priority: - kwargs defined in the rpc call - kwargs defined in the params kwarg to the rpc call - positional arguments are passed as is If both a kwargs and a positional arg is given for the same parameter, it will be sent as is to the server which will crash with a typical "got multiple values for keyword argument" TypeError. However, in the MockServer however, we give priority to kwargs over args in this case. Please note that I also chose to remove unnecessary default values so that the ones actually used are the ones from the server, not the ones that were duplicating those in the rpc js file.
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, 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/master/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%