From fc3fc808c7624f4c6300be2fbb51e253f8dc46a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Thu, 3 Feb 2022 09:12:11 +0100
Subject: [PATCH] [IMP] limit task_type_id

---
 models/account.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/models/account.py b/models/account.py
index 8147b4b..dd9cea2 100644
--- a/models/account.py
+++ b/models/account.py
@@ -12,6 +12,7 @@ class AccountAnalyticLine(models.Model):
     task_type_id = fields.Many2one(
         comodel_name='project.type',
         string='Type de tâche',
+        domain="[('task_ok', '=', True)]"
     )
     project_type_id = fields.Many2one(
         comodel_name='project.type',
-- 
GitLab