odoo/openerp/addons/test_inherits
Raphael Collet 78a20a3dba [FIX] model: wrong alias used in read query for multi-inherited field
In commit 04ba0e99, we introduced an optimization for reading inherited fields
in a single query.  There is an issue when you have more than one level of
`_inherits`.  The query looks like:

    SELECT ...
    FROM table0, table1 AS alias1, table2 AS alias2
    WHERE table0.link0 = alias1.id AND table1.link1 = alias2.id AND ...
                                       ^^^^^^
                             should be alias1

This fixes the issue, and adds a test to reproduce it.  The fix is based on
@emiprotechnologies's own proposal, but is cleaner and does not break APIs.
2015-05-12 13:42:27 +02:00
..
tests [FIX] model: wrong alias used in read query for multi-inherited field 2015-05-12 13:42:27 +02:00
__init__.py Add a failing test to reproduce #5398 2015-02-20 11:16:45 +01:00
__openerp__.py Add a failing test to reproduce #5398 2015-02-20 11:16:45 +01:00
demo_data.xml Add a failing test to reproduce #5398 2015-02-20 11:16:45 +01:00
ir.model.access.csv Add a failing test to reproduce #5398 2015-02-20 11:16:45 +01:00
models.py Add a failing test to reproduce #5398 2015-02-20 11:16:45 +01:00