Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2176 Widoki

I would like to hide subtasks in tasks tree view inside project form view. (and see them only inside the parent task)

add domain to the actual view doesn't work:

field name="tasks" mode="tree" domain="[('parent_id', '=', False)]"

Could you give me a hint?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks so much for the reply,

could you explain deeper the step 2: "Look for the filters or search bar available in the tasks section."?

It seems I don't have any visible filter or search inside the project form view.

I've tried to add a filter inside the task model, applying it only to the action project but it seems it doesn't work in the project form view.

Thanks for your help

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

To hide subtasks in the tasks tree view inside the project form view directly from the UI, follow these steps:

1. Navigate to the project form view in Odoo.
2. Look for the filters or search bar available in the tasks section.
3. Set the filter to "Parent Task > is not set" .
4. Once you apply this filter, only the parent tasks (tasks without a parent) will be displayed, effectively hiding the subtasks in the tasks tree view inside the project form view.

By applying this filter, you can easily hide subtasks and focus on viewing only the parent tasks directly from the user interface without any customization or development work.


Hope it helps

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 25
787
1
kwi 25
4496
1
sty 23
2805
1
mar 22
1853
1
kwi 20
2365