Remove record limit - search all records without restrictions

This commit is contained in:
Mohamed Eltayar 2025-08-29 16:16:06 +03:00
parent 16615486f3
commit 7f40e29c73
1 changed files with 5 additions and 4 deletions

View File

@ -119,14 +119,14 @@ odoo.define('fims_general_search_tree_view.list_search', function (require) {
// Get only visible and stored fields to avoid computed fields issues
var fieldsToRead = this._getFieldsToRead();
// Perform RPC search with specific fields only
// Perform RPC search with specific fields only - NO LIMIT
this._rpc({
model: model,
method: 'search_read',
args: [domain],
kwargs: {
fields: fieldsToRead, // Only read necessary fields
limit: 200, // Reasonable limit for performance
limit: false, // No limit - get all records
offset: 0,
context: this.state.context || session.user_context,
order: this.state.orderedBy ? this.state.orderedBy[0].name : false
@ -294,8 +294,9 @@ odoo.define('fims_general_search_tree_view.list_search', function (require) {
if (count > 0) {
var message = _t('Found: ') + count + _t(' records');
if (count >= 200) {
message += ' ' + _t('(showing first 200)');
// Show warning if too many records
if (count > 1000) {
message += ' ' + _t('(Large result set, may affect performance)');
}
$countEl.text(message).show();