summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-05-12 10:29:46 +0200
committerRaphael Collet <rco@openerp.com>2015-05-12 13:42:27 +0200
commit78a20a3dba07762d2de1e22072c20be1bc59d20f (patch)
tree35951bbaffcb9b463f527ea5fa6f08b92688bef7 /addons/analytic_user_function/analytic_user_function_view.xml
parent1d40f6b8ae00c8105c81f025f76edb81cd37df03 (diff)
[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.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions