花名册数量
This commit is contained in:
+7
-1
@@ -32,7 +32,13 @@ export class QuickFilter extends Component {
|
||||
for (let [idx, filter] of filters.entries()) {
|
||||
const domain = this.safeParseDomain(filter.domain);
|
||||
if (filter.show_number) {
|
||||
const count = await this.orm.searchCount(resModel, domain);
|
||||
if(searchModel.searchViewFields.company_id){
|
||||
let allowedCompanyIds=this.env.services.company.activeCompanyIds;
|
||||
if (allowedCompanyIds) {
|
||||
domain.push(['company_id', 'in', allowedCompanyIds]);
|
||||
}
|
||||
}
|
||||
const count = await searchModel.orm.searchCount(resModel, domain);
|
||||
filter.count = count;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user