Go to file
Raphael Collet f5e5bbdae0 [FIX] expression: fix search on one2many field with inherited inverse field
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.
2015-09-04 13:25:51 +02:00
.tx [I18N] add Transifex config file 2015-05-27 11:28:22 +02:00
addons [IMP] website_hr_recruitment: recruitment form customization 2015-09-04 13:08:48 +02:00
debian [FIX] Packaging: Debian: lintian errors and warnings 2015-01-23 11:07:50 +01:00
doc [IMP] doc: better xpath example 2015-08-26 12:27:16 +02:00
openerp [FIX] expression: fix search on one2many field with inherited inverse field 2015-09-04 13:25:51 +02:00
setup [FIX] packaging: tarball nightly test 2015-07-15 15:34:14 +02:00
.gitignore [ADD] git mailmap and CLA stats 2015-02-08 23:00:10 +01:00
.mailmap [CLA] pedrobaeza CLA 2015-04-07 22:08:31 +02:00
CONTRIBUTING.md [FIX] CONTRIBUTING:.md emphasize the fact that PRs supersede issues 2015-02-12 11:08:25 +01:00
LICENSE cleanup repo root 2014-05-15 10:43:02 +02:00
MANIFEST.in [FIX] packaging: include ogg files 2015-07-13 15:07:48 +02:00
Makefile [IMP] *: one Makefile to rules them all. 2014-11-05 19:30:28 +01:00
README.md [IMP] README.md: badges for docs, help, nightly 2015-01-20 17:21:38 +01:00
odoo.py [FIX] odoo.py fix fetching of git remotes 2014-12-19 17:39:11 +01:00
openerp-gevent restore the original gevent detection 2013-09-10 01:19:46 +02:00
openerp-server openerp apps main moved to cli ready for new commands 2012-11-27 01:55:13 +01:00
openerp-wsgi.py [FIX] wsgi deployement with openerp-wsgi.py 2014-03-07 21:00:55 +01:00
requirements.txt [FIX] packaging: tarball nightly test 2015-07-15 11:44:07 +02:00
setup.cfg [FIX] Packaging: RedHat: dependencies management 2014-11-28 16:40:55 +01:00
setup.py [FIX] Packaging: Windows: pychart dependency 2015-07-07 16:44:03 +02:00

README.md

Build Status Tech Doc Help Nightly Builds

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