[FIX] base: record count on ir.model defined by query
Models can be defined by an SQL table, an SQL view or an SQL query (with attribute _table_query). Counting records makes little sense when the model does not correspond to a table, and actually fails when it is defined by an SQL query. We fix the compute method by counting records only for models where _auto=True. closes odoo/odoo#86913 X-original-commit: 956a0a1c Signed-off-by:Raphael Collet <rco@odoo.com>
Loading
Please register or sign in to comment