4b8c34be15f355958bbdb64c440018bdbe72ad3c
The motivation for this commit was to fix a wrong evaluation context for x2m fields: it was using a list of res_id, which may contain virtual ids. For example, it could be seen in the form view for journal entries: adding the first line (field line_ids) was fine, but clicking on 'Add an item' a second time caused a crash. The reason was that the line_ids was explicitely added to the context in the view, and the second time we add a line, the web client sent a list looking like this [35, 'virtual_43'] to the server, in the nameget context. The proper behaviour is to send a list of commands for those fields. This means that we had to do some non trivial changes in the getEvalContext method: we stop using the get method with raw: true. It was nice to use the same method, but the eval context is actually different that the values returned by the get method. That was the motivation to introduce the 'noUnsetNumeric' flag, but now, we simply create another method and let each method do its own work. TLDR: eval contexts are hard...
…
…
…
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%