f5e5bbdae0
Consider the following setting: - on model A, field F is computed, stored, and depends on field G - on model A, field one2many G to model B, with inverse field H - on model B, field many2one H is inherited (_inherits) from model C - on model C, field many2one H is stored When adding records of model B, the field F must be recomputed. In order to determine which records to recompute, one searches model A with a domain like [(G, 'in', ids)]. In expression.py, this is resolved with an SQL query like select H from B where id in {ids} This query fails, since the field H is not stored in model B. This happens in general if H is not stored (it may be any computed field). In that case, one should instead browse records from B, and read field H through the ORM. A test case has been added: it introduces a many2one field in a parent model, and a one2many field using the inherited many2one on a child model. The test checks whether one can search on the one2many field. |
||
---|---|---|
.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