filter: exclude CAS 3D projects from dashboard

Add exclude_company_ids config in settings.yaml to filter out
projects by Odoo company_id. Currently excludes company_id=2
(CAS 3D), keeping only Consultoria AS and unassigned projects.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 11:18:19 +00:00
parent e9e6c871ab
commit 4363527c58
3 changed files with 16 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ class OdooClient:
return await self.search_read(
model="project.project",
domain=[("active", "=", True)],
fields=["name", "task_count", "color"],
fields=["name", "task_count", "color", "company_id"],
)
async def get_tasks(self, project_id: int | None = None) -> list[dict[str, Any]]: