summaryrefslogtreecommitdiff
path: root/odoo/modules/graph.py
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-08-12 15:29:15 +0000
committerRaphael Collet <rco@odoo.com>2020-08-20 07:45:18 +0000
commitf2ceef0e2f0efb2e47b5f595a80009184305a2c4 (patch)
treefc890511b910167a2ecec0881ddd7169007cbe10 /odoo/modules/graph.py
parent9ad16bf84a0a1e33426105ec20670042e00f19b9 (diff)
[IMP] core: add models defined by a query instead of a table/view
By adding a parameter `_table_query` on the Model, we can now have views that depend on the context. The query is used instead of the table name in ORM operations. This allows to pre-compute some values to improve performance, instead of storing context values in the database. Co-authored-by: william-andre <wan@odoo.com> Co-authored-by: rco-odoo <rco@odoo.com>
Diffstat (limited to 'odoo/modules/graph.py')
0 files changed, 0 insertions, 0 deletions